Package: apt Version: 1.5 File: /etc/kernel/postinst.d/apt-auto-removal # fgrep linux-h /var/log/aptitude [INSTALL, DEPENDENCIES] linux-headers-4.13.0-1-amd64:amd64 4.13.4-1 [INSTALL, DEPENDENCIES] linux-headers-4.13.0-1-common:amd64 4.13.4-1 [UPGRADE] linux-headers-amd64:amd64 4.12+85 -> 4.13+86 [REMOVE, NOT USED] linux-headers-4.12.0-1-amd64:amd64 4.12.6-1 [REMOVE, NOT USED] linux-headers-4.12.0-1-common:amd64 4.12.6-1
But wait, linux-image-4.12.0-1-amd64 is still installed on my system. $ grep linux-image-4.12.0-1-amd64 /etc/apt/apt.conf.d/01autoremove-kernels ii linux-image-4.12.0-1-amd64 4.12.6-1 amd64 Linux 4.12 for 64-bit PCs Don't you think the linux-headers-X should wait until their respective linux-image-X is removed before getting removed? I use Aptitude::Purge-Unused true;