[YLUG] can't free up enough space to upgrade Ubuntu

mike cloaked mike.cloaked at gmail.com
Mon Nov 5 22:57:59 UTC 2012


On Mon, Nov 5, 2012 at 10:52 PM, Harry Mills <harry at haeg.in> wrote:

> You probably need to do the following:
>
> mkdir /home/apt
> cp -a /var/cache/apt /home/apt
> rmdir /var/cache/apt
> ln -s /home/apt /var/cache/apt
>
> This moves the stuff to the new place, deletes the now empty directory and
> links the new stuff so it appears to be in /var/cache/apt as expected by
> the package manager.
>

If /var/cache/apt still has files in it rmdir may complain.  So better may
be:

rm -f /var/cache/apt

Also cp -a may slower than just moving the files with:

 mv /var/cache/apt /home/

which will move the entire apt directory to the /home/ location. Then rm -f
will not be necessary as the directory will have already been moved to the
new location.

-- 
mike c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/york/attachments/20121105/73cf0f46/attachment.html>


More information about the York mailing list