[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:26:18 UTC 2026


Did some more testing and found another thing...

On Noble, grub-common was installed in my freshly installed VM.  On Resolute, it was not.
u at u:~$ apt-cache policy grub-common
grub-common:
  Installed: (none)
  Candidate: 2.14-2ubuntu1
  Version table:
     2.14-2ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu resolute/main amd64 Packages

So I removed tboot, and installed grub-common:

u at u:~$ apt-cache policy grub-common
grub-common:
  Installed: 2.14-2ubuntu1
  Candidate: 2.14-2ubuntu1
  Version table:
 *** 2.14-2ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu resolute/main amd64 Packages
        100 /var/lib/dpkg/status
u at u:~$ grep version_find -r /usr/share/grub
u at u:~$ 

note that this grub does not contain version_find_latest

and so after reinstalling tboot, it is still broken in Resolute:
u at u:~$ sudo update-grub
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

-- 
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