It looks like there is an extra ';;' in the script, the following patch
fixes it.

--- /tmp/grub-efi-amd64-signed.postinst 2020-04-09 16:50:58.585757438 -0700
+++ /var/lib/dpkg/info/grub-efi-amd64-signed.postinst   2020-04-09 
16:51:12.029644653 -0700
@@ -16,7 +16,7 @@
 
 case $1 in
     configure)
-       target=x86_64-efi
+       target=x86_64-efi ;;
        # Check /boot/grub to see if we previously installed to an ESP. We don't
        # want to trigger the install code just by installing the package,
        # normally the installer installs grub itself first.

I do get a warning that "The GRUB boot loader was previously installed
to a disk that is no longer present, or whose unique identifier has
changed for some reason." I haven't changed the disks on my system or
done anything else that should trigger this.

** Also affects: grub (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: grub (Ubuntu)
       Status: New => Confirmed

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

Title:
  dpkg fails to install grub-efi-amd64 signed and shim-signed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1871963/+subscriptions

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

Reply via email to