upgrading to 23.10 failed package grub-efi-amd64-signed 1.197+2.12~rc1-10ubuntu4 failed to install/upgrade: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2-signed (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
VM running under Proxmox
ProblemType: Package
DistroRelease: Ubuntu 23.10
Package: grub-efi-
ProcVersionSign
Uname: Linux 6.2.0-39-generic x86_64
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
CasperMD5CheckR
CloudArchitecture: x86_64
CloudID: none
CloudName: none
CloudPlatform: none
CloudSubPlatform: config
Date: Wed Feb 7 15:16:48 2024
DuplicateSignature:
package:
Setting up grub-efi-
Unknown device "/dev/disk/
dpkg: error processing package grub-efi-
installed grub-efi-
ErrorMessage: installed grub-efi-
InstallationDate: Installed on 2022-08-09 (547 days ago)
InstallationMedia: Ubuntu-Server 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220421)
Python3Details: /usr/bin/
PythonDetails: /usr/bin/
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageV
dpkg 1.22.0ubuntu1
apt 2.7.3
SourcePackage: grub2-signed
Title: package grub-efi-
UpgradeStatus: Upgraded to mantic on 2024-02-07 (0 days ago)
tags: | removed: need-duplicate-check |
I think the underlying problem is my system hardware changed (from physical to virtual). 23.04 is booting fine on the new virtual hardware but /dev/disk/by-id/ no longer exists. When I go to upgrade to 23.10 it reinstalls grub packages and dpkg picks up a config in /var/run/debconf that references the now-missing /dev/disk/by-id/.
If I'm right, a fix would be for the grub dpkg to more gracefully handle missing configuration directories. At least to print a more clear error, or even better to force a reconfigure to recover.
Lots of detail on the problem here: https:/ /nelsonslog. wordpress. com/2024/ 02/07/ubuntu- 23-10-upgraded- signed- grub-failed/