On Mon 16 Nov 2026 at 10:21:46 (-0600), [email protected] wrote: > On 2026-11-16 05:30, Vincent Lefevre wrote: > > On 2026-11-15 11:41:53 -0700, Charles Curley wrote: > > > root@peregrine:~# apt-get -s --purge autoremove > > > Reading package lists... Done > > > Building dependency tree... Done > > > Reading state information... Done > > > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. > > > > If you remove your > > > > APT::NeverAutoRemove::KernelCount "3"; > > > > setting, does this change anything? > > > > I'm wondering whether APT::NeverAutoRemove::KernelCount is buggy > > when explicitly set to any value. > > If I remove it, I get: > > root@peregrine:~# apt -s upgrade > > The following packages were automatically installed and are no longer > required: > linux-image-6.12.111+deb13-amd64 linux-image-6.12.113+deb13-amd64 > linux-image-6.12.115+deb13.1-amd64 > Use 'apt autoremove' to remove them. > > Summary: > Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0 > root@peregrine:~# > > As I have five kernels on that machine, that looks reasonable to me.
Yes, but that's just testing the default regime that most people here probably run under: the two most recent kernels are left installed. It would be more realistic to try out Vincent's suggestion by testing with APT::NeverAutoRemove::KernelCount "N"; where N=0…6 in turn. Cheers, David.

