[Bug 1914278] Re: apt autoremove is not removing unused kernels

2021-02-04 Thread Balint Reczey
APT and u-u and marking work as designed. ** Changed in: unattended-upgrades (Ubuntu) Status: Incomplete => Invalid ** Changed in: apt (Ubuntu) Status: Incomplete => Invalid ** Summary changed: - apt autoremove is not removing unused kernels + discover is not removing unused

[Bug 1914278] Re: apt autoremove is not removing unused kernels

2021-02-03 Thread Erich Eickmeyer 
TJ: linux-image-5.4.0-40-generic/focal-updates,focal-security,now 5.4.0-40.44 amd64 [installed,automatic] linux-image-5.4.0-40-lowlatency/focal-updates,focal-security,now 5.4.0-40.44 amd64 [installed,automatic] linux-image-5.4.0-42-generic/focal-updates,focal-security,now 5.4.0-42.46 amd64

[Bug 1914278] Re: apt autoremove is not removing unused kernels

2021-02-03 Thread Balint Reczey
Please install a few old kernels manually, mark them autoremovable and run u-u in verbose and debug mode. If u-u removes those kernels this is not an u-u bug. Then install those again and try removing them with apt. If apt removes those kernels than this is not an APT bug. ** Changed in:

[Bug 1914278] Re: apt autoremove is not removing unused kernels

2021-02-02 Thread TJ
Erich, looks like that code wasn't reached or if it was the object (list) "auto_removable" was empty. Maybe the problem is outside this code. Does apt think those packages are still installed? apt list --installed 'linux-image*' Also, what is the actual content of /boot/ ("ls -latr /boot/") ?

[Bug 1914278] Re: apt autoremove is not removing unused kernels

2021-02-02 Thread Erich Eickmeyer 
** Changed in: unattended-upgrades (Ubuntu) Status: Incomplete => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1914278 Title: apt autoremove is not removing unused kernels To manage

[Bug 1914278] Re: apt autoremove is not removing unused kernels

2021-02-02 Thread Erich Eickmeyer 
Hi TJ, Here's the output from the patched version: https://paste.ubuntu.com/p/dzGqfR9PRH/ I hope this helps. Thanks for chipping-in! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1914278 Title:

[Bug 1914278] Re: apt autoremove is not removing unused kernels

2021-02-02 Thread Ubuntu Foundations Team Bug Bot
The attachment "Kernel pkg debugging" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team. [This is an automated message performed by a Launchpad user owned by

[Bug 1914278] Re: apt autoremove is not removing unused kernels

2021-02-02 Thread TJ
I haven't been able to test this since the systems I have here don't have any kernel images lying around, but wondering if this patch could help narrow down the cause? Apply to a (copy) of /usr/bin/unattended-upgrade - possibly put in /usr/local/bin/ so it is called before the package-installed

[Bug 1914278] Re: apt autoremove is not removing unused kernels

2021-02-02 Thread Erich Eickmeyer 
Balint: Here's the result: https://paste.ubuntu.com/p/9kbT6HDpjw/ Bear in mind, I have a few external repositories, and we also ship a bunch of external repositories by default. That said, none of those should affect this as they don't contain kernels, nor do we pin any kernels. If you'd like,

[Bug 1914278] Re: apt autoremove is not removing unused kernels

2021-02-02 Thread Balint Reczey
@eeickmeyer Please run manually: sudo unattended-upgrade --verbose --debug -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1914278 Title: apt autoremove is not removing unused kernels To manage

[Bug 1914278] Re: apt autoremove is not removing unused kernels

2021-02-02 Thread Erich Eickmeyer 
Balint: Here's the results, looks like everything matches what you've got there. erich@erich-KFocus:~$ cat /etc/apt/apt.conf.d/20auto-upgrades APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Download-Upgradeable-Packages "1"; APT::Periodic::AutocleanInterval "0";

[Bug 1914278] Re: apt autoremove is not removing unused kernels

2021-02-02 Thread TJ
I'm also wondering if these are laptops or desktops, and if laptops, are they mainly on battery whilst not sleeping/charging? I ask since apt- daily-upgrade.service has: ConditionACPower=true and so may be reporting: Condition check resulted in Daily apt upgrade and clean activities being

[Bug 1914278] Re: apt autoremove is not removing unused kernels

2021-02-02 Thread Balint Reczey
Is unatteded-upgrade disabled on the system? $ cat /etc/apt/apt.conf.d/20auto-upgrades APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Unattended-Upgrade "1"; $ apt-config dump | grep Periodic APT::Periodic ""; APT::Periodic::Update-Package-Lists "1";

[Bug 1914278] Re: apt autoremove is not removing unused kernels

2021-02-02 Thread Erich Eickmeyer 
Hi Balint! Unfortunately, it looks like it didn't run at all. On my system, I came up with this: root@erich-KFocus:/var/log/unattended-upgrades# grep 'unused kernel' /var/log/unattended-upgrades/*.gz root@erich-KFocus:/var/log/unattended-upgrades# That tells me it likely didn't run at all.

[Bug 1914278] Re: apt autoremove is not removing unused kernels

2021-02-02 Thread Balint Reczey
The configuration file is fine, it is the default value that's commented out. Please check unattended-upgrades logs if it performed kernel removals: zgrep 'unused kernel' /var/log/unattended-upgrades/*.gz Also please check if it ran at all. ** Changed in: unattended-upgrades (Ubuntu)