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@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@u:~$ apt-cache policy grub-common
grub-common:
  Installed: 2.12-1ubuntu7.3
u@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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2141727

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

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to