Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

i have some problem.

First i upgraded ubuntu to 12.04 and all of packages. But after that i have a lot of problems so i decided to downgrade to 11.10.

After i did that i have two kernels 3.2.x and 3.0.x. I found a lot of solutions how to remove older kernels but i have no idea how to remove newer kernel ?

I dont see 3.2 kernel when im using a 3.0 kernel. But i see it in grub.

When i type uname -r in terminal i see only 3.0.x kernel which im using at the moment.. Any solutions to delete 3.2 kernel ?

share|improve this question

2 Answers 2

There is going to be 3 files you will need to remove. Others if using virtual machine too. But these are the main ones.

Open synaptic, use the search to find the installed kernels


linux-header-3.2.x.x-generic (possiably generic-pae or i686)


Should be easy enough to remove. Afterward run

sudo update-grub
share|improve this answer
I dont see any version of kernel in synaptic, other than 3.0.0.x –  Pawel Feb 21 '12 at 8:03
Strange, are you sure that you still have the package installed or is it a ghost contained in GRUB? I would run "sudo update-grub" and see if it goes away. If not look into your /boot folder and see if there are any remains of the kernel in question. –  Ringtail Feb 21 '12 at 20:30
After update grub i have in console: Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.2.0-17-generic Found initrd image: /boot/initrd.img-3.2.0-17-generic Found linux image: /boot/vmlinuz-3.0.0-16-generic Found initrd image: /boot/initrd.img-3.0.0-16-generic Also i /boot directory i have entries with 3.2.x version. –  Pawel Feb 21 '12 at 21:27
OK if you open synaptic and search 3.2.0-17 what are the results? –  Ringtail Feb 21 '12 at 21:56
Empty list. No results. –  Pawel Feb 22 '12 at 8:15

This should remove your 3.2 kernel:

sudo apt-get remove --purge 3.2.x-xx-*

Obviously, replace the x's with the actual version numbers from your 3.2 kernel version. If you don't remember what those numbers are, you should be able to see them by looking in the /boot directory.

The last time I did this, I recall it triggering a grub-update to remove it from the GRUB menu as well.

-This works best for removing newer kernels that you want remove like 3.3.0 +, which would not be found in synaptic, this is a life saver! -Rabbit2190

share|improve this answer
Afther this command: E: Couldn't find any package by regex '3.2.0-17-generic' –  Pawel Feb 21 '12 at 8:04
Do you see any files with that version in your /boot dir? Based-on the comments on BlueXrider's answer it almost sounds like it's already been removed. –  BryceAtNetwork23 Feb 22 '12 at 13:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.