[Bug 1872212] Re: grub-install: Operation not permitted
Dariusz Kolasinski
1872212 at bugs.launchpad.net
Tue Nov 24 09:23:33 UTC 2020
Same result here, hypervisor: Hyper-V.
Partition table: GPT
Here is command dpkg uses to upgrade grub:
root at host ~ # grub-install --efi-directory=/boot/efi --target=x86_64-efi /dev/sda
Installing for x86_64-efi platform.
grub-install: warning: Internal error.
grub-install: error: failed to register the EFI boot entry: Operation not permitted.
Here is the same command with: --no-nvram
root at host ~ # grub-install --efi-directory=/boot/efi --target=x86_64-efi --no-nvram /dev/sda
Installing for x86_64-efi platform.
Installation finished. No error reported.
It looks like it is related to Hyper-V.
I`ve tried to use dpkg-reconfigure grub-efi-amd64 to set update_nvram
false, but dpkg is still not using the --no-nvram flag:
root at host /var/lib/dpkg # debconf-show grub-efi-amd64 | fgrep nvram
* grub2/update_nvram: false
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2-signed in Ubuntu.
https://bugs.launchpad.net/bugs/1872212
Title:
grub-install: Operation not permitted
Status in grub2-signed package in Ubuntu:
Confirmed
Bug description:
I'm using Ubuntu 20.04 beta, upgraded from 19.10.
When doing the last upgrade I got an error message from grub.
When I run ›dpkg-reconfigure shim-signed‹ I get this error:
Installing for x86_64-efi platform.
grub-install: warning: Internal error.
grub-install: error: failed to register the EFI boot entry: Operation not permitted.
Since then I didn't reboot, for I'm afraid it won't work.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1872212/+subscriptions
More information about the foundations-bugs
mailing list