It is possible that there are different problems but in my case the
problem is that efibootmgr cannot delete EFI variable:

root@bor-Latitude-E5450:~# LC_ALL=C grub-install 
Installing for x86_64-efi platform.
Could not delete variable: Invalid argument
grub-install: error: efibootmgr failed to register the boot entry: Block device 
required.

or more verbosely

grub-install: info: Registering with EFI: distributor = `ubuntu', path = 
`\EFI\ubuntu\shimx64.efi', ESP at hostdisk//dev/sda,gpt1.
grub-install: info: executing efibootmgr --version </dev/null >/dev/null.
grub-install: info: executing modprobe -q efivars.
grub-install: info: executing efibootmgr -b 0000 -B.
Could not delete variable: Invalid argument
grub-install: error: efibootmgr failed to register the boot entry: Block device 
required.

It is neither grub nor efibootmgr issue, I cannot remove variable even
manually:

root@bor-Latitude-E5450:/sys/firmware/efi/efivars# LC_ALL=C rm 
Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c 
rm: cannot remove 'Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c': Invalid 
argument

and stracing it

unlinkat(AT_FDCWD, "Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c", 0) =
-1 EINVAL (Invalid argument)

As I do not believe all systems got firmware problem at once, it is more
likely kernel issue. There is nothing in dmesg.

I do not see how it can be fixed by removing anything in ESP.

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

Title:
  package grub-efi-amd64-signed 1.93+2.02-2ubuntu8 failed to
  install/upgrade: installed grub-efi-amd64-signed package post-
  installation script subprocess returned error exit status 1

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

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

Reply via email to