Today I ran into a problem when trying to install some updates for my Xubuntu 12.10… I got a message saying:
Its suggestion of ‘sudo apt-get clean’ didn’t do anything, nor did ‘sudo apt-get autoclean’, ‘sudo apt-get autoremove’, etc. After some Googling (DDGing), I found a solution…
The ‘/boot’ partition is normally rather small (243.0 MiB in my case) and contains Linux Kernel files, these are the files that get your computer going as it should. Think of them as the skeleton of your OS, but for some reason when your skeleton gets upgraded, it leaves the old one behind, which can quickly fill-up your ‘/boot’ partition.
Only one Kernel (skeleton) is used when booting your computer but it’s always good practice to leave one spare laying around just in case, you don’t really need any more than the current one and an old spare one.
Open up terminal and execute this:
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/(.*)-([^0-9]+)/1/")"'/d;s/^[^ ]* [^ ]* ([^ ]*).*/1/;/[0-9]/!d'