Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3474

Debian grub.cfg is missing latest kernel

$
0
0
Hello, on Debian 12, the "sudo apt upgrade" shows:

Code:

The following packages were automatically installed and are no longer required:  linux-headers-6.1.0-28-amd64 linux-headers-6.1.0-28-common linux-image-6.1.0-28-amd64 
yet during boot, my latest available kernel boot entry is older one: *27: 6.1.0-27-amd64
and the latest kernel which apt automatically installed is *29

yet it is not in a boot menu which appears during reboot.

$ sudo apt reinstall linux-image-6.1.0-29-amd64

Code:

Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following packages were automatically installed and are no longer required:  linux-headers-6.1.0-28-amd64 linux-headers-6.1.0-28-common linux-image-6.1.0-28-amd64Use 'sudo apt autoremove' to remove them.0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.Need to get 69.0 MB of archives.After this operation, 0 B of additional disk space will be used.Get:1 http://deb.debian.org/debian bookworm/main amd64 linux-image-6.1.0-29-amd64 amd64 6.1.123-1 [69.0 MB]Fetched 69.0 MB in 6s (10.8 MB/s)                                                                                                                                                                                                          (Reading database ... 311759 files and directories currently installed.)Preparing to unpack .../linux-image-6.1.0-29-amd64_6.1.123-1_amd64.deb ...Unpacking linux-image-6.1.0-29-amd64 (6.1.123-1) over (6.1.123-1) ...Setting up linux-image-6.1.0-29-amd64 (6.1.123-1) .../etc/kernel/postinst.d/dkms:dkms: running auto installation service for kernel 6.1.0-29-amd64.dkms: autoinstall for kernel: 6.1.0-29-amd64./etc/kernel/postinst.d/initramfs-tools:update-initramfs: Generating /boot/initrd.img-6.1.0-29-amd64/etc/kernel/postinst.d/zz-update-grub:Generating grub configuration file ...Found background image: .background_cache.pngFound linux image: /boot/vmlinuz-6.1.0-29-amd64Found initrd image: /boot/initrd.img-6.1.0-29-amd64Found linux image: /boot/vmlinuz-6.1.0-28-amd64Found initrd image: /boot/initrd.img-6.1.0-28-amd64Found linux image: /boot/vmlinuz-6.1.0-27-amd64Found initrd image: /boot/initrd.img-6.1.0-27-amd64Found linux image: /boot/vmlinuz-6.1.0-29-amd64Found initrd image: /boot/initrd.img-6.1.0-29-amd64Found linux image: /boot/vmlinuz-6.1.0-28-amd64Found initrd image: /boot/initrd.img-6.1.0-28-amd64Found linux image: /boot/vmlinuz-6.1.0-27-amd64Found initrd image: /boot/initrd.img-6.1.0-27-amd64Warning: os-prober will not be executed to detect other bootable partitions.Systems on them will not be added to the GRUB boot configuration.Check GRUB_DISABLE_OS_PROBER documentation entry.Adding boot menu entry for UEFI Firmware Settings ...done

$ grep linux /boot/grub/grub.cfg

Code:

### BEGIN /etc/grub.d/10_linux_proxy ###set linux_gfx_mode=export linux_gfx_mode### END /etc/grub.d/10_linux_proxy ###menuentry "Debian GNU/Linux, with Linux 6.1.0-27-amd64" --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-27-amd64-advanced-stringhere' {                echo    'Loading Linux 6.1.0-27-amd64 ...'                linux   /vmlinuz-6.1.0-27-amd64 root=/dev/mapper/abc--vg-root ro  quiet### BEGIN /etc/grub.d/41_linux_proxy ###menuentry "Debian GNU/Linux, with Linux 6.1.0-27-amd64 (recovery mode)" --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-27-amd64-recovery-stringhere' {                echo    'Loading Linux 6.1.0-27-amd64 ...'                linux   /vmlinuz-6.1.0-27-amd64 root=/dev/mapper/abc--vg-root ro single quiet### END /etc/grub.d/41_linux_proxy ###menuentry "Debian GNU/Linux, with Linux 5.10.0-20-amd64" --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-20-amd64-advanced-stringhere' {                echo    'Loading Linux 5.10.0-20-amd64 ...'                linux   /vmlinuz-5.10.0-20-amd64 root=/dev/mapper/abc--vg-root ro  quiet### BEGIN /etc/grub.d/44_linux_xen ###### END /etc/grub.d/44_linux_xen ###
*29 is not there...

$ grep / /etc/fstab

Code:

/dev/mapper/abc--vg-root /               ext4    noatime,errors=remount-ro,nofail 0       1UUID=differentFromGrub.cfgOutput /boot           ext2    defaults        0       2UUID=xy-xy /boot/efi vfat umask=0022
How I could cause this? I only remember that in the past (~2 months ago?) I did:
sudo apt reinstall linux-image-5.10.0-29-amd64 # one version older kernel than current Bullseye oldstable
sudo update-initramfs -uk all ; sudo update-grub
What to try please?

Statistics: Posted by postcd — 2025-01-13 06:17 — Replies 0 — Views 49



Viewing all articles
Browse latest Browse all 3474

Trending Articles