[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 st

2019-12-05 Thread hexa
In my case it turned out this was because I had acpi=off in
/etc/default/grub

firmware_node comes from acpi...

Now fixed for me..

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to 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

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[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 st

2019-12-05 Thread hexa
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/pci:80/firmware_node/path" for reading: No such file or 
directory
 util.h:325 get_file(): could not open file 
"/sys/devices/pci:80/firmware_node/hid" for reading: No such file or 
directory
 linux-acpi.c:63 parse_acpi_hid_uid(): could not read 
devices/pci: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/pci:80/
total 0
drwxr-xr-x 6 root root0 Dec  5 13:43 :80:00.0
drwxr-xr-x 7 root root0 Dec  5 13:43 :80:01.0
drwxr-xr-x 7 root root0 Dec  5 13:43 :80:01.1
drwxr-xr-x 8 root root0 Dec  5 13:43 :80:02.0
drwxr-xr-x 6 root root0 Dec  5 13:43 :80:02.2
drwxr-xr-x 6 root root0 Dec  5 13:43 :80:03.0
drwxr-xr-x 3 root root0 Dec  5 13:43 :80:04.0
drwxr-xr-x 3 root root0 Dec  5 13:43 :80:04.1
drwxr-xr-x 3 root root0 Dec  5 13:43 :80:04.2
drwxr-xr-x 3 root root0 Dec  5 13:43 :80:04.3
drwxr-xr-x 3 root root0 Dec  5 13:43 :80:04.4
drwxr-xr-x 3 root root0 Dec  5 13:43 :80:04.5
drwxr-xr-x 3 root root0 Dec  5 13:43 :80:04.6
drwxr-xr-x 3 root root0 Dec  5 13:43 :80:04.7
drwxr-xr-x 3 root root0 Dec  5 13:43 :80:05.0
drwxr-xr-x 3 root root0 Dec  5 13:43 :80:05.2
drwxr-xr-x 3 root root0 Dec  5 13:43 :80:05.4
drwxr-xr-x 3 root root0 Dec  5 13:43 pci_bus
drwxr-xr-x 2 root root0 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: ,0004,0005,0008
Boot* ubuntu
HD(1,GPT,ec6bfb51-9755-4b96-853f-3c11ecd3b8c2,0x800,0x10)/File(\EFI\ubuntu\shimx64.efi)
Boot0004* UEFI OS   
HD(1,GPT,ec6bfb51-9755-4b96-853f-3c11ecd3b8c2,0x800,0x10)/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,0x10)/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,0x10)/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
Bugs, which is subscribed to 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 

[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 st

2019-07-24 Thread Eldon Rosenberg
Hey all,

Trying to be a helpful chap, I looked into a verbosity level 2 (-v2)
output of efibootmgr, which is what's executed by the post-installation
script of the grub-efi-amd64-signed package:

$ sudo efibootmgr -v2 -c -d /dev/sdb -p 2 -w -L ubuntu -l 
\EFI\ubuntu\shimx64.efi
Could not prepare Boot variable: Invalid argument
error trace:
 util.h:325 get_file(): could not open file 
"/sys/devices/pci:00/firmware_node/uid" for reading: No such file or 
directory
 util.h:325 get_file(): could not open file 
"/sys/devices/pci:00/firmware_node/uid" for reading: No such file or 
directory
 util.h:325 get_file(): could not open file 
"/sys/devices/pci:00/firmware_node/uid" for reading: No such file or 
directory
 efivarfs.c:435 efivarfs_set_variable(): writing to fd 3 failed: Invalid 
argument
 lib.c:76 _efi_set_variable_mode(): ops->set_variable() failed: Invalid argument
 efibootmgr.c:323 make_var(): efi_set_variable failed: Invalid argument
 efibootmgr.c:333 make_var(): Could not set variable Boot0005: Invalid argument


...and I submit that this is likely caused by the bug in the efivar package 
documented as recently fixed at https://github.com/rhboot/efivar/issues/120, as 
it talks about the fact that the uid node doesn't exist, only hid and cid (in 
my case, Ubuntu 19.04 on a HP Probook 6550b with kernel 5.0.0-21-generic, it's 
hid only).  I have libefivar1 version 37-2 installed.

** Bug watch added: github.com/rhboot/efivar/issues #120
   https://github.com/rhboot/efivar/issues/120

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to 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

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[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 st

2019-05-26 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: grub2-signed (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to 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

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs