dpkg reporting as installed, uninstalled kernels

Posted by Tony Martin on Ask Ubuntu See other posts from Ask Ubuntu or by Tony Martin
Published on 2014-08-20T02:37:12Z Indexed on 2014/08/20 22:33 UTC
Read the original article Hit count: 223

Filed under:
|

I have run the following command to remove old kernels:

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge

and only the current kernel is now installed, which I have confirmed in synaptic and by checking my boot partition. However, when I run:

dpkg --list | grep linux-image

I get the following response:

rc  linux-image-3.13.0-30-generic                         3.13.0-30.55                                        amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-3.13.0-32-generic                         3.13.0-32.57                                        amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-34-generic                         3.13.0-34.60                                        amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-30-generic                   3.13.0-30.55                                        amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rc  linux-image-extra-3.13.0-32-generic                   3.13.0-32.57                                        amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-34-generic                   3.13.0-34.60                                        amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-generic                                   3.13.0.34.40                                        amd64        Generic Linux kernel image

Probably not a problem, but just wondering why versions -30 and -32 are reported as present. Can it be rectified?

TIA

© Ask Ubuntu or respective owner

Related posts about kernel

Related posts about dpkg