<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UEFI - Spheron1</title>
	<atom:link href="https://www.spheron1.uk/tag/uefi/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.spheron1.uk</link>
	<description></description>
	<lastBuildDate>Wed, 07 May 2025 10:15:14 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>APT/DPKG errors for shim-signed package</title>
		<link>https://www.spheron1.uk/2025/05/07/apt-dpkg-errors-for-shim-signed-package/</link>
					<comments>https://www.spheron1.uk/2025/05/07/apt-dpkg-errors-for-shim-signed-package/#respond</comments>
		
		<dc:creator><![CDATA[digitaldisaster]]></dc:creator>
		<pubDate>Wed, 07 May 2025 10:15:14 +0000</pubDate>
				<category><![CDATA[Ubuntu and Debian]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[debconf]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[EFI]]></category>
		<category><![CDATA[ESP]]></category>
		<category><![CDATA[GRUB]]></category>
		<category><![CDATA[shim-signed]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[UEFI]]></category>
		<guid isPermaLink="false">https://www.spheron1.uk/?p=2299</guid>

					<description><![CDATA[<p>When running a routine &#8220;apt update&#8221; on an Ubuntu server, I was getting the following error: The bizarre thing here is that the /dev/nvme1n1p1 device is nothing to do with the UEFI ESP, that lives on /dev/sdi1 as this particular server can&#8217;t boot from NVMe devices and so uses a small USB stick for /boot/efi and /boot instead. The /dev/sdi1&#46;&#46;&#46;</p>
<p>The post <a href="https://www.spheron1.uk/2025/05/07/apt-dpkg-errors-for-shim-signed-package/">APT/DPKG errors for shim-signed package</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></description>
										<content:encoded><![CDATA[<p class="wp-block-paragraph">When running a routine &#8220;<code>apt update</code>&#8221; on an Ubuntu server, I was getting the following error:</p>



<pre class="wp-block-code"><code>Setting up shim-signed (1.51.4+15.8-0ubuntu1) ...
Installing grub to /boot/efi.
Installing for x86_64-efi platform.
Installation finished. No error reported.
mount: /var/lib/grub/esp: /dev/nvme1n1p1 already mounted or mount point busy.
dpkg: error processing package shim-signed (--configure):
 installed shim-signed package post-installation script subprocess returned error exit status 32
Errors were encountered while processing:
 shim-signed
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)</code></pre>



<p class="wp-block-paragraph">The bizarre thing here is that the <em>/dev/nvme1n1p1</em> device is nothing to do with the UEFI ESP, that lives on <em>/dev/sdi1</em> as this particular server can&#8217;t boot from NVMe devices and so uses a small USB stick for <em>/boot/efi</em> and <em>/boot</em> instead.</p>



<p class="wp-block-paragraph">The <em>/dev/sdi1</em> device was mounted on <em>/boot/efi </em>as expected, and the UUID listed in <em>/etc/fstab</em> was correct, so initially I wasn&#8217;t sure where the reference to <em>/dev/nvme1n1p1</em> for the UEFI ESP was coming from.<br>After a bit of digging I found that this was in fact caused by the <em>/var/cache/debconf/config.dat</em> file, which contained the following entry:</p>



<pre class="wp-block-code"><code>Name: grub-efi/install_devices
Template: grub-efi/install_devices
Value: /dev/disk/by-id/usb-SanDisk_Ultra_0401d75aeb6cd405701a2711e62657aae5100e05183ca1b9d69275564cee2e887ef5000000000000000000006c97162200805e188a5581075cac9e0f-0:0-part1, /dev/disk/by-id/nvme-eui.0000000001000000e4d25c49119f5401-part1, /dev/disk/by-id/nvme-eui.0000000001000000e4d25cb9029f5401-part1
Owners: grub-common, grub-efi-amd64, grub-pc
Flags: seen
Variables:
 CHOICES = /dev/nvme1n1p1 (1127 MB; ) on 512110 MB INTEL SSDPEKNU512GZ, /dev/nvme0n1p1 (1127 MB; ) on 512110 MB INTEL SSDPEKNU512GZ, /dev/sdi1 (1127 MB; /boot/efi) on 30765 MB Ultra
 RAW_CHOICES = /dev/disk/by-id/nvme-eui.0000000001000000e4d25c49119f5401-part1, /dev/disk/by-id/nvme-eui.0000000001000000e4d25cb9029f5401-part1, /dev/disk/by-id/usb-SanDisk_Ultra_0401d75aeb6cd405701a2711e62657aae5100e05183ca1b9d69275564cee2e887ef5000000000000000000006c97162200805e188a5581075cac9e0f-0:0-part1</code></pre>



<p class="wp-block-paragraph">I ran the following command to explicitly set it to the UUID of the filesystem on the <em>/dev/sdi1</em> device:</p>



<pre class="wp-block-code"><code>echo "grub-efi-amd64 grub-efi/install_devices multiselect /dev/disk/by-uuid/47E1-19C4" | debconf-set-selections</code></pre>



<p class="wp-block-paragraph">Now the <em>/var/cache/debconf/config.dat</em> file contains:</p>



<pre class="wp-block-code"><code>Name: grub-efi/install_devices
Template: grub-efi/install_devices
Value: /dev/disk/by-uuid/47E1-19C4
Owners: grub-common, grub-efi-amd64, grub-pc
Flags: seen
Variables:
 CHOICES = /dev/nvme1n1p1 (1127 MB; ) on 512110 MB INTEL SSDPEKNU512GZ, /dev/nvme0n1p1 (1127 MB; ) on 512110 MB INTEL SSDPEKNU512GZ, /dev/sdi1 (1127 MB; /boot/efi) on 30765 MB Ultra
 RAW_CHOICES = /dev/disk/by-id/nvme-eui.0000000001000000e4d25c49119f5401-part1, /dev/disk/by-id/nvme-eui.0000000001000000e4d25cb9029f5401-part1, /dev/disk/by-id/usb-SanDisk_Ultra_0401d75aeb6cd405701a2711e62657aae5100e05183ca1b9d69275564cee2e887ef5000000000000000000006c97162200805e188a5581075cac9e0f-0:0-part1</code></pre>



<p class="wp-block-paragraph">After making this change, APT is happy again:</p>



<pre class="wp-block-code"><code>Setting up shim-signed (1.51.4+15.8-0ubuntu1) ...
Installing grub to /boot/efi.
Installing for x86_64-efi platform.
Installation finished. No error reported.</code></pre>



<p class="wp-block-paragraph">I think this confusion was ultimately caused by some stray ESP partitions on the NVMe devices leftover from a previous attempt to install Ubuntu on this server.</p><p>The post <a href="https://www.spheron1.uk/2025/05/07/apt-dpkg-errors-for-shim-signed-package/">APT/DPKG errors for shim-signed package</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.spheron1.uk/2025/05/07/apt-dpkg-errors-for-shim-signed-package/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Object Caching 0/59 objects using Redis
Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching using Redis

Served from: spheron1.uk @ 2026-06-29 21:21:40 by W3 Total Cache
-->