| RSS

< Browse > Home /

Remove Old Ubuntu Kernels

Everytime you install a new kernel on Ubuntu, it will not remove the old kernels and you'll still be able to boot into one of those kernels. This feature is useful in case the new kernel doesn't run well after installation.

But, there's also a drawback regarding this. Your grub list will grow longer and your startup menu will fill the whole screen. In order to fix this, open  a terminal and type uname -r in the screen, it will produce some text like this:

Run uname -r in terminal

Now, open Synaptic Package Manager and search for linux-image-2. It will show you all kernels available and those you already installed. Choose kernel images that you don't need and click on it, select Mark for Removal. Now apply it and your grub menu should be free from old kernels.

Note: Be careful not to delete your newly installed kernel, it should be the one you see in terminal window after you execute uname -r.