Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#992335: shim-helpers-amd64-signed: grub install: error: failed to register the EFI boot entry, no space left on device

55 views
Skip to first unread message

wim

unread,
Aug 17, 2021, 9:30:04 AM8/17/21
to
Package: shim-helpers-amd64-signed
Version: 1+15.4+5~deb10u1
Severity: normal

Hello,

This is the setup:

# df -h
Bestandssysteem Grootte Gebruikt Besch Geb% Aangekoppeld op
udev 32G 0 32G 0% /dev
tmpfs 6,3G 13M 6,3G 1% /run
/dev/mapper/root_ssd-lv_root_ssd_crypt 1,9T 1,6T 152G 92% /
tmpfs 32G 92K 32G 1% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/loop0 165M 165M 0 100% /snap/gnome-3-28-1804/161
/dev/loop1 100M 100M 0 100% /snap/core/11316
/dev/nvme1n1p1 504M 368M 112M 77% /boot
/dev/loop2 72M 72M 0 100% /snap/carnet/15
/dev/nvme0n1p1 511M 49M 463M 10% /boot/efi
/dev/loop4 159M 159M 0 100% /snap/codium/166
/dev/loop3 163M 163M 0 100% /snap/gnome-3-28-1804/145
/dev/loop6 56M 56M 0 100% /snap/core18/2128
/dev/loop5 56M 56M 0 100% /snap/core18/2074
/dev/loop8 100M 100M 0 100% /snap/core/11420
/dev/loop7 66M 66M 0 100% /snap/gtk-common-themes/1515
/dev/loop9 151M 151M 0 100% /snap/codium/162
/dev/loop10 128K 128K 0 100% /snap/hello-world/29
/dev/loop11 65M 65M 0 100% /snap/gtk-common-themes/1514
/dev/loop12 42G 42G 0 100% /home/wim/ucll/zolder_gt
/dev/loop13 72M 72M 0 100% /snap/carnet/16
/dev/sdb1 3,6T 3,2T 307G 92% /mnt/terra_1_5_story
/dev/mapper/data_1T 856G 254G 558G 32% /data_1T
tmpfs 6,3G 64K 6,3G 1% /run/user/1000
/dev/mmcblk0p1 3,7G 64K 3,7G 1% /media/wim/MICROSD
/dev/sr0 88M 88M 0 100% /media/wim/20190318_164558

So /boot/efi and /boot have free space

Other background:

# dmesg | grep "EFI v"
[ 0.000000] efi: EFI v2.60 by HP

# efibootmgr -v
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0001,0003,0004,0005,0006,0002
Boot0000* debian HD(1,GPT,2f88813d-e6d3-41c2-91ef-4f100bbcb1e7,0x800,0x100000)/File(\EFI\debian\shimx64.efi)....ISPH
Boot0001* ST1000LM049-2GH172 PciRoot(0x0)/Pci(0x17,0x0)/Sata(3,65535,0)N.....YM....R,Y.....ISPH
Boot0002 Pen Drive CE775D2724450050 PciRoot(0x0)/Pci(0x14,0x0)/USB(12,0)/USB(0,0)/USB(0,0)/USB(2,0)N.....YM....R,Y.....ISPH
Boot0003* KXG60ZNV1T02 TOSHIBA-89JA61I4KS1N PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/NVMe(0x1,8C-E3-8E-03-00-1B-80-FC)N.....YM....R,Y.....ISPH
Boot0004* Seagate Expansion Desk NA8F8PK8 PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)/Pci(0x2,0x0)/Pci(0x0,0x0)/USB(2,0)/USB(2,0)/USB(0,0)N.....YM....R,Y.....ISPH
Boot0005 Expansion PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x0)/Pci(0x2,0x0)/Pci(0x0,0x0)/USB(3,0)/USB(1,0)/MAC(040e3cb07f7b,0)/IPv4(0.0.0.00.0.0.0,0,0)N.....YM....R,Y.....ISPH
Boot0006 Expansion PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x0)/Pci(0x2,0x0)/Pci(0x0,0x0)/USB(3,0)/USB(1,0)/MAC(040e3cb07f7b,0)/IPv6([::]:<->[::]:,0,0)N.....YM....R,Y.....ISPH

# cat /proc/mdstat
Personalities : [raid0] [linear] [multipath] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid0 nvme0n1p2[1] nvme1n1p2[0]
1999093760 blocks super 1.2 512k chunks

The errors (and warnings) given are (dutch):

# apt upgrade
..
I: /initrd.img is now a symlink to boot/initrd.img-5.10.0-0.bpo.8-amd64
/etc/kernel/postinst.d/dkms:
Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch. This indicates that it should not be built.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.10.0-0.bpo.8-amd64
setupcon: The keyboard model is unknown, assuming 'pc105'. Keyboard may be configured incorrectly.
W: Possible missing firmware /lib/firmware/i915/skl_huc_2.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_huc_2.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_huc_4.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/glk_huc_4.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_huc_4.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cml_huc_4.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cml_guc_33.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/icl_huc_9.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/ehl_huc_9.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/ehl_guc_33.0.4.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_guc_35.2.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_guc_35.2.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/icl_dmc_ver1_09.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_dmc_ver2_08.bin for module i915
W: Possible missing firmware /lib/firmware/i915/rkl_dmc_ver2_02.bin for module i915
/etc/kernel/postinst.d/zz-update-grub:
..
Instellen van shim-signed-common (1.36~1+deb10u2+15.4-5~deb10u1) ...
Failed to request new MokSB state
Instellen van exiv2 (0.25-4+deb10u2) ...
..
Instellen van linux-headers-5.10.0-0.bpo.8-amd64 (5.10.46-2~bpo10+1) ...
/etc/kernel/header_postinst.d/dkms:
Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch. This indicates that it should not be built.
Instellen van bluez (5.50-1.2~deb10u2) ...
..
Installeren voor x86_64-efi-platform.
grub-install: waarschuwing: Cannot set EFI variable Boot0000.
grub-install: waarschuwing: efivarfs_set_variable: writing to fd 8 failed: Geen ruimte meer over op apparaat.
grub-install: waarschuwing: _efi_set_variable_mode: ops->set_variable() failed: Geen ruimte meer over op apparaat.
grub-install: fout: failed to register the EFI boot entry: Geen ruimte meer over op apparaat.
dpkg: fout bij verwerken van pakket shim-helpers-amd64-signed (--configure):
subproces van pakket shim-helpers-amd64-signed werd script post-installation geïnstalleerd gaf de foutwaarde 1 terug
Instellen van bluetooth (5.50-1.2~deb10u2) ...
..
Instellen van pspg (5.2.0-1.pgdg100+1) ...
dpkg: vereistenproblemen verhinderen de configuratie van shim-signed:amd64:
shim-signed:amd64 is afhankelijk van shim-helpers-amd64-signed (>= 1+15.4+2~deb10u1); maar:
Pakket shim-helpers-amd64-signed is nog niet geconfigureerd.

dpkg: fout bij verwerken van pakket shim-signed:amd64 (--configure):
vereistenproblemen - blijft ongeconfigureerd
Instellen van postgresql-client-13 (13.4-1.pgdg100+1) ...
..
update-initramfs: Generating /boot/initrd.img-5.10.0-0.bpo.8-amd64
setupcon: The keyboard model is unknown, assuming 'pc105'. Keyboard may be configured incorrectly.
W: Possible missing firmware /lib/firmware/i915/skl_huc_2.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_huc_2.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_huc_4.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/glk_huc_4.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_huc_4.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cml_huc_4.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cml_guc_33.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/icl_huc_9.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/ehl_huc_9.0.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/ehl_guc_33.0.4.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_guc_35.2.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_guc_35.2.0.bin for module i915
W: Possible missing firmware /lib/firmware/i915/icl_dmc_ver1_09.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_dmc_ver2_08.bin for module i915
W: Possible missing firmware /lib/firmware/i915/rkl_dmc_ver2_02.bin for module i915
Bezig met afhandelen van triggers voor dictionaries-common (1.28.1) ...
Fouten gevonden tijdens verwerken van:
shim-helpers-amd64-signed
shim-signed:amd64
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

trying with dpkg, gives the same:

# dpkg --configure shim-helpers-amd64-signed
Instellen van shim-helpers-amd64-signed (1+15.4+5~deb10u1) ...
Installeren voor x86_64-efi-platform.
grub-install: waarschuwing: Cannot set EFI variable Boot0000.
grub-install: waarschuwing: efivarfs_set_variable: writing to fd 8 failed: Geen ruimte meer over op apparaat.
grub-install: waarschuwing: _efi_set_variable_mode: ops->set_variable() failed: Geen ruimte meer over op apparaat.
grub-install: fout: failed to register the EFI boot entry: Geen ruimte meer over op apparaat.
dpkg: fout bij verwerken van pakket shim-helpers-amd64-signed (--configure):
subproces van pakket shim-helpers-amd64-signed werd script post-installation geïnstalleerd gaf de foutwaarde 1 terug
Fouten gevonden tijdens verwerken van:
shim-helpers-amd64-signed

# dpkg --configure shim-signed
dpkg: vereistenproblemen verhinderen de configuratie van shim-signed:amd64:
shim-signed:amd64 is afhankelijk van shim-helpers-amd64-signed (>= 1+15.4+2~deb10u1); maar:
Pakket shim-helpers-amd64-signed is nog niet geconfigureerd.

dpkg: fout bij verwerken van pakket shim-signed:amd64 (--configure):
vereistenproblemen - blijft ongeconfigureerd
Fouten gevonden tijdens verwerken van:
shim-signed:amd64

hth,
Wim

-- System Information:
Debian Release: 10.10
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-0.bpo.7-amd64 (SMP w/16 CPU cores)
Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8), LANGUAGE=nl_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages shim-helpers-amd64-signed depends on:
ii shim-unsigned 15.4-5~deb10u1

shim-helpers-amd64-signed recommends no packages.

shim-helpers-amd64-signed suggests no packages.

-- no debconf information

Steve McIntyre

unread,
Aug 20, 2021, 9:40:04 AM8/20/21
to
Control: reassign -1 grub-efi-amd64

Hi wim,

On Tue, Aug 17, 2021 at 03:22:49PM +0200, wim wrote:
>Package: shim-helpers-amd64-signed
>Version: 1+15.4+5~deb10u1
>Severity: normal
>
>Hello,
>
>This is the setup:

OK, this is a problem being reported by grub-install, called by
shim-helpers-amd64-signed as it's installed. Reassigning to one of the
grub packages.
Nod. The problem is that your system is failing to create/update an
EFI boot variable in its NVRAM. The most common issue that causes this
is system log reports in /sys/fs/pstore/ . Could you check and see if
there are any files there please?

--
Steve McIntyre, Cambridge, UK. st...@einval.com
"I can't ever sleep on planes ... call it irrational if you like, but I'm
afraid I'll miss my stop" -- Vivek Das Mohapatra

Steve McIntyre

unread,
Aug 20, 2021, 10:00:03 AM8/20/21
to
On Fri, Aug 20, 2021 at 03:40:48PM +0200, Wim Bertels wrote:
>Steve McIntyre schreef op vr 20-08-2021 om 14:29 [+0100]:
>>
>> Nod. The problem is that your system is failing to create/update an
>> EFI boot variable in its NVRAM. The most common issue that causes
>> this
>> is system log reports in /sys/fs/pstore/ . Could you check and see if
>> there are any files there please?
>
>Yes, there are many files, all from 'nov 7 2019' which could be the
>installation date.
>
># ls /sys/fs/pstore/ -altr
>totaal 0
>-r--r--r-- 1 root root 1799 nov 7 2019 dmesg-efi-157315250037001
>-r--r--r-- 1 root root 1799 nov 7 2019 dmesg-efi-157315250036001
>-r--r--r-- 1 root root 1800 nov 7 2019 dmesg-efi-157315250035002
>-r--r--r-- 1 root root 1799 nov 7 2019 dmesg-efi-157315250035001
>-r--r--r-- 1 root root 1800 nov 7 2019 dmesg-efi-157315250034002
>
>An example of the content, most of them about nouveau:

OK, that's junk that you can simply delete. If you do that, things
should clear up for you. Depending on the firmware of your computer
(and its handling of EFI variables), you *might* need to reboot for
the space to free up completely. In that case, I'd recomment that you
have an installer USB (or similar) handy just in case things don't
boot.

--
Steve McIntyre, Cambridge, UK. st...@einval.com
"Arguing that you don't care about the right to privacy because you have
nothing to hide is no different than saying you don't care about free
speech because you have nothing to say."
-- Edward Snowden
0 new messages