<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=3521&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Can't update system due to NO_PUBKEY, common solutions don't work]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=3521</link>
		<description><![CDATA[The most recent posts in Can't update system due to NO_PUBKEY, common solutions don't work.]]></description>
		<lastBuildDate>Mon, 18 May 2020 22:23:39 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Can't update system due to NO_PUBKEY, common solutions don't work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21895#p21895</link>
			<description><![CDATA[<p>All files in /etc/apt/trusted.gpg.d/ are 644, except for backups which are 600. File /etc/apt/trusted.gpg is also 644. There is also a file /etc/apt/trustdb.gpg which is 600, but making it 644 doesn&#039;t help.</p><p>Anyway, I did what the person in the link did and now gpg shows a slightly different error:</p><div class="codebox"><pre><code>sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0xBB23C00C61FC752C
Executing: /tmp/user/0/apt-key-gpghome.ywAq90L8rZ/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 0xBB23C00C61FC752C
gpg: [don&#039;t know]: invalid packet (ctb=00)
gpg: keydb_get_keyblock failed: Value not found
gpg: [don&#039;t know]: invalid packet (ctb=00)
gpg: /tmp/user/0/apt-key-gpghome.ywAq90L8rZ/pubring.gpg: copy to &#039;/tmp/user/0/apt-key-gpghome.ywAq90L8rZ/pubring.gpg.tmp&#039; failed: Invalid packet
gpg: error writing keyring &#039;/tmp/user/0/apt-key-gpghome.ywAq90L8rZ/pubring.gpg&#039;: Invalid packet
gpg: error reading &#039;[stream]&#039;: Invalid packet
gpg: Total number processed: 0</code></pre></div><p>Searching for the new error code (ctb=00) I found this:<br /><a href="https://askubuntu.com/questions/719865/how-to-fix-missing-gpg-key-even-though-it-should-have-been-imported" rel="nofollow">https://askubuntu.com/questions/719865/ … n-imported</a><br />which says:</p><div class="quotebox"><blockquote><div><p>APT uses all the keyrings at the same time, as you can see by examining your output (...)<br />Having one damaged keyring makes GPG sad and none of the keyrings (even the good ones) are trusted. As a result, none of the keys considered.</p></div></blockquote></div><p>So I guess one of my keyring files must be damaged, but I don&#039;t know how to pinpoint which one is it. Any hints would be appreciated!<br />I tried movig out trusted.gog and all the files from trusted.gpg.d and then reimporting the keyring from the file I just moved out, or its older, backed up version - didn&#039;t work. When I try to import the devuan key once again, it seems its already in the keyring:</p><div class="codebox"><pre><code>sudo gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 0xBB23C00C61FC752C
gpg: data source: http://162.213.33.8:11371
gpg: key BB23C00C61FC752C: number of dropped non-self-signatures: 3
gpg: pub  rsa4096/BB23C00C61FC752C 2017-09-04  Devuan Repository (Amprolla3 on Nemesis) &lt;repository@devuan.org&gt;
gpg: key BB23C00C61FC752C: &quot;Devuan Repository (Amprolla3 on Nemesis) &lt;repository@devuan.org&gt;&quot; not changed
gpg: Total number processed: 1
gpg:              unchanged: 1</code></pre></div><p>So I guess it looks as if everything shoud work, but it doesn&#039;t.</p>]]></description>
			<author><![CDATA[dummy@example.com (kudlaty)]]></author>
			<pubDate>Mon, 18 May 2020 22:23:39 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21895#p21895</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't update system due to NO_PUBKEY, common solutions don't work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21854#p21854</link>
			<description><![CDATA[<p>Did you see this one?&#160; <a href="https://askubuntu.com/questions/1120843/gpg-dont-know-invalid-packet-ctb-2d" rel="nofollow">https://askubuntu.com/questions/1120843 … ket-ctb-2d</a></p><p>Check permissions on /etc/apt/trusted.gpg.d/*</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sun, 17 May 2020 20:51:45 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21854#p21854</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't update system due to NO_PUBKEY, common solutions don't work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21848#p21848</link>
			<description><![CDATA[<p>Thank you for your replies!</p><p>I already had devuan-keyring installed (version 2017.10.03) so now I reinstalled it along with some other keyring-related packages - it didn&#039;t help, unfortunately.</p><p>Do you think it makes sense for me to ask e.g. the GPG devs about this issue with <span class="bbc">gpg: [don&#039;t know]: invalid packet (ctb=2d)</span>? Or perhaps the apt maintainers? Or do you think it seems plausible that the HDD may be at fault here?</p>]]></description>
			<author><![CDATA[dummy@example.com (kudlaty)]]></author>
			<pubDate>Sun, 17 May 2020 19:07:54 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21848#p21848</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't update system due to NO_PUBKEY, common solutions don't work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21779#p21779</link>
			<description><![CDATA[<p>Unfortunately, I realized I had never put it on the live beta site so just did that.&#160; I had only put it in the new human-workable site that&#039;s not online yet.</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Sat, 16 May 2020 02:10:43 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21779#p21779</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't update system due to NO_PUBKEY, common solutions don't work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21778#p21778</link>
			<description><![CDATA[<p>Yes, the Devuan key was changed a fair while ago, and the easy way out would be</p><div class="codebox"><pre><code># apt-get -y install devuan-keyring</code></pre></div><p>That package drops a couple of files:</p><div class="codebox"><pre><code>/etc/apt/trusted.gpg.d
/etc/apt/trusted.gpg.d/devuan-keyring-2016-archive.gpg
/etc/apt/trusted.gpg.d/devuan-keyring-2016-cdimage.gpg
/etc/apt/trusted.gpg.d/devuan-keyring-2017-archive.gpg
/usr/share/doc/devuan-keyring/README.md.gz
/usr/share/doc/devuan-keyring/changelog.gz
/usr/share/doc/devuan-keyring/copyright
/usr/share/keyrings/devuan-archive-keyring.gpg
/usr/share/keyrings/devuan-keyring.gpg</code></pre></div><p> with the first three being for <span class="bbc">apt</span>.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 16 May 2020 02:05:53 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21778#p21778</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't update system due to NO_PUBKEY, common solutions don't work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21777#p21777</link>
			<description><![CDATA[<p>Try this on the beta site:<br /><a href="https://beta.devuan.org/os/keyring" rel="nofollow">https://beta.devuan.org/os/keyring</a></p><p>Don&#039;t know if it will help if you are on ascii.&#160; Such esoteric stuff is beyond my pay-grade</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Sat, 16 May 2020 02:04:59 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21777#p21777</guid>
		</item>
		<item>
			<title><![CDATA[Can't update system due to NO_PUBKEY, common solutions don't work]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21776#p21776</link>
			<description><![CDATA[<p>Hello everyone!</p><p>tl;dr (because I tried being comprehensive and ended up producing a wall of text):<br />Several weeks ago I suddenly started missing public keys signing repositories (ascii), tried updating and importing the missing key as advised around the net but none of these solutions worked for me. Now I&#039;m stuck with system I can&#039;t update and I don&#039;t like it but I don&#039;t know how to fix it.</p><p>The long version:<br />Several weeks ago I apparently started missing a PUBKEY. I wasn&#039;t actively messing with stuff in my system at the time, so it was a surprise. At first it only affected a single 3rd party repository (not the devuan one), so I thought &quot;They probably screwed something up, or are switching to a new key - it will probably get fixed in a couple of days.&quot; Well, it didn&#039;t.</p><p>Some days later I noticed the same problem also affecting the devuan repository, and then another 3rd party repos (that&#039;s odd, right?) I waited for a couple of weeks in case the problem would go away automagically, but no luck! <img src="http://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /> I can&#039;t update my system since then.</p><p>When I run <span class="bbc">sudo apt-get update</span> the message reads:</p><div class="codebox"><pre><code>The following signatures couldn&#039;t be verified because the public key is not available: NO_PUBKEY BB23C00C61FC752C</code></pre></div><p>The same applies to two other 3rd party repositories, and one more that now seems to have an expired key (EXPKEYSIG), probably a coincidence. But I still have three other 3rd party repositories that update fine, so I don&#039;t get what&#039;s going on here. O_o</p><p>After a bit of searching I found out people sometimes dealt with the same problem with NO_PUBKEY, and some good souls posted solutions online. But for some reason none of them worked for me. Which is disconcerting, especially now that there have been some important security updates. I&#039;m just a desktop user, but still - I&#039;d really prefer to have my system updated.</p><p>What I already tried (and it didn&#039;t help):</p><div class="codebox"><pre><code>sudo apt-key update
Warning: &#039;apt-key update&#039; is deprecated and should not be used anymore!
Note: In your distribution this command is a no-op and can therefore be removed safely.
sudo apt-key net-update</code></pre></div><p>(the last one returns nothing)</p><div class="codebox"><pre><code>sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BB23C00C61FC752C
Executing: /tmp/user/0/apt-key-gpghome.z2yridEorz/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys BB23C00C61FC752C
gpg: [don&#039;t know]: invalid packet (ctb=2d)
gpg: keydb_get_keyblock failed: Value not found
gpg: [don&#039;t know]: invalid packet (ctb=2d)
gpg: /tmp/user/0/apt-key-gpghome.z2yridEorz/pubring.gpg: copy to &#039;/tmp/user/0/apt-key-gpghome.z2yridEorz/pubring.gpg.tmp&#039; failed: Invalid packet
gpg: error writing keyring &#039;/tmp/user/0/apt-key-gpghome.z2yridEorz/pubring.gpg&#039;: Invalid packet
gpg: error reading &#039;[stream]&#039;: Invalid packet
gpg: Total number processed: 0</code></pre></div><div class="codebox"><pre><code>sudo gpg -a --export BB23C00C61FC752C | sudo apt-key add -
gpg: [don&#039;t know]: invalid packet (ctb=2d)
gpg: keydb_search failed: Invalid packet
gpg: [don&#039;t know]: invalid packet (ctb=2d)
gpg: keydb_search failed: Invalid packet
gpg: [don&#039;t know]: invalid packet (ctb=2d)
gpg: keydb_search failed: Invalid packet
gpg: [don&#039;t know]: invalid packet (ctb=2d)
gpg: keydb_get_keyblock failed: Value not found
gpg: [don&#039;t know]: invalid packet (ctb=2d)
gpg: /tmp/user/0/apt-key-gpghome.dIsrmYrlC3/pubring.gpg: copy to &#039;/tmp/user/0/apt-key-gpghome.dIsrmYrlC3/pubring.gpg.tmp&#039; failed: Invalid packet
gpg: error writing keyring &#039;/tmp/user/0/apt-key-gpghome.dIsrmYrlC3/pubring.gpg&#039;: Invalid packet
gpg: error reading &#039;-&#039;: Invalid packet
gpg: import from &#039;-&#039; failed: Invalid packet</code></pre></div><div class="codebox"><pre><code>sudo gpg --import ./Downloads/0xbb23c00c61fc752c.gpg 
gpg: key BB23C00C61FC752C: 3 signatures not checked due to missing keys
gpg: key BB23C00C61FC752C: public key &quot;Devuan Repository (Amprolla3 on Nemesis) &lt;repository@devuan.org&gt;&quot; imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no ultimately trusted keys found</code></pre></div><div class="codebox"><pre><code>sudo apt-key add ./Downloads/0xbb23c00c61fc752c.gpg 
gpg: [don&#039;t know]: invalid packet (ctb=2d)
gpg: keydb_search failed: Invalid packet
gpg: [don&#039;t know]: invalid packet (ctb=2d)
gpg: keydb_search failed: Invalid packet
gpg: [don&#039;t know]: invalid packet (ctb=2d)
gpg: keydb_search failed: Invalid packet
gpg: [don&#039;t know]: invalid packet (ctb=2d)
gpg: keydb_get_keyblock failed: Value not found
gpg: [don&#039;t know]: invalid packet (ctb=2d)
gpg: /tmp/user/0/apt-key-gpghome.Py1sTBC5JT/pubring.gpg: copy to &#039;/tmp/user/0/apt-key-gpghome.Py1sTBC5JT/pubring.gpg.tmp&#039; failed: Invalid packet
gpg: error writing keyring &#039;/tmp/user/0/apt-key-gpghome.Py1sTBC5JT/pubring.gpg&#039;: Invalid packet
gpg: error reading &#039;./Downloads/0xbb23c00c61fc752c.gpg&#039;: Invalid packet
gpg: import from &#039;./Downloads/0xbb23c00c61fc752c.gpg&#039; failed: Invalid packet</code></pre></div><p>I then tried simply moving the key manually <span class="bbc">sudo mv ./Downloads/0xbb23c00c61fc752c.gpg /etc/apt/trusted.gpg.d/</span> even before I found it recommended here:<br /><a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887706" rel="nofollow">https://bugs.debian.org/cgi-bin/bugrepo … bug=887706</a></p><p>Still, no effect. I investigated the <span class="bbc">gpg: [don&#039;t know]: invalid packet (ctb=2d)</span> part, but the links I found:<br /><a href="https://github.com/yarnpkg/yarn/issues/2343" rel="nofollow">https://github.com/yarnpkg/yarn/issues/2343</a><br /><a href="https://dev.gnupg.org/T997" rel="nofollow">https://dev.gnupg.org/T997</a></p><p>didn&#039;t help me much. After reading this:<br /><a href="https://www.chrisnewland.com/solved-gpg-dont-know-invalid-packet-ctb2d-103" rel="nofollow">https://www.chrisnewland.com/solved-gpg … -ctb2d-103</a></p><p>I tried de-armoring the key before attempting to import it - to no avail. This advice to re-import pubring and secring doesn&#039;t work for me either:<br /><a href="https://biercoff.com/fix-for-gpg-dont-know-invalid-packet-ctb2d-error/" rel="nofollow">https://biercoff.com/fix-for-gpg-dont-k … b2d-error/</a></p><p>I also tried reinstalling most apt- and gpg-related packages - to my surprise, it miraculously succeeded without any errors concerning being unable to verify the packages without the missing key. O_o But it still didn&#039;t solve the problem with updates.</p><p>I&#039;m using a really old laptop with a really old HDD, so it crossed my mind that it might be the HDD failing and the keys (or some internals of apt or gpg?) got corrupt. But I haven&#039;t noticed any loss of data, so I&#039;m not sure this is the case. I ran the extended tests in GSmartControl, MHDD and two other programs - all completed successfully.</p><p>What I haven&#039;t tried yet:<br />Switching to a new disk and reinstalling the system. <img src="http://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /> Well, it almost always helps but seemed a bit excessive at first. However, after trying all of the above, I&#039;m getting keen on doing so. It seems like a good opportunity to switch to SSD.</p><p> If you could please give me a hint on what am I doing wrong or what the culprit might be and how to fix it, I&#039;ll be grateful!</p><p>Thank you in advance!</p>]]></description>
			<author><![CDATA[dummy@example.com (kudlaty)]]></author>
			<pubDate>Sat, 16 May 2020 01:20:21 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21776#p21776</guid>
		</item>
	</channel>
</rss>
