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

Harry Mills harry at haeg.in
Mon Nov 5 22:49:47 UTC 2012


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.
--
Regards,
Harry Mills
http://haeg.in
07708228571



On 5 November 2012 21:49, nigel white <xm2 at btinternet.com> wrote:

> Thank you all for these ideas.
>
> I had a look at /tmp and /var but I've no idea what is safe to delete
> and what isn't.
>
> For the symlink solution: I am out of my depth, but is this OK -
> ln -s /var/cache/apt/ /home/apt/
> or is there more to it than that?
>
> And after that, do I just merrily update, using Ubuntu's updating wizard,
> with no alterations?
>
> And after I've updated, do I remove the symlink?
>
> Thanks
> Nigel
>
>
>
> On Mon, 2012-11-05 at 09:53 +0000, mike cloaked wrote:
> > On Sun, Nov 4, 2012 at 11:31 PM, Steve Kemp <steve at steve.org.uk> wrote:
> >
> > > On Sun Nov 04, 2012 at 23:21:55 +0000, David Morris wrote:
> > >
> > > >    It may be that there is some rubbish in /tmp or /var that you can
> > > dump.
> > > >    If there isn't, the simplest solution to your *stated* problem
> would
> > > be to
> > > >    use a partitioningtool to resize the root partition, using some of
> > > that spare space in
> > > >    /home.
> > >
> > >   The *simplest* approach would be to make /var/cache/apt/ a symlink to
> > >  /home/apt/
> > >
> > >   That way the downloaded files will go to the partition that has the
> > >  space, and avoids repartitioning which will be hard to guide a user
> > >  through remotely.
> > >
> > >
> > I was about the post a similar solution - though I don't run Ubuntu so
> was
> > unsure which directory was going to be used to hold the cache. Sometimes
> > symlinks don't work and need a bind mount instead - so if the symlink
> works
> > then you will be off and running but if for some reason that does not
> work
> > then try a bind mount instead and when you are done then remove the bind
> > mount.
> >
> >
> > _______________________________________________
> > York mailing list
> > York at lists.lug.org.uk
> > https://mailman.lug.org.uk/mailman/listinfo/york
>
>
>
>
> _______________________________________________
> York mailing list
> York at lists.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/york
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/york/attachments/20121105/530ef7be/attachment.html>


More information about the York mailing list