Missing depends on python3-apt in grub-common

Bug #2052743 reported by Simon Poirier
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cloud-images
New
Undecided
Unassigned
grub2 (Ubuntu)
Confirmed
Undecided
Unassigned

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

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub (Ubuntu):
status: New → Confirmed
Simon Poirier (simpoir)
no longer affects: grub (Ubuntu)
Changed in grub2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Philip Roche (philroche) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.