Public bug reported:

My system reboots, but this upgrade won't finish. I am running Oracular.
I have made no changes to grub on this machine. However, I migrated this
install from one PC to another with different hardware.

ckerr@kiki:~$ sudo apt upgrade 
The following packages were automatically installed and are no longer required:
  libamd-comgr2  libhsa-runtime64-1  libhsakmt1
Use 'sudo apt autoremove' to remove them.

Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
  1 not fully installed or removed.
  Space needed: 0 B / 277 GB available

Continue? [Y/n] 
Setting up grub-efi-amd64-signed (1.209.4+2.12-5ubuntu5.3) ...
mount: /var/lib/grub/esp: special device 
/dev/disk/by-id/nvme-eui.001b448b496e7314-part1 does not exist.
       dmesg(1) may have more information after failed mount system call.
dpkg: error processing package grub-efi-amd64-signed (--configure):
 installed grub-efi-amd64-signed package post-installation script subprocess 
returned error exit status 32
Errors were encountered while processing:
 grub-efi-amd64-signed
Error: Sub-process /usr/bin/dpkg returned an error code (1)
ckerr@kiki:~$ sudo dmesg
[…]
[  870.319799] /dev/disk/by-id/nvme-eui.001b448b496e7314-part1: Can't lookup 
blockdev

Its quite right, there is no such disk. This is baked into a debconf.
Its just that the drive its looking for isn't there any more. This
shouldn't break so opaquely, disks change.

My fix was `echo "grub-efi-amd64 grub-efi/install_devices multiselect
/dev/nvme1n1p1" | debconf-set-selections` but it should honestly do
something smarter

** Affects: grub2-signed (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2115479

Title:
  post install script error

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to