Ubuntu /boot space revisited

We were troubleshooting my problem in the comments of my prior post, but I didn’t expect to test it out on this machine so soon. I thought that maybe autoremove would work, but it didn’t.

First I got the error message from the software updater:

Window showing updates need to be installed

Error message about not having enough space, with recommendation to use apt-get clean.

I tried a few commands, with various levels of feedback and non-changes:

Finally I just used the snippet I referenced before:

dpkg -l linux-{image,headers}-"[0-9]*" | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e '[0-9]' | xargs sudo apt-get -y purge

That did the trick:

Status window showing Ubuntu base updates are working

In one sense I am happy I wasn’t just missing something obvious, but on the other hand I kinda wished I had figured out how to use apt or apt-get to solve this, or better yet that the software updater knew how to solve this. I am always worried about recommending Ubuntu to a person that by all means would never use a commandline.


Now excuse me while I…

Prompt asking to restart the computer.