grub-install: error: failed to register the EFI boot entry: Operation not permitted.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi,
Seeing a bunch of these across various units, all of which were recently provisioned in Azure:
| ubuntu@machine-1:~$ sudo apt-get dist-upgrade
| Reading package lists... Done
| Building dependency tree
| Reading state information... Done
| Calculating upgrade... Done
| 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
| 1 not fully installed or removed.
| After this operation, 0 B of additional disk space will be used.
| Do you want to continue? [Y/n] y
| Setting up grub-efi-
| Installing grub to /boot/efi.
| Installing for x86_64-efi platform.
| grub-install: warning: Internal error.
| grub-install: error: failed to register the EFI boot entry: Operation not permitted.
It keeps trying to install on either /dev/sda15 or /dev/sdb15 (some units have attached volumes).
| ubuntu@machine-1:~$ sudo parted -l
| Model: Msft Virtual Disk (scsi)
| Disk /dev/sda: 34.4GB
| Sector size (logical/physical): 512B/512B
| Partition Table: gpt
| Disk Flags:
|
| Number Start End Size File system Name Flags
| 14 1049kB 5243kB 4194kB bios_grub
| 15 5243kB 116MB 111MB fat32 boot, esp
| 1 116MB 34.4GB 34.2GB ext4
Focal.
| Start-Date: 2020-10-26 16:02:51
| Upgrade: perl-base:amd64 (5.30.0-9build1, 5.30.0-9ubuntu0.2), bind9-dnsutils:
| Error: Sub-process /usr/bin/dpkg returned an error code (1)
| End-Date: 2020-10-26 16:03:54
With apt term.log - https:/
Other user reports - https:/ /github. com/actions/ virtual- environments/ issues/ 1605