package grub-pc 2.06-2ubuntu12 failed to install/upgrade: installed grub-pc package post-installation script subprocess returned error exit status 1

Bug #1990704 reported by Brian Murray
104
This bug affects 22 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This occurred during a new installation of Kinetic with a daily build from 20220920 when doing a ZFS install in qemu.

ProblemType: PackageDistroRelease: Ubuntu 22.10
Package: grub-pc 2.06-2ubuntu12
ProcVersionSignature: Ubuntu 5.19.0-15.15-generic 5.19.0
Uname: Linux 5.19.0-15-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.23.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Fri Sep 23 16:33:27 2022
ErrorMessage: installed grub-pc package post-installation script subprocess returned error exit status 1
ProcCmdLine: BOOT_IMAGE=/BOOT/ubuntu_qv5znx@/vmlinuz-5.19.0-15-generic root=ZFS=rpool/ROOT/ubuntu_qv5znx ro quiet splash vt.handoff=1
Python3Details: /usr/bin/python3.10, Python 3.10.7, python3-minimal, 3.10.6-1
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.9ubuntu1
 apt 2.5.2SourcePackage: grub2
Title: package grub-pc 2.06-2ubuntu12 failed to install/upgrade: installed grub-pc package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Brian Murray (brian-murray) wrote :
tags: added: cuqa-manual-testing
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
https://iso.qa.ubuntu.com/qatracker/reports/bugs/1990704

tags: added: iso-testing
Revision history for this message
Brian Murray (brian-murray) wrote :

This probably happened 'CasperMD5CheckResult: unknown' because /var/log/installer/ is empty.

description: updated
Revision history for this message
Benjamin Drung (bdrung) wrote :

DpkgTerminalLog.txt:

Setting up grub-pc (2.06-2ubuntu12) ...
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
find: ‘mount: (hint) your fstab has been modified, but systemd still uses\n the old version; use 'systemctl daemon-reload' to reload.\n/tmp/zfsmnt.BfV5Td/boot’: No such file or directory
umount: /tmp/zfsmnt.BfV5Td: target is busy.
rmdir: failed to remove '/tmp/zfsmnt.BfV5Td': Device or resource busy
dpkg: error processing package grub-pc (--configure):
 installed grub-pc package post-installation script subprocess returned error exit status 1

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

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

Changed in grub2 (Ubuntu):
status: New → Confirmed
tags: removed: need-duplicate-check
Revision history for this message
Knickers Brown (metta-crawler) wrote :

$ sudo grub-mkconfig | tail
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
/etc/grub.d/10_linux_zfs: 425: version_find_latest: not found
umount: /tmp/zfsmnt.YABeWP: target is busy.
rmdir: failed to remove '/tmp/zfsmnt.YABeWP': Device or resource busy

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_linux_zfs ###

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Mantic Minotaur (development branch)
Release: 23.10
Codename: mantic

$ dpkg -l | grep -Ev '^ii|^rc|^ic'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=============================================-=======================================-============-================================================================================
iU grub-efi-amd64-signed 1.194+2.12~rc1-4ubuntu1 amd64 GRand Unified Bootloader, version 2 (EFI-AMD64 version, signed)
iF grub-pc 2.12~rc1-4ubuntu1 amd64 GRand Unified Bootloader, version 2 (PC/BIOS version)
iF linux-image-6.3.0-7-generic 6.3.0-7.7+1 amd64 Signed kernel image generic

Revision history for this message
Knickers Brown (metta-crawler) wrote :

Oops, forgot to merge stdout and stderr with |&

$ sudo grub-mkconfig |& tail
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_linux_zfs ###
/etc/grub.d/10_linux_zfs: 425: version_find_latest: not found
umount: /tmp/zfsmnt.XMN7oz: target is busy.
rmdir: failed to remove '/tmp/zfsmnt.XMN7oz': Device or resource busy

Revision history for this message
Knickers Brown (metta-crawler) wrote :

#2031042

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.