{"id":9978,"date":"2023-12-07T05:08:23","date_gmt":"2023-12-06T21:08:23","guid":{"rendered":"https:\/\/bohu.net\/blog\/?p=9978"},"modified":"2023-12-07T05:08:23","modified_gmt":"2023-12-06T21:08:23","slug":"debian-12-apt-update-gpg-error-no_pubkey","status":"publish","type":"post","link":"https:\/\/www.bohu.net\/blog\/9978\/","title":{"rendered":"Debian 12  apt update GPG error: NO_PUBKEY"},"content":{"rendered":"\n<p>debian 11 \u7248\u672c\u66f4\u65b0 \u5230 12\uff0cupdate\u51fa\u73b0\u4e24\u4e2a\u9519\u8bef\u3002<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-bright-blue-color\">\u2460<\/mark><\/strong>\uff0cHit:5 https:\/\/packages.microsoft.com\/debian\/12\/prod bookworm InRelease<\/p>\n\n\n\n<p>Err:5 https:\/\/packages.microsoft.com\/debian\/12\/prod bookworm InRelease<br>The following signatures couldn&#8217;t be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF<\/p>\n\n\n\n<p>W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https:\/\/packages.microsoft.com\/debian\/12\/prod bookworm InRelease: The following signatures couldn&#8217;t be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-bright-red-color\">\u89e3\u51b3\u529e\u6cd5\uff1a<\/mark><\/strong><\/p>\n\n\n\n<p>1 \u4e0b\u8f7d <a href=\"https:\/\/packages.microsoft.com\/config\/debian\/12\/prod.list\">https:\/\/packages.microsoft.com\/config\/debian\/12\/prod.list<\/a> \u66ff\u6362 \/etc\/apt\/sources.list.d\/microsoft-prod.list<\/p>\n\n\n\n<p>2 \u76f4\u63a5\u4fee\u6539 \/etc\/apt\/sources.list.d\/microsoft-prod.list \u4e3a\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deb &#91;arch=amd64,arm64,armhf signed-by=\/usr\/share\/keyrings\/microsoft-prod.gpg] https:\/\/packages.microsoft.com\/debian\/12\/prod bookworm main\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-bright-blue-color\">\u2461<\/mark><\/strong> Hit:6 https:\/\/packages.sury.org\/php bookworm InRelease<\/p>\n\n\n\n<p>W: https:\/\/packages.sury.org\/php\/dists\/bookworm\/InRelease: Key is stored in legacy trusted.gpg keyring (\/etc\/apt\/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.<br>W: Failed to fetch https:\/\/packages.microsoft.com\/debian\/12\/prod\/dists\/bookworm\/InRelease The following signatures couldn&#8217;t be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF<br>W: Some index files failed to download. They have been ignored, or old ones used instead.<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-bright-red-color\">\u89e3\u51b3\u529e\u6cd5\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/mark><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo wget -O \/etc\/apt\/trusted.gpg.d\/php.gpg https:\/\/packages.sury.org\/php\/apt.gpg<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>debian 11 \u7248\u672c\u66f4\u65b0 \u5230 12\uff0cupdate\u51fa\u73b0\u4e24\u4e2a\u9519\u8bef\u3002 \u2460\uff0cHit:5 https:\/\/packa &hellip; <a href=\"https:\/\/www.bohu.net\/blog\/9978\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cDebian 12  apt update GPG error: NO_PUBKEY\u201d<\/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":[6,10,26,27,29],"tags":[730,728,117,729,734,732,733,731],"class_list":["post-9978","post","type-post","status-publish","format-standard","hentry","category-linux","category-vps","category-26","category-27","category-29","tag-no_pubkey","tag-apt-update","tag-debian","tag-gpg-error","tag-microsoft-prod-gpg","tag-microsoft-prod-list","tag-packages-sury-org-php","tag-trusted-gpg"],"_links":{"self":[{"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/posts\/9978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/comments?post=9978"}],"version-history":[{"count":1,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/posts\/9978\/revisions"}],"predecessor-version":[{"id":9979,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/posts\/9978\/revisions\/9979"}],"wp:attachment":[{"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/media?parent=9978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/categories?post=9978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/tags?post=9978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}