dpkg reporting as installed, uninstalled kernels
- by Tony Martin
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…