error: failed to register the EFI boot entry: Operation not permitted.

Bug #1935718 reported by Martin Herink
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

install on a drive with existing windows 10 installation.

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: ubiquity 21.10.3
ProcVersionSignature: Ubuntu 5.11.0-20.21+21.10.1-generic 5.11.21
Uname: Linux 5.11.0-20-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu67
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.463
CurrentDesktop: ubuntu:GNOME
Date: Fri Jul 9 20:09:14 2021
InstallCmdLine: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash ---
LiveMediaBuild: Ubuntu 21.10 "Impish Indri" - Alpha amd64 (20210709)
ProcEnviron:
 LANGUAGE=en_CA.UTF-8
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_CA.UTF-8
 LC_NUMERIC=C.UTF-8
RebootRequiredPkgs:
 linux-image-5.11.0-20-generic
 linux-base
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Martin Herink (lachrymoose) wrote :
summary: - grub installation failed on shared windows drive after installing 21.10
+ error: failed to register the EFI boot entry: Operation not permitted.
affects: ubiquity (Ubuntu) → grub (Ubuntu)
Revision history for this message
Steve Langasek (vorlon) wrote :

> Jul 9 22:54:51 ubuntu grub-installer: Installing for x86_64-efi platform.
> Jul 9 22:54:52 ubuntu grub-installer: grub-install: warning: Internal error.
> Jul 9 22:54:52 ubuntu grub-installer: grub-install: error: failed to register the EFI boot entry: Operation not permitted.

This shows that your system is running EFI, but that grub has been blocked from updating the firmware variables to register itself as a boot option.

Please check if there is a security setting in your firmware that blocks changing the boot order and disable it.

Without being able to update the boot order, Ubuntu is likely not going to be able to be booted on your dual-boot system. So it's not a bug that grub flags this problem before finishing the install, but a bug with your system that it doesn't support updating the boot order.

affects: grub (Ubuntu) → grub2 (Ubuntu)
Changed in grub2 (Ubuntu):
status: New → Incomplete
Revision history for this message
Martin Herink (lachrymoose) wrote (last edit ):

Interestingly Ubuntu boots just fine, grub installs just fine as well, but the error presents itself as fatal (even though it isn't) and leaves the installer icon on the desktop at first boot.

I will look at the bios settings but I have seen this same issue on a non EFI system (Dell Studio 1764).

This is an HP Probook 6550b (circa 2008) with a very early EFI implementation. I will look at the options and see if there's anything that allows it to update.

At minimum the error seems misleading(since grub does actually install and linux is bootable right out of the gate etc.)

Revision history for this message
Steve Langasek (vorlon) wrote :

It's good to know that Ubuntu boots ok after installation in spite of this error; however, in the general case there is no way for us to know that it will.

Can you attach the output of 'efibootmgr -v' from your installed and booted Ubuntu system? This may provide insight to how we can improve the handling of various corner cases.

Revision history for this message
Martin Herink (lachrymoose) wrote :

'EFI variables are not supported on this system.'

Revision history for this message
Steve Langasek (vorlon) wrote :

'EFI variables are not supported on this system.'

That's quite interesting, as it implies the installer was booted via UEFI, but that, once installed, the system is booting Ubuntu via BIOS fallback compatibility. That is definitely not a case we could detect from the installer whether you could successfully reboot into Ubuntu or not!

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for grub2 (Ubuntu) because there has been no activity for 60 days.]

Changed in grub2 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.