If you are running 16.04 LTS or newer ubuntu flavors this is no longer required and is handled for you automatically, thank you ubuntu.
- Run boot repair on my gnome desktop menu: System Tools -> Administration -> Boot Repair
- Provide admin password. Wait for scan to complete.
- Click lower button: "Create bootinfo summary". Wait for next dialog box to pop open.
- Copy URL given and paste into a browser address line.
- Scroll down to "menuentry" xml nodes in browser bootinfo display.
- Make notes of older kernel grub entries you want to do away with. I keep five generations on my system which is probably overkill. Note that the one I've highlighted in orange above is the first menuentry node in the "Previous Linux versions" section of the document. The ones you want to trim are going to be towards the bottom of that section of the document.
- Open a command prompt and from your notes (see step 6) create a command line like this:
sudo apt-get purge linux-image-3.13.0-{62,61,59,58,57}-generic \
linux-headers-3.13.0-{62,61,59,58,57} \
linux-headers-3.13.0-{62,61,59,58,57}-generic
09/20/2016 note....
On my newer 64-bit xenial system it is now four modules per update as follows:
sudo apt-get purge linux-image-4.4.0-{34,31,28}-generic \
linux-image-extra-4.4.0-{34,31,28}-generic \
linux-headers-4.4.0-{34,31,28} \
linux-headers-4.4.0-{34,31,28}-generic \- Your kernel version will very likely be different from mine. That is the dot separated digits (3.13.0) in my case.
- Your purge numbers will definitely be different from mine. That is the the five numbers contained in the comma separated list in the curly braces (62,61,59,58,57) in all three of my cases. These are the numbers you noted down in step 6 above!!!!
- The sudo command will of course ask for your administrative password again when you press enter. This is your last chance to prevent a catastrophe!!!!!!!!!!!!
- If you are removing a single kernel then the entire curly brace regular expression should be removed and replaced by the digits of the kernel you want to remove (example: 62 rather than {62} ). The curly brace construct will not work for the single member case.
- Finally, that there is no dang undo command, you better aim and fire carefully sir. Don't wreck your system, you have been warned. Your system is, well, your system after all. Don't blame me for your incompetence. You can always take the low road and use Windows products. Happy Motoring!