Ubuntu 24.04.1 server - grub did not update after update-upgrade....

Jeffrey Walton noloader at gmail.com
Thu Dec 26 22:29:30 UTC 2024


On Thu, Dec 26, 2024 at 1:43 PM Bo Berglund <bo.berglund at gmail.com> wrote:
>
> I return with yet a new problem concerning my ubuntu server and grub boot....
>
> I have run a do-release-upgrade twice on this machine to get from 20.04.6 to
> 24.04.1 LTS. It seemed to work with sime minor issues concerning a couple of
> applications.
>
> Now after Xmas I am back and I ran:
>
> $ sudo apt update && sudo apt full-upgrade -y
>
> This shows a message inside all that is written about the system needing to be
> rebooted to get from kernel 5.15.0-126 to 6.8.0-51 so I did the reboot and
> nothing changed:
>
>
> $ uname -r
> 5.15.0-126-generic
>
> and
>
> $ dpkg --list 'linux-image*' | grep ^ii
> ii  linux-image-5.15.0-126-generic 5.15.0-126.136 amd64 Signed kernel image
> generic
> ii  linux-image-6.8.0-51-generic 6.8.0-51.52 amd64 Signed kernel image generic
> ii  linux-image-generic  6.8.0-51.52  amd64 Generic Linux kernel image
> ii  linux-image-generic-hwe-20.04  5.15.0.126.136~20.04.1 amd64 Generic Linux
> kernel image
>
> I then ran:
>
> sudo update-grub
> sudo reboot
>
> And now I stopped to look at the grub menu
> (the server is on partition nvme0n1p6)
>
> Main menu:
> ------------------------------------------------------------------------
>  Ubuntu
>  Advanced options for Ubuntu
>  Windows Boot Manager (on /dev/nvme0n1p1)
> *Ubuntu 20.04.6 LTS (20.04)  (on /dev/nvme0n1p6)
>  Advanced options for Ubuntu 20.04.6 LTS (20.04) (on /dev/nvme0n1p6)
>  UEFI Firmware Settings
>  GParted Live
>  Bootable ISO Image: gparted-live-1.3.1-1-amd64
> -------------------------------------------------------------------------
>
> Advanced options:
> -------------------------------------------------------------------------
> Advanced options:
> *Ubuntu (on /dev/nvme0n1p6)
>  Ubuntu. with Linux 5.15.0-126-generic (on /dev/nvme0n1p6)
>  Ubuntu. with Linux 5.15.0-126-generic (recovery mode) (on /dev/nvme0n1p6)
>  Ubuntu. with Linux 5.4.0-200-generic (on /dev/nvme0n1p6)
>  Ubuntu. with Linux 5.4.0-200-generic (recovery mode) (on /dev/nvme0n1p6)
>  Ubuntu. with Linux 5.4.0-89-generic (on /dev/nvme0n1p6)
>  Ubuntu. with Linux 5.4.0-89-generic (recovery mode) (on /dev/nvme0n1p6)
> -------------------------------------------------------------------------
>
> As you can see there is no mention at all of the new kernel 6.8.0-51 on the grub
> menu....
> And the Ubuntu version is wrong on the menu.
>
> What can I do in order to fix this issue?

Is OS Prober disabled?

# grep -IR PROBE /etc
/etc/grub.d/99-prober:GRUB_DISABLE_OS_PROBER=true
/etc/grub.d/30_os-prober:if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then
/etc/grub.d/30_os-prober:  grub_warn "$(gettext_printf "os-prober will not be ex
ecuted to detect other bootable partitions.\nSystems on them will not be added t
o the GRUB boot configuration.\nCheck GRUB_DISABLE_OS_PROBER documentation entry
.")"
...

I've also seen folks report that multiple Linux installations result
in incorrect grub menus because the wrong grub config file was read
(since there were multiple grub config files for grub to choose from).

Jeff




More information about the ubuntu-users mailing list