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

nigel white xm2 at btinternet.com
Mon Nov 12 09:36:04 UTC 2012


It worked! Thank you all for your wizardry in getting the update to run.

Now to see if Ubuntu still crashes occasionally......

Best wishes
Nigel
Headingley
Leeds




On Mon, 2012-11-05 at 23:00 +0000, mike cloaked wrote:
> 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.
> 
> 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
> 
> _______________________________________________
> York mailing list
> York at lists.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/york





More information about the York mailing list