Ubuntu disk full error: apt-get unable to install or remove

UbuntuI encountered the following error while upgrading my Ubuntu 12.04 server. Now apt-get is unable to install or removed any package.

Though I have a lot of free space.


For users of LVM systems, encrypted systems or limited-storage systems, the most frequent problem is that the /boot partition is simply full. The package manager cannot install a pending upgrade due to lack of space. Besides, apt-get can not remove a package due to broken dependency.

This problem can be fixed quickly and easily from the shell. Simply identify one or two old kernels to remove manually, which will provide the package manager enough space to install the queued upgrade.

I followed this with:

sudo apt-get autoremove --purge

Now you will be able to install new kernel!

Be sociable 🙂 Share!