Not Enough Space to Upgrade Ubuntu

I have just a small 4GB SSD drive with my Ubuntu installation on it, and when I was going to upgrade to Ubuntu 10.04 (Lucid), I had to free up some space. Instead of removing all programs that I had installed, I googled and found something neat.
Ubuntu logo
New packages are downloaded to ‘/var/cache/apt/archives’ and by creating a link to another place with more space you will “trick” the upgrader.

I have also a 150GB drive which I have my home folder located in, so I created a folder there to take the heavy upgrading.

sudo su
cd /var/cache/apt
mv archives archives-original
mkdir -p archives/partial
mkdir -p /home/<username>/temp/archives
ln -s /home/<username>/temp archives
upgrade-manager

Restore to default:

rm archives
mv archives-original archives
rm -r /home/<username>/temp

Source:
http://www.webupd8.org/2009/11/how-to-upgrade-to-ubuntu-1004-lucid.html

Tags:

Leave a Reply