<?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>APT - Spheron1</title>
	<atom:link href="https://www.spheron1.uk/tag/apt/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>
		<item>
		<title>Building Bareos RPMs on Ubuntu 16.04</title>
		<link>https://www.spheron1.uk/2018/03/16/building-bareos-rpms-on-ubuntu-16-04/</link>
					<comments>https://www.spheron1.uk/2018/03/16/building-bareos-rpms-on-ubuntu-16-04/#respond</comments>
		
		<dc:creator><![CDATA[digitaldisaster]]></dc:creator>
		<pubDate>Fri, 16 Mar 2018 11:46:50 +0000</pubDate>
				<category><![CDATA[Bareos and Bacula]]></category>
		<category><![CDATA[Ubuntu and Debian]]></category>
		<category><![CDATA[.deb]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[Backup Archiving Recovery Open Sourced]]></category>
		<category><![CDATA[Bacula]]></category>
		<category><![CDATA[Bareos]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 16.04]]></category>
		<guid isPermaLink="false">https://www.spheron1.uk/?p=927</guid>

					<description><![CDATA[<p>Following on from my previous post on how to build Bareos (Backup Archiving Recovery Open Sourced) RPM packages on CentOS 6 &#38; 7 (https://www.spheron1.uk/2018/03/14/building-bareos-rpms-on-centos-6-7/), the following instructions will show you how to build .deb versions of the packages on Ubuntu 16.04. Again, these instructions are based on Bareos version 17.2.5, so would need to be adjusted appropriately for other versions&#46;&#46;&#46;</p>
<p>The post <a href="https://www.spheron1.uk/2018/03/16/building-bareos-rpms-on-ubuntu-16-04/">Building Bareos RPMs on Ubuntu 16.04</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Following on from my previous post on how to build Bareos (Backup Archiving Recovery Open Sourced) RPM packages on CentOS 6 &amp; 7 (<a href="https://www.spheron1.uk/2018/03/14/building-bareos-rpms-on-centos-6-7/">https://www.spheron1.uk/2018/03/14/building-bareos-rpms-on-centos-6-7/</a>), the following instructions will show you how to build .deb versions of the packages on Ubuntu 16.04.</p>
<p>Again, these instructions are based on Bareos version 17.2.5, so would need to be adjusted appropriately for other versions and I&#8217;m working exclusively with 64-bit (amd64) versions.</p>
<p>Before we start, lets make sure that everything is up to date:</p>
<blockquote><p>apt-get update<br />
apt-get upgrade</p></blockquote>
<p>Before we start building anything, we&#8217;ll need to install all of the dependencies which are required in order to build the .deb packages. We&#8217;ll use the libfastlz and libfastlz-dev packages from the Bareos repositories:</p>
<blockquote><p>apt-get install build-essential acl-dev autotools-dev bc chrpath debhelper libacl1-dev libcap-dev libjansson-dev liblzo2-dev libqt4-dev libreadline-dev libssl-dev libwrap0-dev libx11-dev libsqlite3-dev libmysqlclient-dev libpq-dev mtx ncurses-dev pkg-config po-debconf python-dev zlib1g-dev glusterfs-common librados-dev libcephfs-dev apache2-dev apache2 autoconf automake python-all python-setuptools<br />
wget http://download.bareos.org/bareos/release/17.2/xUbuntu_16.04/amd64/libfastlz_0.1-7.2_amd64.deb<br />
wget http://download.bareos.org/bareos/release/17.2/xUbuntu_16.04/amd64/libfastlz-dev_0.1-7.2_amd64.deb<br />
dpkg -i libfastlz_0.1-7.2_amd64.deb libfastlz-dev_0.1-7.2_amd64.deb</p></blockquote>
<p>Now let&#8217;s download the Bareos source code the various repositories on GitHub and extract it ready for building:</p>
<blockquote><p>wget https://github.com/bareos/bareos/archive/Release/17.2.5.tar.gz -qO &#8211; | tar zx<br />
wget https://github.com/bareos/bareos-webui/archive/Release/17.2.5.tar.gz -qO &#8211; | tar zx<br />
wget https://github.com/bareos/python-bareos/archive/Release/17.2.5.tar.gz -qO &#8211; | tar zx</p></blockquote>
<p>Before starting the build, we need to create a changelog file which contains information used by the build process. Use your favourite text editor to put the below into ~/bareos-Release-17.2.5/debian/changelog:</p>
<blockquote><p>bareos (17.2.5-0) stable; urgency=low</p>
<p>* Bareos 17.2.5 release; https://www.bareos.org/en/news/bareos-17-2-5-maintenance-version-released.html</p>
<p>&#8212; Your Name &lt;your@email.address&gt; Thu, 16 Mar 2018 10:58:00 +0000</p></blockquote>
<p>Once that&#8217;s done, you can start the build process:</p>
<blockquote><p>cd ~/bareos-Release-17.2.5/<br />
fakeroot debian/rules binary</p></blockquote>
<p>Now we just need to repeat this process for the bareos-webui package. Use your favourite text editor to create the ~/bareos-webui-Release-17.2.5/debian/changelog file containing the below:</p>
<blockquote><p>bareos-webui (17.2.5-0) stable; urgency=low</p>
<p>* Bareos 17.2.5 release; https://www.bareos.org/en/news/bareos-17-2-5-maintenance-version-released.html</p>
<p>&#8212; Your Name &lt;your@email.address&gt; Thu, 16 Mar 2018 10:58:00 +0000</p></blockquote>
<p>Unlike the main bareos repository, the debian/rules file isn&#8217;t executable by default in the code from bareos-webui repository, so we need to set that before we can start the build process:</p>
<blockquote><p>cd ~/bareos-webui-Release-17.2.5/<br />
chmod +x debian/rules<br />
fakeroot debian/rules binary</p></blockquote>
<p>Finally we need to build the python-bareos package. Use your favourite text editor to create the ~/python-bareos-Release-17.2.5/debian/changelog file containing the below:</p>
<blockquote><p>python-bareos (17.2.5-0) stable; urgency=low</p>
<p>* Bareos 17.2.5 release; https://www.bareos.org/en/news/bareos-17-2-5-maintenance-version-released.html</p>
<p>&#8212; Your Name &lt;your@email.address&gt; Thu, 16 Mar 2018 10:58:00 +0000</p></blockquote>
<p>Then it&#8217;s just the usual commands to start the build process:</p>
<blockquote><p>cd ~/python-bareos-Release-17.2.5/<br />
fakeroot debian/rules binary</p></blockquote>
<p>You should now have all of the .deb package files in your home directory which you can install locally or host in your own APT repository.</p><p>The post <a href="https://www.spheron1.uk/2018/03/16/building-bareos-rpms-on-ubuntu-16-04/">Building Bareos RPMs on Ubuntu 16.04</a> first appeared on <a href="https://www.spheron1.uk">Spheron1</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.spheron1.uk/2018/03/16/building-bareos-rpms-on-ubuntu-16-04/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/75 objects using Redis
Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching using Redis

Served from: spheron1.uk @ 2026-06-22 05:17:59 by W3 Total Cache
-->