---
title: "Debian5 更新提示公钥错误的解决"
author: "simen_net"
date: "2011-03-08T09:28:07Z"
tags: []
categories: ["操作系统"]
slug: "debian5"
draft: false
lastmod: "2011-03-08T09:33:16Z"
id: 945933
url: "https://simen-net.iteye.com/blog/945933"
---

晃悠了差不多两个月，突然发现Debian6发布，好消息！！！可是突然发现更新Debian5的时候提示公钥错误，错误提示

 

```
W: GPG error: http://mirrors.163.com lenny-proposed-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA
W: GPG error: http://mirrors.163.com lenny/updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA
W: You may want to run apt-get update to correct these problems
```

 

解决办法参考了[http://www.unixaid.info/index.php/unixtecspt/31-botndinst/747-debiannopubkey.html](http://www.unixaid.info/index.php/unixtecspt/31-botndinst/747-debiannopubkey.html)，

 

可是一直出现

```
gpg: requesting key 473041FA from hkp server subkeys.pgp.net
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error
```

 

最终解决办法

 

```
aptitude install debian-archive-keyring
```

 

 

最后强烈建议javaeye在代码里面加个命令的选择，不然每次都只能放到html里面