[Bug 2141727] Re: [Ubuntu 26.04] grub-mkconfig fails version_find_latest command not found

Jeff Lane  2141727 at bugs.launchpad.net
Tue Feb 24 14:23:40 UTC 2026


I was able to recreate this using the above steps on a resolute VM.

Looking at the linked bug, this is possibly a regression of some sort
introduced by Grub?  See comment #3 int he older 24.04 bug:

https://bugs.launchpad.net/ubuntu/+source/tboot/+bug/2051347/comments/3

```
u at u:~$ sudo update-grub
[sudo: authenticate] Password: 
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/kdump-tools.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.19.0-6-generic
Found initrd image: /boot/initrd.img-6.19.0-6-generic
/etc/grub.d/20_linux_tboot: 1: version_find_latest: not found
```


I next stood up a 24.04 VM and folowed the steps above and confirm it is still fixed in 24.04 and you do not get the "version_find_latest: not found" error.
24.04:
u at u:~$ apt-cache policy grub-common
grub-common:
  Installed: 2.12-1ubuntu7.3
u at u:~$ grep version_find -r /usr/share/grub
/usr/share/grub/grub-mkconfig_lib:version_find_latest ()
/usr/share/grub/grub-mkconfig_lib:  grub_warn "version_find_latest() is deprecated. Use version_sort() instead."
/usr/share/grub/grub-mkconfig_lib:  version_find_latest_a=""
/usr/share/grub/grub-mkconfig_lib:    if version_test_gt "$i" "$version_find_latest_a" ; then
/usr/share/grub/grub-mkconfig_lib:      version_find_latest_a="$i"
/usr/share/grub/grub-mkconfig_lib:  echo "$version_find_latest_a"

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/2141727

Title:
  [Ubuntu 26.04] grub-mkconfig fails version_find_latest command not
  found

Status in grub2 package in Ubuntu:
  Invalid
Status in tboot package in Ubuntu:
  Invalid

Bug description:
  1. Fresh install Ubuntu server 26.04 with the daily build 20260202
  2. Install tboot package:
  # apt update; apt install -y tboot
  3. It will fail with output "version_find_latest command not found" when use command grub-mkconfig or update-grub to generate grub configuration file

  4. The root cause is that following file will use the command ""version_find_latest command"
  /etc/grub.d/20_linux_tboot:
    current_tboot=`version_find_latest $tboot_list`
    linux=`version_find_latest $list`

  /etc/grub.d/20_linux_xen_tboot:
    current_xen=`version_find_latest $xen_list`
    current_tboot=`version_find_latest $tlist`
    linux=`version_find_latest $list`

  Below is a same issue in Ubuntu 24.04, but does not fix the configuration file resided in tboot package, please fix it, thanks. 
  https://bugs.launchpad.net/ubuntu/+source/tboot/+bug/2051347

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2141727/+subscriptions




More information about the foundations-bugs mailing list