Comment 3 for bug 1814187

Revision history for this message
Arnd Behring (arndbehring) wrote : Re: package grub-efi-amd64 2.02-2ubuntu8.10 failed to install/upgrade: installed grub-efi-amd64 package post-installation script subprocess returned error exit status 127

I've also encountered this problem while installing updates on Ubuntu 18.04.2.

Digging a bit into into the postinst script I've discovered that the failure for me came from the script /usr/share/grub/grub-check-signatures (from the grub-common package). There, mokutil is called which fails for me since the mokutil package isn't installed. I think this is a missing dependency of the grub-common package. After installing mokutil, the errors about dpkg --configure configure failing vanished and for me the packages grub-efi-amd64, grub-efi-amd64-signed and grub-efi packages were successfully configured.