Chinaunix首页 | 论坛 | 博客
  • 博客访问: 393117
  • 博文数量: 89
  • 博客积分: 3176
  • 博客等级: 中校
  • 技术积分: 1205
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-15 10:08
文章分类

全部博文(89)

文章存档

2011年(17)

2010年(19)

2009年(35)

2008年(18)

分类: LINUX

2009-07-01 13:19:12

#########################
#
#          问题
#
#########################


# 当前OS:debian_64 5.0/lenny,当apt-get update 时报错如下:

W: There is no public key available for the following key IDs:
9AA38DCD55BE302B
W: You may want to run apt-get update to correct these problems

 

#########################
#
#          处理
#
#########################

apt-key update
# 当前有4个keys

gpg: key 2D230C5F: "Debian Archive Automatic Signing Key (2006) <>" not changed
gpg: key 6070D3A1: "Debian Archive Automatic Signing Key (4.0/etch) <>" not changed
gpg: key ADB11277: "Etch Stable Release Key <>" not changed
gpg: key BBE55AB3: "Debian-Volatile Archive Automatic Signing Key (4.0/etch)" not changed
gpg: Total number processed: 4
gpg:              unchanged: 4


# 增加新key
gpg --keyserver wwwkeys.eu.pgp.net --recv-keys  9AA38DCD55BE302B && apt-key add /root/.gnupg/pubring.gpg


# 查看目前系统kyes 增加(5.0/lenny)的key
apt-key list

pub   1024D/2D230C5F 2006-01-03 [expired: 2007-02-07]
uid                  Debian Archive Automatic Signing Key (2006)

pub   1024D/6070D3A1 2006-11-20 [expires: 2009-07-01]
uid                  Debian Archive Automatic Signing Key (4.0/etch)

pub   1024D/ADB11277 2006-09-17
uid                  Etch Stable Release Key

pub   1024D/BBE55AB3 2007-03-31 [expires: 2010-03-30]
uid                  Debian-Volatile Archive Automatic Signing Key (4.0/etch)
sub   2048g/36CA98F3 2007-03-31 [expires: 2010-03-30]

pub   4096R/55BE302B 2009-01-27 [expires: 2012-12-31]
uid                  Debian Archive Automatic Signing Key (5.0/lenny)


# 再次升级 无报错,升级成功。
apt-get update

 


#########################
#
#        key过期
#
#########################

# 删除久keys
apt-key list
apt-key del 55BE302B
apt-key del BBE55AB3

# 再删除删除 debian-archive-keyring 包
dpkg –-purge debian-archive-keyring

# 再重新安装
apt-get install debian-archive-keyring

 

 

 

阅读(1718) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~