Ubuntu – Where does aptitude store files during an upgrade

partitioningupdate-managerupgrade

I support a laptop running Ubuntu in another state (so I don't have physical access to it). It is an EeePC with two internal drives: a 4GB flash drive with the root fs, and a larger (~12GB) drive with the /home partition on it (and plenty of free space). The user tried to upgrade to 11.10, and the upgrade failed because the root partition doesn't have enough free space to perform the upgrade.

I remember running into a similar problem on a laptop once before, which just had one physical drive but a poorly-thought-out partition scheme; I think I just symlinked a directory from a too-small rootfs partition to a larger partition. In this case, I think the best solution is to bind-mount whatever directory Ubuntu wants to use to store its downloaded files to the larger drive.

  • What directory (or directories) is the important one that needs to be 'moved' to the larger drive?

  • If I can get away with just bind-mounting one directory, do I just need to do it once, at the beginning of the installation, or do I need to add the bind-mount to the fstab (i.e. because the files are still needed after reboot, so the bind-mount needs to be persistent)?

  • Is there an easier or better way to accomplish the upgrade? (Neither a fresh install nor a repartition is an option right now)

Best Answer

Well for the directory where apt, aptitude and whatever other package management system you use stores the packages downloaded is /var/cache/apt/archives. If you copy this files to another PCs same cache folder you save yourself from having to download them again from the internet.

For the rest I did not understand clearly. if you could please change or add more stuff I could elaborate more here. Sorry buddy.

Related Question