grub-install: error: failed to register the EFI boot entry: Input/output error.

Bug #1991404 reported by William Wilson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Expired
High
Unassigned

Bug Description

When running the installer, grub fails to install to /dev/sda with the following error: "grub-install: error: failed to register the EFI boot entry: Input/output error."

I have confirmed /dev/sda is the correct target device. A 22.04.1 installation on the same hardware works fine. The same crash occurs regardless of secure boot being enabled/disabled.

ProblemType: Bug
DistroRelease: Ubuntu 22.10
Package: ubiquity 22.10.6
ProcVersionSignature: Ubuntu 5.19.0-15.15-generic 5.19.0
Uname: Linux 5.19.0-15-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.23.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.475
CurrentDesktop: ubuntu:GNOME
Date: Fri Sep 30 10:11:59 2022
InstallCmdLine: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash ---
LiveMediaBuild: Ubuntu 22.10 "Kinetic Kudu" - Beta amd64 (20220927.1)
ProcEnviron:
 LANGUAGE=en_US.UTF-8
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 LC_NUMERIC=C.UTF-8
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: grub-installer
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
William Wilson (jawn-smith) wrote :
description: updated
description: updated
Changed in grub-installer (Ubuntu):
importance: Undecided → High
description: updated
affects: grub-installer (Ubuntu) → ubiquity (Ubuntu)
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
https://iso.qa.ubuntu.com/qatracker/reports/bugs/1991404

tags: added: iso-testing
Revision history for this message
Brian Murray (brian-murray) wrote :

I think this is the important part in the log file and I think it is something with your EFI firmware or some words like that.

Sep 30 15:11:05 ubuntu grub-installer: grub-install: warning:
Sep 30 15:11:05 ubuntu grub-installer:
Sep 30 15:11:05 ubuntu grub-installer: Cannot set EFI variable Boot0000
Sep 30 15:11:05 ubuntu grub-installer: .
Sep 30 15:11:06 ubuntu grub-installer: grub-install: warning:
Sep 30 15:11:06 ubuntu grub-installer:
Sep 30 15:11:06 ubuntu grub-installer: efivarfs_set_variable: writing to fd 7 failed: Input/output error.
Sep 30 15:11:06 ubuntu grub-installer: grub-install: warning: _efi_set_variable_mode: ops->set_variable() failed: Input/output error.
Sep 30 15:11:06 ubuntu grub-installer: grub-install: error: failed to register the EFI boot entry: Input/output error.
Sep 30 15:11:06 ubuntu grub-installer: error: Running 'grub-install --force --target x86_64-efi "/dev/sda"' failed.

The python traceback isn't really useful here.

Steve Langasek (vorlon)
affects: ubiquity (Ubuntu) → grub2 (Ubuntu)
summary: - Error installing grub to /dev/sda
+ grub-install: error: failed to register the EFI boot entry: Input/output
+ error.
Steve Langasek (vorlon)
tags: added: foundations-triage-discuss
tags: added: foundations-todo
removed: foundations-triage-discuss
Benjamin Drung (bdrung)
tags: added: regression-release
Revision history for this message
Julian Andres Klode (juliank) wrote :

William,

can you compare the output of debconf-get-selections | grep grub on both systems? Are both still installed and functional?

Thanks!

Changed in grub2 (Ubuntu):
status: New → Incomplete
tags: removed: foundations-todo
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.