关于Debian中apt-get时出现NO_PUBKEY的解决方法

# vim /etc/apt/sources.list
# apt-get update

反馈:

Get:1 http://ftp.jp.debian.org squeeze Release.gpg [1672 B]
Ign http://ftp.jp.debian.org/debian/ squeeze/contrib Translation-en
Ign http://ftp.jp.debian.org/debian/ squeeze/main Translation-en
Ign http://ftp.jp.debian.org/debian/ squeeze/non-free Translation-en
Get:2 http://ftp.jp.debian.org squeeze-updates Release.gpg [836 B]
Ign http://ftp.jp.debian.org/debian/ squeeze-updates/contrib Translation-en
Ign http://ftp.jp.debian.org/debian/ squeeze-updates/main Translation-en
Ign http://ftp.jp.debian.org/debian/ squeeze-updates/non-free Translation-en
Get:3 http://ftp.jp.debian.org squeeze-proposed-updates Release.gpg [836 B]
Get:4 http://ftp.jp.debian.org/debian/ squeeze-proposed-updates/contrib Translation-en [14 B]
Get:5 http://ftp.jp.debian.org/debian/ squeeze-proposed-updates/main Translation-en [33.3 kB]
Get:6 http://ftp.jp.debian.org/debian/ squeeze-proposed-updates/non-free Translation-en [14 B]
Get:7 http://ftp.jp.debian.org squeeze Release [99.8 kB]
Get:8 http://ftp.jp.debian.org squeeze-updates Release [113 kB]
Get:9 http://ftp.jp.debian.org squeeze-proposed-updates Release [148 kB]
Ign http://ftp.jp.debian.org squeeze-updates Release
Ign http://ftp.jp.debian.org squeeze-proposed-updates Release
Get:10 http://ftp.jp.debian.org squeeze/main Sources [4541 kB]
Get:11 http://ftp.jp.debian.org squeeze/contrib Sources [40.9 kB]
Get:12 http://ftp.jp.debian.org squeeze/non-free Sources [73.2 kB]
Get:13 http://ftp.jp.debian.org squeeze/main amd64 Packages [6538 kB]
Get:14 http://ftp.jp.debian.org squeeze/contrib amd64 Packages [53.0 kB]
Get:15 http://ftp.jp.debian.org squeeze/non-free amd64 Packages [102 kB]
Get:16 http://ftp.jp.debian.org squeeze-updates/contrib Sources [14 B]
Get:17 http://ftp.jp.debian.org squeeze-updates/non-free Sources [14 B]
Get:18 http://ftp.jp.debian.org squeeze-updates/main amd64 Packages [5118 B]
Get:19 http://ftp.jp.debian.org squeeze-updates/contrib amd64 Packages [14 B]
Get:20 http://ftp.jp.debian.org squeeze-updates/non-free amd64 Packages [14 B]
Get:21 http://ftp.jp.debian.org squeeze-proposed-updates/main Sources [27.1 kB]
Get:22 http://ftp.jp.debian.org squeeze-proposed-updates/contrib Sources [14 B]
Get:23 http://ftp.jp.debian.org squeeze-proposed-updates/non-free Sources [14 B]
Get:24 http://ftp.jp.debian.org squeeze-proposed-updates/main amd64 Packages [52.3 kB]
Get:25 http://ftp.jp.debian.org squeeze-proposed-updates/contrib amd64 Packages [14 B]
Get:26 http://ftp.jp.debian.org squeeze-proposed-updates/non-free amd64 Packages [14 B]
Fetched 11.8 MB in 20s (575 kB/s)
Reading package lists... Done
W: GPG error: http://ftp.jp.debian.org squeeze-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553
W: GPG error: http://ftp.jp.debian.org squeeze-proposed-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553

解决方法:

# apt-get install debian-keyring debian-archive-keyring

# apt-key update
反馈:

gpg: key F42584E6: "Lenny Stable Release Key <debian-release@lists.debian.org>" not changed
gpg: key 55BE302B: "Debian Archive Automatic Signing Key (5.0/lenny) <ftpmaster@debian.org>" not changed
gpg: key 6D849617: "Debian-Volatile Archive Automatic Signing Key (5.0/lenny)" not changed
gpg: key B98321F9: "Squeeze Stable Release Key <debian-release@lists.debian.org>" not changed
gpg: key 473041FA: "Debian Archive Automatic Signing Key (6.0/squeeze) <ftpmaster@debian.org>" not changed
gpg: key 46925553: "Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>" not changed
gpg: key 65FFB764: "Wheezy Stable Release Key <debian-release@lists.debian.org>" not changed
gpg: Total number processed: 7
gpg:              unchanged: 7

问题解决。

或者

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553

也可以解决问题。


©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页