package shim-signed 1.47+15.4-0ubuntu2 failed to install/upgrade: installed shim-signed package post-installation script subprocess returned error exit status 1 (Input/output error)

Bug #1928352 reported by Jurgen Schellaert
434
This bug affects 112 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned
shim-signed (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The installer crashed at the very end with a warning that my computer might fail to boot.

It booted alright but after logging in I get a pop-up to signal that shim-signed has failed to install.

Something to do with my system (EFI) running in insecure mode?

ProblemType: Package
DistroRelease: Ubuntu 21.04
Package: shim-signed 1.47+15.4-0ubuntu2
ProcVersionSignature: Ubuntu 5.11.0-17.18-generic 5.11.12
Uname: Linux 5.11.0-17-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
.proc.sys.kernel.moksbstate_disabled: Error: [Errno 2] No such file or directory: '/proc/sys/kernel/moksbstate_disabled'
ApportVersion: 2.20.11-0ubuntu65
Architecture: amd64
BootEFIContents:
 BOOTX64.CSV
 grub.cfg
 grubx64.efi
 mmx64.efi
 shimx64.efi
CasperMD5CheckResult: pass
Date: Thu May 13 16:54:46 2021
EFITables:
 mei 13 17:05:50 Selena kernel: efi: EFI v2.10 by American Megatrends
 mei 13 17:05:50 Selena kernel: efi: ACPI=0xba80b000 ACPI 2.0=0xba80b000 SMBIOS=0xf04c0 MOKvar=0xae8a2000
 mei 13 17:05:50 Selena kernel: secureboot: Secure boot disabled
 mei 13 17:05:50 Selena kernel: secureboot: Secure boot disabled
ErrorMessage: installed shim-signed package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2021-05-13 (0 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
Python3Details: /usr/bin/python3.9, Python 3.9.4, python3-minimal, 3.9.4-1
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.20.9ubuntu1
 apt 2.2.3
SecureBoot: 6 0 0 0 0
SourcePackage: shim-signed
Title: package shim-signed 1.47+15.4-0ubuntu2 failed to install/upgrade: installed shim-signed package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jurgen Schellaert (jurgen-schellaert-j) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in shim-signed (Ubuntu):
status: New → Confirmed
Revision history for this message
Steve Langasek (vorlon) wrote :

The log shows:

Installing for x86_64-efi platform.
grub-install: warning: Cannot read EFI Boot* variables.
grub-install: warning: read_file: could not read from file: Input/output error.
grub-install: warning: vars_get_variable: read_file(/sys/firmware/efi/vars/Boot0001-8be4df61-93ca-11d2-aa0d-00e098032b8c/raw_var) failed: Input/output error.
grub-install: warning: efi_get_variable: ops->get_variable failed: Input/output error.
grub-install: error: failed to register the EFI boot entry: Input/output error.

This is not about running in insecure mode, it's about the fact that you are on an EFI system but the /sys/firmware/efi mount point that the kernel uses to expose EFI nvram variables to the system is unusable.

We have had a number of reports of such problems but have yet to isolate a cause.

Opening a bug task on the kernel, since this may be a kernel filesystem bug.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Colin Ian King (colin-king) wrote :

EIO on get_variable() is a EFI_DEVICE_ERROR on the EFI call. EFI_DEVICE_ERROR according to the UEFI EDK2 sources is "The variable could not be retrieved due to a hardware error."

Steve Langasek (vorlon)
summary: package shim-signed 1.47+15.4-0ubuntu2 failed to install/upgrade:
installed shim-signed package post-installation script subprocess
- returned error exit status 1
+ returned error exit status 1 (Input/Output error)
summary: package shim-signed 1.47+15.4-0ubuntu2 failed to install/upgrade:
installed shim-signed package post-installation script subprocess
- returned error exit status 1 (Input/Output error)
+ returned error exit status 1 (Input/output error)
To post a comment you must log in.