I'm using Ubuntu installed inside windows with Wubi.
During upgrade to 12.04 I came across a rather devious trap. About 25% through the installation of packages, I get the message that packages can't be installed due to lack of disk space on /usr. And of course, its down to 140M when I check.
So what to do? Can't interrupt, can't continue. Since I have a huge disk that seems accessible, which is /host, namely the USB HDD I have Ubuntu installed on, I figure what the heck, perhaps I can copy over some files there and then make links to them in /usr. So I tried sudo mv /usr/lib /host/usr, but all this did was cause error messages and leave the files in place, while creating copies in /host/usr, a behaviour I found oddly disconcerting: What happened? Did some files get moved and some not?
So I figured, perhaps I can check and see if I can remove some stuff with apt-get, but that gave the error that there was a lock on the dpkg something or other, "perhaps it is used by another process?".
What's left to do? I clicked through the warnings of packages not being installed and rebooted, and now startup is aborted and I end up at the text-only login prompt.
So, my installation is screwed, I'll probably just reinstall and do it without Wubi this time.
My question is two-fold:
- Why wouldn't an installation process check disk space required before I click ok? Especially when it cannot be interrupted.
- Is there a way to get around these kind of traps, where you need space now. What tricks are there?