[Bug 2052743] Re: Missing depends on python3-apt in grub-common

Julian Andres Klode 2052743 at bugs.launchpad.net
Fri Feb 9 09:17:12 UTC 2024


*** This bug is a duplicate of bug 2048953 ***
    https://bugs.launchpad.net/bugs/2048953

** This bug has been marked a duplicate of bug 2048953
   grub fails to add boot entries if python3-apt is missing

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

Title:
  Missing depends on python3-apt in grub-common

Status in cloud-images:
  New
Status in grub2 package in Ubuntu:
  Confirmed

Bug description:
  /usr/lib/grub/grub-sort-version fails to run on buildd due to a
  missing dependency on python3-apt (providing the apt_pkg python
  module). This shows in buildd images and other systems which might not
  have python3-apt.

  This doesn't make update-grub fail, but has the nasty side-effect of
  failing to generate kernel/initrd menu entries.

  
  Reproducing (in a fresh minimal VM):

  # apt-get remove python3-apt  # unless you happen to have an image which already hasn't it.
  # update-grub
  root at tstn:~# update-grub
  Sourcing file `/etc/default/grub'
  Sourcing file `/etc/default/grub.d/50-cloudimg-settings.cfg'
  Generating grub configuration file ...
  Traceback (most recent call last):
    File "/usr/lib/grub/grub-sort-version", line 4, in <module>
      import apt_pkg
  ModuleNotFoundError: No module named 'apt_pkg'
  Warning: 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 vmlinuz /boot/grub/grub.cfg
  EOF

  Expected:

  # update-grub
  # grep /boot/grub/grub.cfg
   linux   /vmlinuz-6.6.0-14-generic root=UUID=09855eaa-8c6....

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-images/+bug/2052743/+subscriptions




More information about the foundations-bugs mailing list