Comment 13 for bug 1871963

Revision history for this message
Philipp Classen (philipp-classen) wrote :

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