I've got 200 MB assigned for the
/boot partition. Everytime I try to update the kernel I get an error message that basically says the size of
/boot is full.
What can I do to cleanup
/boot and remote/backup the older kernels?
You can use Ubuntu Tweak, it's an easy-to-use graphical tool that let you tweak ubuntu, and also, into the "Janitor" section you can clean the system, as well as remove older kernels. You can take it from here: http://ubuntu-tweak.com/
If you don't like this graphical tool you can use this way:
When you're done removing the older kernels, you can run this to remove ever packages you won't need anymore:
And finally you can run this to update grub kernel list:
NOTE: this is only if you can't use apt to clean up due to a 100% full /boot
If apt-get isn't functioning because your /boot is at 100%, you'll need to clean out /boot first. This likely has caught a kernel upgrade in a partial install which means apt has pretty much froze up entirely and will keep telling you to run
Get the list of kernel images and determine what you can do without
Craft a command to delete all files in /boot for kernels that don't matter to you using brace expansion to keep you sane. Remember to exclude the current and two newest kernel images.
If you run into an error that includes a line like "Internal Error: Could not find image (/boot/vmlinuz-3.2.0-56-generic)", then run the command