[Bug 1826050] Re: package grub-efi-amd64-signed 1.115+2.02+dfsg1-12ubuntu2 failed to install/upgrade: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1

hexa 1826050 at bugs.launchpad.net
Thu Dec 5 18:56:24 UTC 2019


I have a similar problem on 19.04

➜  ~ sudo apt-get install -f        
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  boot-sav boot-sav-extra glade2script
Use 'sudo apt autoremove' to remove them.
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.
Setting up grub-efi-amd64-signed (1.115.1+2.02+dfsg1-12ubuntu2.1) ...
Installing for x86_64-efi platform.
Could not prepare Boot variable: No such file or directory
grub-install: error: efibootmgr failed to register the boot entry: Input/output error.
dpkg: error processing package grub-efi-amd64-signed (--configure):
 installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent processing triggers for shim-signed:
 shim-signed depends on grub-efi-amd64-signed | grub-efi-arm64-signed; however:
  Package grub-efi-amd64-signed is not configured yet.
  Package grub-efi-arm64-signed is not installed.

dpkg: error processing package shim-signed (--configure):
 dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
 grub-efi-amd64-signed


udo efibootmgr -v -v -v -c -d /dev/nvme1n1 -p 1 -w -L ubuntu -l \EFI\ubuntu\shimx64.eadffi 
Could not prepare Boot variable: No such file or directory
error trace:
 linux.c:406 device_get(): readlink of /sys/block/nvme1n1/device/driver failed: No such file or directory
 util.h:325 get_file(): could not open file "/sys/devices/pci0000:80/firmware_node/path" for reading: No such file or directory
 util.h:325 get_file(): could not open file "/sys/devices/pci0000:80/firmware_node/hid" for reading: No such file or directory
 linux-acpi.c:63 parse_acpi_hid_uid(): could not read devices/pci0000:80/firmware_node/hid: No such file or directory
 linux.c:462 device_get(): parsing pci_root failed: No such file or directory
 creator.c:194 efi_va_generate_file_device_path_from_esp(): could not get ESP disk info: No such file or directory
 creator.c:349 efi_generate_file_device_path_from_esp(): could not generate File DP from ESP: No such file or directory
 efibootmgr.c:287 make_var(): make_linux_load_option() failed: No such file or directory
 efibootmgr.c:336 make_var(): Could not set variable: No such file or directory

The weird thing is that I have no firmware_node directory at all:

➜  ~ ls -l /sys/devices/pci0000:80/
total 0
drwxr-xr-x 6 root root    0 Dec  5 13:43 0000:80:00.0
drwxr-xr-x 7 root root    0 Dec  5 13:43 0000:80:01.0
drwxr-xr-x 7 root root    0 Dec  5 13:43 0000:80:01.1
drwxr-xr-x 8 root root    0 Dec  5 13:43 0000:80:02.0
drwxr-xr-x 6 root root    0 Dec  5 13:43 0000:80:02.2
drwxr-xr-x 6 root root    0 Dec  5 13:43 0000:80:03.0
drwxr-xr-x 3 root root    0 Dec  5 13:43 0000:80:04.0
drwxr-xr-x 3 root root    0 Dec  5 13:43 0000:80:04.1
drwxr-xr-x 3 root root    0 Dec  5 13:43 0000:80:04.2
drwxr-xr-x 3 root root    0 Dec  5 13:43 0000:80:04.3
drwxr-xr-x 3 root root    0 Dec  5 13:43 0000:80:04.4
drwxr-xr-x 3 root root    0 Dec  5 13:43 0000:80:04.5
drwxr-xr-x 3 root root    0 Dec  5 13:43 0000:80:04.6
drwxr-xr-x 3 root root    0 Dec  5 13:43 0000:80:04.7
drwxr-xr-x 3 root root    0 Dec  5 13:43 0000:80:05.0
drwxr-xr-x 3 root root    0 Dec  5 13:43 0000:80:05.2
drwxr-xr-x 3 root root    0 Dec  5 13:43 0000:80:05.4
drwxr-xr-x 3 root root    0 Dec  5 13:43 pci_bus
drwxr-xr-x 2 root root    0 Dec  5 13:47 power
-rw-r--r-- 1 root root 4096 Dec  5 13:43 uevent

This is on a SuperMicro X9DRi-LN4F+ board.

Thankfully rebooting still works because of the fallback EFI!

After the a reboot I have:

sudo efibootmgr -v
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0000,0004,0005,0008
Boot0000* ubuntu	HD(1,GPT,ec6bfb51-9755-4b96-853f-3c11ecd3b8c2,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot0004* UEFI OS	HD(1,GPT,ec6bfb51-9755-4b96-853f-3c11ecd3b8c2,0x800,0x100000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0005* UEFI: Built-in EFI Shell 	VenMedia(5023b95c-db26-429b-a648-bd47664c8012)..BO
Boot0008* ubuntu	HD(1,GPT,ec6bfb51-9755-4b96-853f-3c11ecd3b8c2,0x800,0x100000)/File(\EFI\UBUNTU\GRUBX64.EFI)..BO

But after apt-get install -f the entires are wiped:

sudo efibootmgr -v     
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0004,0005
Boot0004* UEFI OS	HD(1,GPT,ec6bfb51-9755-4b96-853f-3c11ecd3b8c2,0x800,0x100000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0005* UEFI: Built-in EFI Shell 	VenMedia(5023b95c-db26-429b-a648-bd47664c8012)..BO

-- 
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/1826050

Title:
  package grub-efi-amd64-signed 1.115+2.02+dfsg1-12ubuntu2 failed to
  install/upgrade: installed grub-efi-amd64-signed package post-
  installation script subprocess returned error exit status 1

Status in grub2-signed package in Ubuntu:
  Confirmed

Bug description:
  i dont know anythings about this bug!

  ProblemType: Package
  DistroRelease: Ubuntu 19.04
  Package: grub-efi-amd64-signed 1.115+2.02+dfsg1-12ubuntu2
  ProcVersionSignature: Ubuntu 5.0.0-13.14-generic 5.0.6
  Uname: Linux 5.0.0-13-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia wl
  ApportVersion: 2.20.10-0ubuntu27
  Architecture: amd64
  Date: Tue Apr 23 23:29:42 2019
  ErrorMessage: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
  InstallationDate: Installed on 2019-03-26 (28 days ago)
  InstallationMedia: Ubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210)
  Python3Details: /usr/bin/python3.7, Python 3.7.3, python3-minimal, 3.7.3-1
  PythonDetails: /usr/bin/python2.7, Python 2.7.16, python-minimal, 2.7.16-1
  RelatedPackageVersions:
   dpkg 1.19.6ubuntu1
   apt  1.8.0
  SourcePackage: grub2-signed
  Title: package grub-efi-amd64-signed 1.115+2.02+dfsg1-12ubuntu2 failed to install/upgrade: installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 1
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1826050/+subscriptions



More information about the foundations-bugs mailing list