Just had the same issue as Deepak. Same error after upgrading from 18.04
to 20.04, but I checked and apparently also had the fix of the semicolon
in /var/lib/dpkg/info/grub-efi-amd64-signed.postinst. So, there might be
another issue that is causing the same problem.

Running it with "set -x", I could see that the "/usr/lib/grub-multi-
install --target=$target" call was failing (with target=x86_64-efi). Why
it failed, I could not find out.

I was able to fix the installation problem by running the commands from
https://stackoverflow.com/a/53284186/783510:

# sudo apt-get purge grub\*
# sudo apt-get install grub-efi
# sudo apt-get autoremove
# sudo update-grub

After that, the apt-get errors were gone, and the installation could be
completed.

(Another issue, which I will mention as there is a tiny chance that it
is related, although I doubt it: After rebooting, I was not able to boot
(not even reaching the question for the passphrase). To solve it, I had
to disable Secure Boot, then I reached the state where I could enter my
passphrase to unlock the encrypted partition.)

My notebook: Lenovo ThinkPad X1 Carbon 4th

-- 
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to