Confusion about ubuntu 24.04.2 latest kernel out ot sync kernel auto removal

running ubuntu 24.04.2 on a nvme drive that boots from a second sata drive. the kernel versions between both drive need to be in sync. but at the last update to the nvme drive it upgrade to 6.8.0-54 and removed 6.8.0-53. while the sata drive has 6.8.0-52 and 6.11.0-17

ls /sata/boot/
config-6.11.0-17-generic memtest86+x64.bin
config-6.8.0-52-generic memtest86+x64.efi
grub System.map-6.11.0-17-generic
initrd.img System.map-6.8.0-52-generic
initrd.img-6.11.0-17-generic vmlinuz
initrd.img-6.8.0-52-generic vmlinuz-6.11.0-17-generic
initrd.img.old vmlinuz-6.8.0-52-generic
memtest86+ia32.bin vmlinuz.old
memtest86+ia32.efi

ls /boot
config-6.8.0-52-generic memtest86+ia32.efi
config-6.8.0-54-generic memtest86+x64.bin
efi memtest86+x64.efi
grub System.map-6.8.0-52-generic
initrd.img System.map-6.8.0-54-generic
initrd.img-6.8.0-52-generic vmlinuz
initrd.img-6.8.0-54-generic vmlinuz-6.8.0-52-generic
initrd.img.old vmlinuz-6.8.0-54-generic
memtest86+ia32.bin vmlinuz.ol

not sure if 6.11.0-17 should be used on both or if 6.8.0-54 should be?
looking at mailline kernels it shows
6.8.0-54.56
6.8.0-54.56
6.8.0-53.55
6.8.0-52.53
6.8.0-51.52
all installed the 53.55 is confusing

using grub-customizer to keep running 6.8.0-52

Thanks
Jim

1 Like

try to install 6.8.0-54 on the SATA boot drive using:

$ sudo apt install --reinstall linux-image-6.8.0-54-generic linux-headers-6.8.0-54-generic
$ sudo update-grub

Furthermore you might want to disable kernel auto removal. Look for Unattended-Upgrade::Remove-Unused-Kernel-Packages in /etc/apt/apt.conf.d/50unattended-upgrades and set it to false like:

"Unattended-Upgrade::Remove-Unused-Kernel-Packages" "false";

To apply changes run:

$ sudo systemctl restart unattended-upgrades

1 Like

Lubos

That worked and both drives are at 6.8.0-54-generic
Is there a mechanism that holds back the nvme drive from going to the 6.11.0-17 that is on the sata drive?
Thanks again for you much needed Help
Jim

How did you install 6.11.0-17? Did you add some other repository sources? You might want to review your repo sources. Or perhaps did you install it manually?

I seldom boot to the sata drive. So when I see a new kernel in the logwatch of the nvme drive I log into the sata and run update upgrade. I didn’t realize that a much higher kernel had loaded but I did notice that I had to change the kernel to 6.8.0-52 in able to match to drive. Since the nvme drive had removed the 6.8.0-53 kernel
I don’t know how the 6.11.0-17 kernel arrived.
Thanks
Jim

The sata drive had linux-generic-hwe-24.04 and that was the reason for the different kernel’s on sata. Removed the hwe stack and reset both to 6.8.0-55-generic.
Thanks again
Jim

1 Like