Ubuntu – “No space left” during upgrade

diskupgrade

I'm in the process of running the 12.04 upgrade (Kubuntu). My root partition is a bit small, but I cleared as much as I could after the upgrade told me it needed more space.

During "Installing the upgrades" it was doing something with 'nvidia_current' and ran out of space writing /lib/modules/3.2.0-24-generic/updates/dkms/nvidia_current.ko

I have cleared some more space by deleting old logs, but the upgrade process sits there adding more dots to a long line. There is about 180MB free now, which seems to be going down slowly.

Will it ever continue or will a reboot continue the upgrade?

Best Answer

It didn't look like it was going to do anything further, so I restarted. The new kernel didn't boot, so I went back to the old one. Various stuff was broken, including network.

Tried running

sudo apt-get dist-upgrade 

and that said to run

sudo dpkg --configure -a

That seemed to finish off the set-up and I now have a working system again. Still need to test a few things, but generally looking good.

Since then I've moved /var to a different partition to avoid this issue in future as detailed on How can I store /var on a separate partition?