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.

Possible Duplicate:
I get two kernel updates, one for Generic and one for Generic-PAE

I am using Ubuntu 12.04 . I don't want to use PAE kernels so i am using normal kernels . but update manager giving me updates regarding PAE kernels and i dont want them .

So can i stop update manager about listing the updates regarding PAE Kernels .

Thank you .

share|improve this question

marked as duplicate by maythux, Eliah Kagan, con-f-use, Takkat, Mik Oct 12 '12 at 10:51

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3  
If you remove existing PAE kernels it won't want to update them any more.... as you sow, so shall you reap, fortune favors the brave, etc. etc. :P –  izx Jun 29 '12 at 16:24
    
@izx small correction to your comment . convert it to answer by adding extra text as " select to remove listed pae kernel in update manager from synaptic manager " bottom line is : " have to remove all existed PAE kernels and then upcoming PAE kernel which was listed in update manager " Thank you . –  AgentCool Jun 29 '12 at 16:49

1 Answer 1

up vote 3 down vote accepted

Why not remove the PAE kernels along with their headers? You don't use them anyway, and that will both solve the updates problem and free some space. To do that, use the following:

  1. This command will only show what's to be removed, without removing anything.

    dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get --dry-run remove
    
  2. This command will purge all unused kernels and headers.

    dpkg -l linux-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get -y purge
    

Info source

Edit: Apparently, that command doesn't remove the metapackages, so I'd add the follwoing as well:

sudo apt-get purge linux-generic-pae linux-image-generic-pae linux-headers-generic-pae
share|improve this answer
    
Hi your solution helped with removing of old/unused kernels , that we could do from Synaptic also .Thank you .great command . –  AgentCool Jun 29 '12 at 16:45

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