On Mon, Nov 16, 2026 at 6:03 PM David Wright <[email protected]> wrote:
>
> On Mon 16 Nov 2026 at 10:21:46 (-0600), [email protected] wrote:
> > [...]
> > 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.

Wandering a little off-topic... The thread piqued my interest because
I run both a standard kernel and HWE kernel on Ubuntu.  It allows me
to run, say, a 6.x kernel most of the time, and drop back to a 5.x
kernel when things break.*  Under Ubuntu, the packages are:

   * Standard - linux-image-generic linux-headers-generic
   * HWE - linux-headers-generic-hwe-24.04 linux-image-generic-hwe-24.04

So the question in my mind is, which kernels are removed when kernels
from different lines are present?

[*] It used to happen on occasion on an Acer laptop with a 5-core AMD
cpu/gpu combo.  Sound and video would break on the 6.x kernel on
occasion, and I dropped back to the standard kernel waiting for the
fix.  When I saw a new HWE kernel was available, I would switch back
to HWE.

Jeff

Reply via email to