<?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>GPG 錯誤 &#8211; 記下來</title>
	<atom:link href="https://noter.tw/tag/gpg-%E9%8C%AF%E8%AA%A4/feed/" rel="self" type="application/rss+xml" />
	<link>https://noter.tw</link>
	<description>一路上踩到的坑、遇到的問題，一點一滴記下來，希望能幫助到需要的人~</description>
	<lastBuildDate>Wed, 18 Jan 2023 09:36:27 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.3</generator>

<image>
	<url>https://noter.tw/wp-content/uploads/cropped-old-1130742_1920-1-32x32.jpg</url>
	<title>GPG 錯誤 &#8211; 記下來</title>
	<link>https://noter.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>W: GPG error: 由於無法取得它們的公鑰，以下簽章無法進行驗證： NO_PUBKEY 4EB27DB2A3B88B8B</title>
		<link>https://noter.tw/10525/w-gpg-error-%e7%94%b1%e6%96%bc%e7%84%a1%e6%b3%95%e5%8f%96%e5%be%97%e5%ae%83%e5%80%91%e7%9a%84%e5%85%ac%e9%91%b0%ef%bc%8c%e4%bb%a5%e4%b8%8b%e7%b0%bd%e7%ab%a0%e7%84%a1%e6%b3%95%e9%80%b2%e8%a1%8c/</link>
					<comments>https://noter.tw/10525/w-gpg-error-%e7%94%b1%e6%96%bc%e7%84%a1%e6%b3%95%e5%8f%96%e5%be%97%e5%ae%83%e5%80%91%e7%9a%84%e5%85%ac%e9%91%b0%ef%bc%8c%e4%bb%a5%e4%b8%8b%e7%b0%bd%e7%ab%a0%e7%84%a1%e6%b3%95%e9%80%b2%e8%a1%8c/#respond</comments>
		
		<dc:creator><![CDATA[黃小蛙]]></dc:creator>
		<pubDate>Tue, 22 Nov 2022 12:37:59 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[is not signed]]></category>
		<category><![CDATA[更新錯誤解決]]></category>
		<category><![CDATA[GPG 錯誤]]></category>
		<category><![CDATA[Linux 安全性]]></category>
		<category><![CDATA[公鑰驗證]]></category>
		<category><![CDATA[安裝軟體錯誤解決]]></category>
		<category><![CDATA[NO_PUBKEY 4EB27DB2A3B88B8B]]></category>
		<category><![CDATA[數位簽章]]></category>
		<category><![CDATA[加密安全]]></category>
		<category><![CDATA[系統管理]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 指令]]></category>
		<category><![CDATA[GPG error]]></category>
		<category><![CDATA[Linux 系統]]></category>
		<category><![CDATA[NO_PUBKEY]]></category>
		<category><![CDATA[軟體更新]]></category>
		<category><![CDATA[以下簽章無法進行驗證]]></category>
		<category><![CDATA[套件管理]]></category>
		<guid isPermaLink="false">https://noter.tw/?p=10525</guid>

					<description><![CDATA[<p>小蛙有一台最早期的 VPS 已經不讓人重裝新版本作業系統，小蛙異想天開想直接從系統裡安裝升級，「事情絕對沒有憨蛙想得那麼簡單」，升級升到一半就哭了 ... </p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/10525/w-gpg-error-%e7%94%b1%e6%96%bc%e7%84%a1%e6%b3%95%e5%8f%96%e5%be%97%e5%ae%83%e5%80%91%e7%9a%84%e5%85%ac%e9%91%b0%ef%bc%8c%e4%bb%a5%e4%b8%8b%e7%b0%bd%e7%ab%a0%e7%84%a1%e6%b3%95%e9%80%b2%e8%a1%8c/" data-wpel-link="internal">W: GPG error: 由於無法取得它們的公鑰，以下簽章無法進行驗證： NO_PUBKEY 4EB27DB2A3B88B8B</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>小蛙有一台最早期的 VPS 已經不讓人重裝新版本作業系統，小蛙異想天開想直接從系統裡安裝升級，「事情絕對沒有憨蛙想得那麼簡單」，升級升到一半就哭了 &#8230; </p>



<span id="more-10525"></span>



<p>升到一半狂噴錯，但已回不了頭，之後下 <code>apt update</code> 都會噴以下錯誤</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">W: GPG error: http://dl.google.com/linux/chrome/deb stable InRelease: 由於無法取得它們的公鑰，以下簽章無法進行驗證： NO_PUBKEY 4EB27DB2A3B88B8B
W: The repository 'http://dl.google.com/linux/chrome/deb stable InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.</pre>



<p>根據這篇文章 <a href="https://askubuntu.com/questions/131601/gpg-error-release-the-following-signatures-were-invalid-badsig" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">GPG error: Release: The following signatures were invalid: BADSIG<span class="wpel-icon wpel-image wpel-icon-6"></span></a> 的方法嘗試回復 apt-get</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo apt-get clean
sudo mv /var/lib/apt/lists /tmp
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update</pre>



<p>錯誤訊息變成這個</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com/linux/chrome/deb stable InRelease: 由於無法取得它們的公鑰，以下簽章無法進行驗證： NO_PUBKEY 4EB27DB2A3B88B8B
W: 無法取得 http://dl.google.com/linux/chrome/deb/dists/stable/InRelease，由於無法取得它們的公鑰，以下簽章無法進行驗證： NO_PUBKEY 4EB27DB2A3B88B8B
W: Some index files failed to download. They have been ignored, or old ones used instead.</pre>



<p>看起來好像是因為公鑰過期，查了該討論串裡的其他方法，發現下面這指令像是可以更新公鑰，死馬當活馬醫的心態試試看居然成功了！</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com</pre>



<p> 可喜可賀～！但 VPS 還是沒辦法升上去 >&lt; (殘念)，不過至少讓 apt-get 恢復正常了！</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/10525/w-gpg-error-%e7%94%b1%e6%96%bc%e7%84%a1%e6%b3%95%e5%8f%96%e5%be%97%e5%ae%83%e5%80%91%e7%9a%84%e5%85%ac%e9%91%b0%ef%bc%8c%e4%bb%a5%e4%b8%8b%e7%b0%bd%e7%ab%a0%e7%84%a1%e6%b3%95%e9%80%b2%e8%a1%8c/" data-wpel-link="internal">W: GPG error: 由於無法取得它們的公鑰，以下簽章無法進行驗證： NO_PUBKEY 4EB27DB2A3B88B8B</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://noter.tw/10525/w-gpg-error-%e7%94%b1%e6%96%bc%e7%84%a1%e6%b3%95%e5%8f%96%e5%be%97%e5%ae%83%e5%80%91%e7%9a%84%e5%85%ac%e9%91%b0%ef%bc%8c%e4%bb%a5%e4%b8%8b%e7%b0%bd%e7%ab%a0%e7%84%a1%e6%b3%95%e9%80%b2%e8%a1%8c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
