On my Elementary OS system, dpkg reports a number of kernel packages that aren't installed. (I did an apt-get purge on them previously.) I'd like to have them forgotten about entirely, but I can't figure out how to get them that way.
elementary:~$ dpkg -l linux-*-3.2.0-51* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-====================================-====================================-======================================================================================== un linux-headers-3.2.0-51 <none> (no description available) un linux-headers-3.2.0-51-generic <none> (no description available) un linux-image-3.2.0-51-generic <none> (no description available)
apt-get purge doesn't work:
elementary:~$ sudo apt-get purge linux-headers-3.2.0-51 Reading package lists... Done Building dependency tree Reading state information... Done Package linux-headers-3.2.0-51 is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
dpkg doesn't work:
elementary:~$ sudo dpkg --purge linux-headers-3.2.0-51 dpkg: warning: there's no installed package matching linux-headers-3.2.0-51 elementary:~$ sudo dpkg --forget-old-unavail dpkg: warning: obsolete '--forget-old-unavail' option, unavailable packages are automatically cleaned up.
elementary:~$ apt-cache policy linux-headers-3.2.0-51 linux-headers-3.2.0-51: Installed: (none) Candidate: 3.2.0-51.77 Version table: 3.2.0-51.77 0 500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
aptitude isn't installed.
Obviously, there's something I'm not understanding. Why does dpkg -l show purged packages? How do I go about making dpkg forget about them?