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. a simple question. After I updated my kernel, I couldn't boot (stuck on purple screen) unless I chose the old kernel. So how do I delete the new kernel with synaptic. And how do I do this safely? I'm in Quantal Quetzel. My kernel is 3.5.0-40. The working kernel is 3.5.0-39. Also, how do I stop kernel updates from appearing in the update manager? Thanks.

share|improve this question
    
what is the version of the Kernel? you want to remove? –  mojo706 Sep 8 '13 at 20:41
    
My kernel is 3.5.0-40 –  Dave Sep 8 '13 at 20:52
1  
If you'd prefer answers to include information about preventing the new kernel from being installed again with your other updates, you might want to include that in your question. –  Eliah Kagan Sep 9 '13 at 0:25

2 Answers 2

up vote 3 down vote accepted

To safely remove the unwanted kernel, open a terminal session and run the command:

Find the kernel package name

dpkg -l | grep 3.5.0-40

On amd64/x86_64 it is linux-image-3.5.0-40-generic.

Remove (purge - remove all configuration files as well)

sudo apt-get purge linux-image-3.5.0-40-generic

share|improve this answer
    
Thanks I'll try that tomorrow and post back. Ty. :) –  Dave Sep 8 '13 at 21:13
    
Oh don't I need to do sudo update-grub after that? –  Dave Sep 8 '13 at 21:15
    
The postrm script of the package will update grub for you when you remove (purge) it;-) –  Terry Wang Sep 8 '13 at 21:18
    
Thanks Terry that fixed my problem. Now how do I keep kernel updates out of the update manager? –  Dave Sep 9 '13 at 13:26
    
sudo apt-get update && apt-get dist-upgrade -y, not sure if you have linux-current-generic or linux-image-generic-lts-raring on non-LTS releases. –  Terry Wang Sep 9 '13 at 13:34
sudo apt-get remove linux-image-3.5.0-40*.

I will suggest you always keep at least one older kernel available, just in case you need to boot into it for reasons you may never expect right now.

share|improve this answer
    
Ik that about keeping the kernels. Very important stuff. I have one other besides this one. Ty I'll try it tomorrow and post back. –  Dave Sep 8 '13 at 21:14

Your Answer

 
discard

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.