[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#990094: upgrade failed: efivarfs_get_variable: No such file



Package: shim-helpers-amd64-signed
Version: 1+15.4+5~deb10u1

I tried upgrading to the latest Debian stable release (10.10) on a 3yr
old desktop and received an installation error. The system failed to
upgrade shim-helpers-amd64-signed and shim-signed:amd64. The
reproducible command and response are below:

---------
$ ~: sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.19.0-14-amd64 linux-headers-4.19.0-14-common
  linux-image-4.19.0-14-amd64
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up shim-helpers-amd64-signed (1+15.4+5~deb10u1) ...
Installing for x86_64-efi platform.
grub-install: warning: efivarfs_get_variable:
open(/sys/firmware/efi/efivars/blk0-47c7b225-c42a-11d2-8e57-00a0c969723b):
No such file or directory.
grub-install: warning: efi_get_variable: ops->get_variable failed: No
such file or directory.
grub-install: warning: device_get: could not access
/sys/block/sda/device/device: No such file or directory.
grub-install: warning: get_file: could not open file
"/sys/devices/pci0000:00/firmware_node/path" for reading: No such file
or directory.
grub-install: warning: get_file: could not open file
"/sys/devices/pci0000:00/firmware_node/hid" for reading: No such file
or directory.
grub-install: warning: parse_acpi_hid_uid: could not read
devices/pci0000:00/firmware_node/hid: No such file or directory.
grub-install: warning: device_get: parsing pci_root failed: No such
file or directory.
grub-install: warning: efi_va_generate_file_device_path_from_esp:
could not get ESP disk info: No such file or directory.
grub-install: warning: efi_generate_file_device_path_from_esp: could
not generate File DP from ESP: No such file or directory.
grub-install: error: failed to register the EFI boot entry: No such
file or directory.
dpkg: error processing package shim-helpers-amd64-signed (--configure):
 installed shim-helpers-amd64-signed package post-installation script
subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of shim-signed:amd64:
 shim-signed:amd64 depends on shim-helpers-amd64-signed (>=
1+15.4+2~deb10u1); however:
  Package shim-helpers-amd64-signed is not configured yet.

dpkg: error processing package shim-signed:amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 shim-helpers-amd64-signed
 shim-signed:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
--------

The directory requested in the first warning message
(/sys/firmware/efi/efivars/) exists and contains about 60 files.
However I see no file resembling anything the upgrade is looking for.
I am using EFI

$ ~: sudo dmesg | grep "EFI v"
[    0.000000] efi: EFI v2.40 by American Megatrends


------

In case it is of help:

$ ~: efibootmgr -v
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0003,0002,0001
Boot0000* debian	HD(1,GPT,c4162bc4-5eaf-4fec-afe3-d72750348806,0x800,0x100000)/File(\EFI\DEBIAN\SHIMX64.EFI)
Boot0001* CD/DVD
Drive	BBS(CDROM,,0x0)..GO..NO........o.M.A.T.S.H.I.T.A.D.V.D.R.W.
.U.J.8.A.7.A.F....................A...........................>..Gd-.;.A..MQ..L.
. . . . . . . .R.W.6.6. . .2.0.7.4.5.7........BO
Boot0002* Hard Drive	BBS(HD,,0x0)..GO..NO........o.S.a.m.s.u.n.g.
.S.S.D. .8.5.0. .P.R.O.
.1.T.B....................A...........................>..Gd-.;.A..MQ..L.3.S.2.D.X.N.J.0.0.4.5.0.4.5.
.T. . . . ........BO..NO........o.W.D.C.
.W.D.6.0.0.2.F.R.Y.Z.-.0.1.W.D.5.B.0....................A...........................>..Gd-.;.A..MQ..L.C.N.M.H.Z.W.S.J.
. . . . . . . . . . . ........BO


Please let me know if any additional information is needed.

Thank you.


Reply to: