加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – 为什么apt-get update告诉我运行apt-get update?

发布时间:2020-12-13 18:13:57 所属栏目:Linux 来源:网络整理
导读:所以我继续这样做: # apt-get updateGet:1 http://ftp.us.debian.org etch Release.gpg [1032B] Hit http://ftp.us.debian.org etch Release (...bunch more of this elided...)Hit http://ftp.us.debian.org etch/contrib SourcesFetched 68.8kB in 1s (37
所以我继续这样做:
# apt-get update
Get:1 http://ftp.us.debian.org etch Release.gpg [1032B]                     
Hit http://ftp.us.debian.org etch Release                                        
(...bunch more of this elided...)
Hit http://ftp.us.debian.org etch/contrib Sources
Fetched 68.8kB in 1s (37.4kB/s)
Reading package lists... Done
W: There is no public key available for the following key IDs:
9AA38DCD55BE302B
W: GPG error: http://ftp.us.debian.org etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B
W: You may want to run apt-get update to correct these problems

显然我不能运行apt-get update,因为apt-get要求我运行apt-get update来解决这个问题,这是令人不快的.我该如何纠正?

解决方法

尝试这样做并再次运行apt-get:
apt-key update

apt-key is a program that is used to
manage a keyring of gpg keys for
secure apt. The keyring is kept in the
file /etc/apt/trusted.gpg (not to be
confused with the related but not very
interesting /etc/apt/trustdb.gpg).
apt-key can be used to show the keys
in the keyring,and to add or remove a
key.

有关Debian wiki的更多信息:http://wiki.debian.org/SecureApt

如果这不起作用,请尝试:

gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 9AA38DCD55BE302B
apt-key add /root/.gnupg/pubring.gpg
apt-get update

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读