Problem with removing kernels

Asked by Luis M.Jacinto on 2015-05-03

Ubuntu 12.04

After I was advised to cleaning up old obsolete versions of the kernel packages went to find how.
Follow same instructions on the web.

luis@luis-G41M-Combo:~$ uname -r
3.2.0-82-generic-pae
luis@luis-G41M-Combo:~$

To find old kernel packages
luis@luis-G41M-Combo:~$ dpkg -l | grep linux-image-
rc linux-image-3.2.0-23-generic-pae 3.2.0-23.36 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-26-generic-pae 3.2.0-26.41 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-29-generic-pae 3.2.0-29.46 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
rc linux-image-3.2.0-30-generic-pae 3.2.0-30.48 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-31-generic-pae 3.2.0-31.50 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-32-generic-pae 3.2.0-32.51 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-35-generic-pae 3.2.0-35.55 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-36-generic-pae 3.2.0-36.57 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-37-generic-pae 3.2.0-37.58 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-38-generic-pae 3.2.0-38.61 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-39-generic-pae 3.2.0-39.62 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
rc linux-image-3.2.0-40-generic-pae 3.2.0-40.64 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-41-generic-pae 3.2.0-41.66 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-43-generic-pae 3.2.0-43.68 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-44-generic-pae 3.2.0-44.69 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-45-generic-pae 3.2.0-45.70 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-48-generic-pae 3.2.0-48.74 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-49-generic-pae 3.2.0-49.75 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-51-generic-pae 3.2.0-51.77 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-52-generic-pae 3.2.0-52.78 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-53-generic-pae 3.2.0-53.81 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-54-generic-pae 3.2.0-54.82 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-55-generic-pae 3.2.0-55.85 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-56-generic-pae 3.2.0-56.86 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-57-generic-pae 3.2.0-57.87 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-58-generic-pae 3.2.0-58.88 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-60-generic-pae 3.2.0-60.91 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-61-generic-pae 3.2.0-61.93 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-63-generic-pae 3.2.0-63.95 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-64-generic-pae 3.2.0-64.97 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-65-generic-pae 3.2.0-65.99 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-67-generic-pae 3.2.0-67.101 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-68-generic-pae 3.2.0-68.102 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-69-generic-pae 3.2.0-69.103 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-70-generic-pae 3.2.0-70.105 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-72-generic-pae 3.2.0-72.107 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-73-generic-pae 3.2.0-73.108 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-74-generic-pae 3.2.0-74.109 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-75-generic-pae 3.2.0-75.110 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-76-generic-pae 3.2.0-76.111 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-77-generic-pae 3.2.0-77.114 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-79-generic-pae 3.2.0-79.115 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-80-generic-pae 3.2.0-80.116 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-82-generic-pae 3.2.0-82.119 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-generic-pae 3.2.0.82.96 Generic Linux kernel image
luis@luis-G41M-Combo:~$

Tried to remove from 3.2.0-23-generic-pae to 3.2.0-40-generic-pae
luis@luis-G41M-Combo:~$ sudo apt-get autoremove linux-image-3.2.0-23-generic-pae linux-image-3.2.0-40-generic-pae
Then restart computer and check for Kernel packages again with the command dpkg -l | grep linux-image-

Found all the packages still the same nothing was removed.
What I am doing wrong?
Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
2015-05-05
Last query:
2015-05-05
Last reply:
2015-05-03

linux-image-3.2.0-23-generic-pae is not installed, hence the 'rc' in the first column and not 'ii'. There is only residual configuration files for it. You can remove these with:

sudo dpkg -P linux-image-3.2.0-23-generic-pae

Luis M.Jacinto (ljacinto) said : #2

Thanks actionparsnip, that solved my question.