{"id":17,"date":"2007-09-06T18:48:52","date_gmt":"2007-09-06T23:48:52","guid":{"rendered":"http:\/\/www.popmartian.com\/tipsntricks\/2007\/09\/06\/debian-key-signing-bug-no_pubkey\/"},"modified":"2007-09-06T18:53:11","modified_gmt":"2007-09-06T23:53:11","slug":"debian-key-signing-bug-no_pubkey","status":"publish","type":"post","link":"https:\/\/www.popmartian.com\/tipsntricks\/2007\/09\/06\/debian-key-signing-bug-no_pubkey\/","title":{"rendered":"Debian Key Signing Bug: NO_PUBKEY"},"content":{"rendered":"<p>There appears to be a bug in Debian&#8217;s key signing system.  Depending on your apt sources you may run in to packages signed by a key that Debian doesn&#8217;t like.  Annoyingly, these are Debian-signed packages, but unless you want to fix it, here is a workaround.<\/p>\n<p>http:\/\/non-us.debian.org is a repository signed with F1D53D8C4F368D5D, but Debian does not trust that key (because it is expired).  Go figure.<\/p>\n<p>To resolve the irritating error:<br \/>\nW: GPG error: http:\/\/non-us.debian.org stable\/non-US Release: The following signatures couldn&#8217;t be verified because the public key is not available: NO_PUBKEY [some key]<\/p>\n<p>Do this:<\/p>\n<p>1) Make sure you have the newest keys from Debian the automagical way: <code>apt-key update<\/code><br \/>\nThis will probably do nothing.<\/p>\n<p>2) Update your keys manually:<\/p>\n<ul>\n<li>Visit http:\/\/ftp-master.debian.org<\/li>\n<li>Find the URL to the latest key (right at the top of the page)<\/li>\n<li>Download it and import it: <code>wget [URL] -O - | apt-key add -<\/code> (replace [URL] with the link to the key, silly)<\/li>\n<\/ul>\n<p>3) Try again.  If it was indeed a key issued by Debian that you were missing, you should have it now.  My guess is you have stumbled across packages signed by a key that Debian forgot to include in their trusted keys list.<\/p>\n<p>4) The Icky part<\/p>\n<ul>\n<li>Install GNU PG if you don&#8217;t have it: <code>apt-get install gnupg<\/code><\/li>\n<li>Grab the key from Debian (Hey, it&#8217;s their key, they just forgot to give it out): <code>gpg --keyserver keyring.debian.org --recv-keys [KEY]<\/code><\/li>\n<li>Install the key: <code>gpg --armor --export [KEY] | sudo apt-key add -<\/code><\/li>\n<li>Trust the key: <code>gpg --export [KEY] >> \/etc\/apt\/trusted.gpg<\/code><\/li>\n<li>Make sure the key is there: <code>gpg --list-keys<\/code><\/li>\n<\/ul>\n<p>Now, not to rag on the Debian group, but the key I have been fighting with is F1D53D8C4F368D5D on non-us.debian.org.  That key is expired which is why it is not distributed.  No packages should be signed with it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There appears to be a bug in Debian&#8217;s key signing system. Depending on your apt sources you may run in to packages signed by a key that Debian doesn&#8217;t like. Annoyingly, these are Debian-signed packages, but unless you want to &hellip; <a href=\"https:\/\/www.popmartian.com\/tipsntricks\/2007\/09\/06\/debian-key-signing-bug-no_pubkey\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,3],"tags":[],"class_list":["post-17","post","type-post","status-publish","format-standard","hentry","category-debian","category-how-to-do-stuff"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/comments?post=17"}],"version-history":[{"count":1,"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/posts\/17\/revisions"}],"predecessor-version":[{"id":50,"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/posts\/17\/revisions\/50"}],"wp:attachment":[{"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/media?parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/categories?post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.popmartian.com\/tipsntricks\/wp-json\/wp\/v2\/tags?post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}