You probably need to do the following:<div><br></div><div>mkdir /home/apt</div><div>cp -a /var/cache/apt /home/apt</div><div>rmdir /var/cache/apt</div><div>ln -s /home/apt /var/cache/apt</div><div><br></div><div>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.<br clear="all">
--<br>Regards,<br>Harry Mills<br><a href="http://haeg.in" target="_blank">http://haeg.in</a><br><div>07708228571</div><br>
<br><br><div class="gmail_quote">On 5 November 2012 21:49, nigel white <span dir="ltr"><<a href="mailto:xm2@btinternet.com" target="_blank">xm2@btinternet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thank you all for these ideas.<br>
<br>
I had a look at /tmp and /var but I've no idea what is safe to delete<br>
and what isn't.<br>
<br>
For the symlink solution: I am out of my depth, but is this OK -<br>
ln -s /var/cache/apt/ /home/apt/<br>
or is there more to it than that?<br>
<br>
And after that, do I just merrily update, using Ubuntu's updating wizard, with no alterations?<br>
<br>
And after I've updated, do I remove the symlink?<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888">Nigel<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Mon, 2012-11-05 at 09:53 +0000, mike cloaked wrote:<br>
> On Sun, Nov 4, 2012 at 11:31 PM, Steve Kemp <<a href="mailto:steve@steve.org.uk">steve@steve.org.uk</a>> wrote:<br>
><br>
> > On Sun Nov 04, 2012 at 23:21:55 +0000, David Morris wrote:<br>
> ><br>
> > > It may be that there is some rubbish in /tmp or /var that you can<br>
> > dump.<br>
> > > If there isn't, the simplest solution to your *stated* problem would<br>
> > be to<br>
> > > use a partitioningtool to resize the root partition, using some of<br>
> > that spare space in<br>
> > > /home.<br>
> ><br>
> > The *simplest* approach would be to make /var/cache/apt/ a symlink to<br>
> > /home/apt/<br>
> ><br>
> > That way the downloaded files will go to the partition that has the<br>
> > space, and avoids repartitioning which will be hard to guide a user<br>
> > through remotely.<br>
> ><br>
> ><br>
> I was about the post a similar solution - though I don't run Ubuntu so was<br>
> unsure which directory was going to be used to hold the cache. Sometimes<br>
> symlinks don't work and need a bind mount instead - so if the symlink works<br>
> then you will be off and running but if for some reason that does not work<br>
> then try a bind mount instead and when you are done then remove the bind<br>
> mount.<br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> York mailing list<br>
> <a href="mailto:York@lists.lug.org.uk">York@lists.lug.org.uk</a><br>
> <a href="https://mailman.lug.org.uk/mailman/listinfo/york" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/york</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
York mailing list<br>
<a href="mailto:York@lists.lug.org.uk">York@lists.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/york" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/york</a><br>
</div></div></blockquote></div><br></div>