Upgrading error: Failed to read "SetupMode" variable: No such file or directory

oldtimer

Member
Feb 2, 2024
19
0
6
Not sure if I have this in the right place, but really not sure what is happening here or exactly what the following error message actually means.

Failed to read "SetupMode" variable: No such file or directory clearly indicates something is missing but I have no clue where to start with this.

Full output follows.

Code:
Hit:1 http://ftp.uk.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org bookworm-security InRelease
Hit:3 http://ftp.uk.debian.org/debian bookworm-updates InRelease
Hit:4 http://download.proxmox.com/debian/pbs bookworm InRelease
Reading package lists... Done         
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  shim-signed
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/347 kB of archives.
After this operation, 95.2 kB of additional disk space will be used.
apt-listchanges: Reading changelogs...
Preconfiguring packages ...
(Reading database ... 57146 files and directories currently installed.)
Preparing to unpack .../shim-signed_1.51+pmx1~bpo12+1+16.1-2+pmx1~bpo12+1_amd64.deb ...
shim-signed: checking if we can safely install /usr/lib/shim/shimx64.efi.signed
Unexpected output from mokutil:
"""
Failed to read "SetupMode" variable: No such file or directory
"""
Please report this as a bug agsinst shim-signed, including the above information.
dpkg: error processing archive /var/cache/apt/archives/shim-signed_1.51+pmx1~bpo12+1+16.1-2+pmx1~bpo12+1_amd64.deb (--unpack):
 new shim-signed:amd64 package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/shim-signed_1.51+pmx1~bpo12+1+16.1-2+pmx1~bpo12+1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any insights would be really welcome.
 
Is this PBS instance running in a VM or native on a host? is secure boot enabled? Are you booting using UEFI or legacy BIOS?
 
Thank you for getting back to me so quickly. Much appreciated. Sorry I didn't think to include this.

Physical Hardware, not a VM. It's an older server I had lying around.
Specs are: 24 x Intel(R) Xeon(R) CPU E5-2430 v2 @ 2.50GHz (2 Sockets). It is mostly turned off. In fact is is a secondary backup of a primary PBS for my home infrastructure.

Boot: UEFI

Secure Boot: I honestly can't remember, mokutil --sb-state returns
Code:
Failed to read "SetupMode" variable: No such file or directory
so I can't really say.
 
What output do you get from the commands:
Code:
ls -la /sys/firmware/efi/efivars/
mount | grep efivarfs
mokutil -v
 
Last edited:
Code:
root@pbs:~# ls -la /sys/firmware/efi/efivars/
total 0
drwxr-xr-x 2 root root     0 Jul  2 10:35 .
drwxr-xr-x 5 root root     0 Jul  2 10:35 ..
-rw-r--r-- 1 root root     8 Jul  2 10:35 AcpiGlobalVariable-af9ffd67-ec10-488a-9dfc-6cbf5ee22c2e
-rw-r--r-- 1 root root    85 Jul  2 10:35 AMITSESetup-c811fa38-42c8-4579-a9bb-60e94eddfb34
-rw-r--r-- 1 root root   146 Jul  2 10:35 Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root   152 Jul  2 10:35 Boot0001-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root   146 Jul  2 10:35 Boot0002-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root   409 Jul  2 10:35 Boot0003-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root    90 Jul  2 10:35 Boot0004-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root   162 Jul  2 10:35 Boot0005-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root   146 Jul  2 10:35 Boot0006-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root   150 Jul  2 10:35 Boot0007-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root   188 Jul  2 10:35 Boot0008-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root   188 Jul  2 10:35 Boot0009-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root   164 Jul  2 10:35 Boot000A-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root   188 Jul  2 10:35 Boot000B-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root   188 Jul  2 10:35 Boot000C-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root   188 Jul  2 10:35 Boot000D-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root   188 Jul  2 10:35 Boot000E-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root   164 Jul  2 10:35 Boot000F-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root   747 Jul  2 10:35 Boot0013-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root     6 Jul  2 10:35 BootCurrent-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root     8 Jul  2 10:35 BootOptionSupport-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root    38 Jul  2 10:35 BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root    72 Jul  2 10:35 ConIn-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root    72 Jul  2 10:35 ConInDev-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root    40 Jul  2 10:35 ConOut-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root    40 Jul  2 10:35 ConOutDev-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root     8 Jul  2 10:35 CpuS3Resume-30b98b95-dfa3-4501-a3ce-e38c186384a0
-rw-r--r-- 1 root root     5 Jul  2 10:35 DebuggerSerialPortsEnabledVar-97ca1a5b-b760-4d1f-a54b-d19092032c90
-rw-r--r-- 1 root root     8 Jul  2 10:35 DefaultBootOrder-45cf35f6-0d6e-4d04-856a-0370a5b16f53
-rw-r--r-- 1 root root    28 Jul  2 10:35 DefaultLegacyDevOrder-3c4ead08-45ae-4315-8d15-a60eaa8caf69
-rw-r--r-- 1 root root    22 Jul  2 10:35 DefaultUefiDevOrder-0c923ca9-df73-4ac8-b6d2-98ddc30d99fc
-rw-r--r-- 1 root root  1284 Jul  2 10:35 DmiArray-4b3082a3-80c6-4d7e-9cd0-583917265df1
-rw-r--r-- 1 root root    11 Jul  2 10:35 DmiVar010001040-4b3082a3-80c6-4d7e-9cd0-583917265df1
-rw-r--r-- 1 root root    12 Jul  2 10:35 DmiVar010001050-4b3082a3-80c6-4d7e-9cd0-583917265df1
-rw-r--r-- 1 root root    22 Jul  2 10:35 DmiVar010001060-4b3082a3-80c6-4d7e-9cd0-583917265df1
-rw-r--r-- 1 root root    12 Jul  2 10:35 DmiVar010001070-4b3082a3-80c6-4d7e-9cd0-583917265df1
-rw-r--r-- 1 root root    17 Jul  2 10:35 DmiVar020002070-4b3082a3-80c6-4d7e-9cd0-583917265df1
-rw-r--r-- 1 root root    15 Jul  2 10:35 DmiVar030003060-4b3082a3-80c6-4d7e-9cd0-583917265df1
-rw-r--r-- 1 root root     9 Jul  2 10:35 DmiVar030003080-4b3082a3-80c6-4d7e-9cd0-583917265df1
-rw-r--r-- 1 root root    12 Jul  2 10:35 DriverHealthCount-7459a7d4-6533-4480-bba7-79e25a4443c9
-rw-r--r-- 1 root root    12 Jul  2 10:35 DriverHlthEnable-0885f288-418c-4be1-a6af-8bad61da08fe
-rw-r--r-- 1 root root     7 Jul  2 10:35 EfiTime-9d0da369-540b-46f8-85a0-2b5f2c301e15
-rw-r--r-- 1 root root    40 Jul  2 10:35 ErrOut-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root    40 Jul  2 10:35 ErrOutDev-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root   516 Jul  2 10:35 FixedBoot-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root    19 Jul  2 10:35 FixedBootGroup-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root     8 Jul  2 10:35 FPDT_Variable-01368881-c4ad-4b1d-b631-d57a8ec8db6b
-rw-r--r-- 1 root root     7 Jul  2 10:35 Lang-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root     7 Jul  2 10:35 LangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root     8 Jul  2 10:35 LastBootFailedIoh-8163179a-f31a-4132-aede-89f36aee43da
-rw-r--r-- 1 root root    28 Jul  2 10:35 LegacyDevOrder-a56074db-65fe-45f7-bd21-2d2bdd8e9652
-rw-r--r-- 1 root root    78 Jul  2 10:35 LoaderDevicePartUUID-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
-rw-r--r-- 1 root root   172 Jul  2 10:35 LoaderEntries-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
-rw-r--r-- 1 root root    58 Jul  2 10:35 LoaderEntrySelected-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
-rw-r--r-- 1 root root    12 Jul  2 10:35 LoaderFeatures-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
-rw-r--r-- 1 root root    56 Jul  2 10:35 LoaderFirmwareInfo-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
-rw-r--r-- 1 root root    24 Jul  2 10:35 LoaderFirmwareType-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
-rw-r--r-- 1 root root    70 Jul  2 10:35 LoaderImageIdentifier-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
-rw-r--r-- 1 root root    64 Jul  2 10:35 LoaderInfo-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
-rw------- 1 root root    36 Jul  2 10:35 LoaderRandomSeed-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
-rw------- 1 root root    36 Jul  2 10:35 LoaderSystemToken-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
-rw-r--r-- 1 root root    22 Jul  2 10:35 LoaderTimeExecUSec-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
-rw-r--r-- 1 root root    22 Jul  2 10:35 LoaderTimeInitUSec-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
-rw-r--r-- 1 root root    22 Jul  2 10:35 LoaderTimeMenuUSec-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f
-rw-r--r-- 1 root root   205 Jul  2 10:35 MemoryInfo-7ee396a1-ff7d-431b-fa53-8ccd127c44c5
-rw-r--r-- 1 root root    68 Jul  2 10:35 MemoryTypeInformation-4c19049f-4137-4dd3-9c10-8b97a83ffdfa
-rw-r--r-- 1 root root     8 Jul  2 10:35 MonotonicCounter-01368881-c4ad-4b1d-b631-d57a8ec8db6b
-rw-r--r-- 1 root root 48042 Jul  2 10:35 MrcNvramData-4398a686-20a6-4a5b-9cc3-9148647615d9
-rw-r--r-- 1 root root     9 Jul  2 10:35 NetworkStackVar-d1405d16-7afc-4695-bb12-41459d3695a2
-rw-r--r-- 1 root root    28 Jul  2 10:35 OA3MSDMvariable-01368881-c4ad-4b1d-b631-d57a8ec8db6b
-rw-r--r-- 1 root root    38 Jul  2 10:35 OldBootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root    28 Jul  2 10:35 OldLegacyDevOrder-a56074db-65fe-45f7-bd21-2d2bdd8e9652
-rw-r--r-- 1 root root    22 Jul  2 10:35 OldUefiDevOrder-0c923ca9-df73-4ac8-b6d2-98ddc30d99fc
-rw-r--r-- 1 root root    12 Jul  2 10:35 OsIndicationsSupported-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root    10 Jul  2 10:35 PlatformLang-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root    10 Jul  2 10:35 PlatformLangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root     7 Jul  2 10:35 PNP0400_0_NV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root    13 Jul  2 10:35 PNP0400_0_VV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root     7 Jul  2 10:35 PNP0501_0_NV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root    13 Jul  2 10:35 PNP0501_0_VV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root     7 Jul  2 10:35 PNP0501_1_NV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root    13 Jul  2 10:35 PNP0501_1_VV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root     7 Jul  2 10:35 PNP0604_0_NV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root    13 Jul  2 10:35 PNP0604_0_VV-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root    68 Jul  2 10:35 PreviousMemoryTypeInformation-4c19049f-4137-4dd3-9c10-8b97a83ffdfa
-rw-r--r-- 1 root root    20 Jul  2 10:35 ResolvedCoresMask2Var-eb5c167a-e1de-4cba-bce1-152dbcf21b92
-rw-r--r-- 1 root root     6 Jul  2 10:35 RetryCounterMmioIo-a1948ff0-8c5d-11e0-83f2-0800200c9a66
-rw-r--r-- 1 root root    12 Jul  2 10:35 RSCInfoAddresss-01368881-c4ad-4b1d-b631-d57a8ec8db6b
-rw-r--r-- 1 root root    12 Jul  2 10:35 S3SS-4bafc2b4-02dc-4104-b236-d6f1b98d9e84
-rw-r--r-- 1 root root     5 Jul  2 10:35 SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root     6 Jul  2 10:35 SerialPortsEnabledVar-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root     8 Jul  2 10:35 Setup-80e1202e-2697-4264-9cc9-80762c3e5863
-rw-r--r-- 1 root root     8 Jul  2 10:35 SetupCpuSockets-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root   588 Jul  2 10:35 Setup-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root     7 Jul  2 10:35 SetupLtsxFeatures-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root     8 Jul  2 10:35 SioSerialPortsLocationVar-560bf58a-1e0d-4d7e-953f-2980a261e031
-rw-r--r-- 1 root root     5 Jul  2 10:35 SMC_HIDDEN_TPM_NAME-38c75a1e-8c00-4be0-9de4-a5214cffe97a
-rw-r--r-- 1 root root  1661 Jul  2 10:35 StdDefaults-4599d26f-1a11-49b8-b91f-858745cff824
-rw-r--r-- 1 root root     5 Jul  2 10:35 TcgInternalSyncFlag-f3ed95df-828e-41c7-bca0-16c41965a634
-rw-r--r-- 1 root root     6 Jul  2 10:35 Timeout-8be4df61-93ca-11d2-aa0d-00e098032b8c
-rw-r--r-- 1 root root    22 Jul  2 10:35 UefiDevOrder-0c923ca9-df73-4ac8-b6d2-98ddc30d99fc
-rw-r--r-- 1 root root    36 Jul  2 10:35 UnlockIDCopy-eaec226f-c9a3-477a-a826-ddc716cdc0e3
-rw-r--r-- 1 root root     6 Jul  2 10:35 UsbMassDevNum-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root    20 Jul  2 10:35 UsbMassDevValid-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
-rw-r--r-- 1 root root    12 Jul  2 10:35 USB_POINT-c811fa38-42c8-4579-a9bb-60e94eddfb34
-rw-r--r-- 1 root root    36 Jul  2 10:35 UsbSupport-ec87d643-eba4-4bb5-a1e5-3f3e36b20da9
 
Seems like your UEFI is not exposing this variable, which is being read by mokutil to determine which shim to install. What motherboard with which firmware version is this installed on? Please check if you are running the latest firmware available.