Comme solution à autre problème , j’ai été obligé d’utiliser dpkg --remove
pour désinstaller un paquet. Cependant, après cette opération, le package est toujours répertorié dans dpkg -l
:
phrogz@planar:/boot$ dpkg -l | grep linux-image-2
ii linux-image-2.6.32-30-server 2.6.32-30.59 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-31-server 2.6.32-31.61 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-32-server 2.6.32-32.62 Linux kernel image for version 2.6.32 on x86
phrogz@planar:/boot$ Sudo dpkg --remove linux-image-2.6.32-30-server
(Reading database ... 141902 files and directories currently installed.)
Removing linux-image-2.6.32-30-server ...
Running postrm hook script /usr/sbin/update-grub.
Generating grub.cfg ...
[...]
done
phrogz@planar:/boot$ dpkg -l | grep linux-image-2
rc linux-image-2.6.32-30-server 2.6.32-30.59 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-31-server 2.6.32-31.61 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-32-server 2.6.32-32.62 Linux kernel image for version 2.6.32 on x86
phrogz@planar:/boot$ Sudo apt-get --purge remove linux-image-2.6.32-30-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-image-2.6.32-30-server is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Comment puis-je "nettoyer la maison" pour que dpkg-l
ne répertorie plus ces paquets anciens et non existants?
Courir
Sudo dpkg --purge <package>
ou
Sudo apt-get purge <package>
désinstaller <paquet> ET ses fichiers de configuration.