<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[『AskWan』]]></title> 
<link>http://www.askwan.com/index.php</link> 
<description><![CDATA[Related About My Life,Unix,Linux,System Architecture,Mysql,PostgreSQL,Oracle Etc ]]></description> 
<language>en-US</language> 
<copyright><![CDATA[『AskWan』]]></copyright>
<item>
<link>http://www.askwan.com/post/175/</link>
<title><![CDATA[There is no public key available for the following key IDs 问题]]></title> 
<author>askwan &lt;askwan@yahoo.cn&gt;</author>
<category><![CDATA[Oprating System ]]></category>
<pubDate>Mon, 08 Jun 2009 15:53:55 +0000</pubDate> 
<guid>http://www.askwan.com/post/175/</guid> 
<description>
<![CDATA[ 
	OS: debian 4.0 etch<br/>此问题比较普遍 故记录之 且供参考<br/>一般都是在apt-get update 后出错：<br/><div class="code">W: There is no public key available for the following key IDs:<br/>9AA38DCD55BE302B<br/>W: You may want to run apt-get update to correct these problems</div><br/>按照提示 运行apt-get&nbsp;&nbsp;update这个指令 很遗憾 无论运行多少次 都无济于事 <br/><br/>为演示这一过程 先下apt-key指令 import当前的keys<br/># apt-key update<br/><div class="code">gpg: key 2D230C5F: &quot;Debian Archive Automatic Signing Key (2006) &lt;ftpmaster@debian.org&gt;&quot; not changed<br/>gpg: key 6070D3A1: &quot;Debian Archive Automatic Signing Key (4.0/etch) &lt;ftpmaster@debian.org&gt;&quot; not changed<br/>gpg: key ADB11277: &quot;Etch Stable Release Key &lt;debian-release@lists.debian.org&gt;&quot; not changed<br/>gpg: key BBE55AB3: &quot;Debian-Volatile Archive Automatic Signing Key (4.0/etch)&quot; not changed<br/>gpg: Total number processed: 4<br/>gpg:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unchanged: 4</div><br/><br/>当前系统有4个keys<br/><br/>增加上面列出的key<br/>gpg --keyserver wwwkeys.eu.pgp.net --recv-keys&nbsp;&nbsp;<span style="color: #DC143C;">9AA38DCD55BE302B</span> && apt-key add /root/.gnupg/pubring.gpg<br/><br/>再来看看系统中的trusted gpg keys信息<br/># apt-key list<br/>/etc/apt/trusted.gpg<br/>--------------------<br/>pub&nbsp;&nbsp; 1024D/2D230C5F 2006-01-03 [expired: 2007-02-07]<br/>uid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Debian Archive Automatic Signing Key (2006) <ftpmaster@debian.org><br/><br/>pub&nbsp;&nbsp; 1024D/6070D3A1 2006-11-20 [expires: 2009-07-01]<br/>uid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Debian Archive Automatic Signing Key (4.0/etch) <ftpmaster@debian.org><br/><br/>pub&nbsp;&nbsp; 1024D/ADB11277 2006-09-17<br/>uid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Etch Stable Release Key <debian-release@lists.debian.org><br/><br/>pub&nbsp;&nbsp; 1024D/BBE55AB3 2007-03-31 [expires: 2010-03-30]<br/>uid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Debian-Volatile Archive Automatic Signing Key (4.0/etch)<br/>sub&nbsp;&nbsp; 2048g/36CA98F3 2007-03-31 [expires: 2010-03-30]<br/><br/><span style="color: #FF0000;">pub&nbsp;&nbsp; 4096R/55BE302B 2009-01-27 [expires: 2012-12-31]</span><br/>uid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Debian Archive Automatic Signing Key (5.0/lenny) <ftpmaster@debian.org><br/><br/>OK 5个 最后一行正是刚才加入的<br/>再次apt-get update 就应该没有问题了<br/><br/>#apt-get update <br/><div class="code">Get:1 http://security.debian.org etch/updates Release.gpg &#91;1032B&#93;<br/>Hit http://security.debian.org etch/updates Release<br/>Ign http://security.debian.org etch/updates/main Packages/DiffIndex<br/>Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex<br/>Ign http://security.debian.org etch/updates/main Sources/DiffIndex<br/>Ign http://security.debian.org etch/updates/contrib Sources/DiffIndex<br/>Hit http://security.debian.org etch/updates/main Packages<br/>Hit http://security.debian.org etch/updates/contrib Packages<br/>Hit http://security.debian.org etch/updates/main Sources<br/>Hit http://security.debian.org etch/updates/contrib Sources<br/>Fetched 1B in 2s (0B/s)&nbsp;&nbsp;<br/>Reading package lists... Done</div><br/><br/>还有一种情况就是 key过期的问题 那么这时候可以一个个先删除系统中的key<br/>比如 <br/>apt-key list <br/>apt-key del 55BE302B<br/>apt-key del BBE55AB3<br/>...<br/>然后删除debian-archive-keyring包<br/>dpkg –purge debian-archive-keyring<br/>再次重新安装<br/>apt-get install debian-archive-keyring<br/>基本上都能解决这个问题<br/><br/>---------------END---------------<br/><br/>Tags - <a href="http://www.askwan.com/tags/debian/" rel="tag">debian</a> , <a href="http://www.askwan.com/tags/public/" rel="tag">public</a> , <a href="http://www.askwan.com/tags/key/" rel="tag">key</a>
]]>
</description>
</item><item>
<link>http://www.askwan.com/post/175/#blogcomment48</link>
<title><![CDATA[[Comments] There is no public key available for the following key IDs 问题]]></title> 
<author>skype &lt;user@domain.com&gt;</author>
<category><![CDATA[Comments]]></category>
<pubDate>Sat, 13 Jun 2009 12:53:03 +0000</pubDate> 
<guid>http://www.askwan.com/post/175/#blogcomment48</guid> 
<description>
<![CDATA[ 
	多谢老大&nbsp;&nbsp;！
]]>
</description>
</item>
</channel>
</rss>