Debian Bug report logs - #877789
linux-headers-X should be still considered USED if linux-image-X is still installed

version graph

Package: apt; Maintainer for apt is APT Development Team <[email protected]>; Source for apt is src:apt (PTS, buildd, popcon).

Reported by: 積丹尼 Dan Jacobson <[email protected]>

Date: Thu, 5 Oct 2017 17:45:01 UTC

Severity: normal

Found in version apt/1.5

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], APT Development Team <[email protected]>:
Bug#877789; Package apt. (Thu, 05 Oct 2017 17:45:04 GMT) (full text, mbox, link).


Acknowledgement sent to 積丹尼 Dan Jacobson <[email protected]>:
New Bug report received and forwarded. Copy sent to APT Development Team <[email protected]>. (Thu, 05 Oct 2017 17:45:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: 積丹尼 Dan Jacobson <[email protected]>
To: [email protected]
Subject: linux-headers-X should be still considered USED if linux-image-X is still installed
Date: Thu, 05 Oct 2017 23:21:03 +0800
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;



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Mon Nov 11 13:37:35 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.