Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1522905
  • 博文数量: 290
  • 博客积分: 3468
  • 博客等级: 中校
  • 技术积分: 3461
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-28 22:21
文章分类

全部博文(290)

文章存档

2016年(13)

2015年(3)

2014年(42)

2013年(67)

2012年(90)

2011年(75)

分类: 系统运维

2011-07-20 10:50:11

我这里搭的是 针以龙芯的mipsel 构架的

系统环境: ubuntu10.04或debian5/6
# apt-get install debmirror
# debmirror -p -v -a mipsel -h ftp.cn.debian.org -e http -d lenny,squeeze --ignore-release-gpg --ignore-missing-release /home/loongson/debian/

出错:
gpgv: Can't check signature: public key not found
gpgv: Signature made Sat 05 Feb 2011 08:06:19 PM CST using DSA key ID F42584E6
[GNUPG:] ERRSIG 4D270D06F42584E6 17 2 00 1296907579 9
[GNUPG:] NO_PUBKEY 4D270D06F42584E6

解决:原因缺少debian 密钥


For reference, the old key is:

  pub   4096R/55BE302B 2009-01-27 [expires: 2012-12-31]
        Key fingerprint = 150C 8614 919D 8446 E01E  83AF 9AA3 8DCD 55BE 302B
  uid                  Debian Archive Automatic Signing Key (5.0/lenny)

and the new one:

  pub   4096R/473041FA 2010-08-27 [expires: 2018-03-05]
        Key fingerprint = 9FED 2BCB DCD2 9CDF 7626  78CB AED4 B06F 4730 41FA
  uid                  Debian Archive Automatic Signing Key (6.0/squeeze)
根据debian 网站公布的密钥,将其添加即可
# gpg --keyserver keys.gnupg.net --recv-keys 55BE302B; gpg --export 55BE302B | apt-key add -
# gpg --keyserver keys.gnupg.net --recv-keys 473041FA; gpg --export 473041FA | apt-key add -

# debmirror -p -v -a mipsel -h ftp.cn.debian.org -e http -d lenny,squeeze --ignore-release-gpg —ignore-missing-release /home/loongson/debian/

在添加完上面两个密钥后,中途还会提示少密钥,将其添加就好可以了,提示如下:
gpgv: Signature made Sat 05 Feb 2011 08:06:19 PM CST using DSA key ID F42584E6
gpgv: Signature made Sat 05 Feb 2011 08:06:19 PM CST using DSA key ID B98321F9

# gpg --keyserver keys.gnupg.net --recv-keys F42584E6; gpg --export F42584E6 | apt-key add -
# gpg --keyserver keys.gnupg.net --recv-keys B98321F9; gpg --export B98321F9 | apt-key add -

查看已添加的密钥
# gpg --list-keys
/root/.gnupg/pubring.gpg
------------------------
pub   4096R/B98321F9 2010-08-07 [expires: 2017-08-05]
uid                  Squeeze Stable Release Key

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

pub   4096R/473041FA 2010-08-27 [expires: 2018-03-05]
uid                  Debian Archive Automatic Signing Key (6.0/squeeze)

pub   1024D/F42584E6 2008-04-06 [expires: 2012-05-15]
uid                  Lenny Stable Release Key

哈哈,接下的就是漫长的同步过程,终于在一周的时间内同步完了两个版本,占据了90G 的硬盘.

2011-07-20

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