使用apt-get时出现 “no public key available” 的解决方法

简介: 在 Debian 和 Ubuntu 下运行 apt-get update 刷新更新源的时候,经常遇到 “There is no public key available for the following key IDs” 的问题,具体表现为以下错误提示: W:There is no publi.

在 Debian 和 Ubuntu 下运行 apt-get update 刷新更新源的时候,经常遇到 “There is no public key available for the following key IDs” 的问题,具体表现为以下错误提示:

W:There is no public key available for the following key IDs: 3B4FE6ACC0B21F32,
W:There is no public key available for the following key IDs: 3B4FE6ACC0B21F32,

解决方法如下,

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32

把 3B4FE6ACC0B21F32 替换为你出现问题的IDs。另外,如果有如下问题,是因为加入了 natty-backports 源,删掉即可:

W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/natty-backports/main/source/Sources 404 Not Found [IP: 91.189.91.13 80],
W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/natty-backports/restricted/source/Sources 404 Not Found [IP: 91.189.91.13 80],
W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/natty-backports/universe/source/Sources 404 Not Found [IP: 91.189.91.13 80],
W:Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/natty-backports/multiverse/source/Sources 404 Not Found [IP: 91.189.91.13 80],

运行如下命令:

sudo sed -i '/natty\-backports/d' /etc/apt/sources.list{,.d/*}

原文发布时间:2017-11-07
本文来自云栖社区合作伙伴“ Debian社区”,了解相关信息可以关注“ Debian社区”。
相关文章
|
5月前
|
关系型数据库 MySQL 数据库
连接MySQL时报错:Public Key Retrieval is not allowed的解决方法
连接MySQL时报错:Public Key Retrieval is not allowed的解决方法
165 1
|
监控 开发工具
Zabbix自定义KEY报错ZBX_NOTSUPPORTED: Unsupported item key.
[root@zabbix bin]# ./zabbix_get -s 192.217.24.47 -k jump-server ZBX_NOTSUPPORTED: Unsupported item key.
9513 0
debian samba出错:set_variable_helper(yes ): value is not boolean!
debian samba出错:set_variable_helper(yes ): value is not boolean!
160 0
|
Android开发
INSTALL_FAILED_TEST_ONLY的解决办法
INSTALL_FAILED_TEST_ONLY的解决办法
199 0
|
Linux 网络安全
Linux下的github 添加秘钥出错:Key is invalid. You must supply a key in OpenSSH public key for
Linux下的github 添加秘钥出错:Key is invalid. You must supply a key in OpenSSH public key for
Linux下的github 添加秘钥出错:Key is invalid. You must supply a key in OpenSSH public key for
|
Linux 网络虚拟化
ROS安装遇到 sudo rosdep init 与rosdep update出现error loading sources list
ROS安装遇到 sudo rosdep init 与rosdep update出现error loading sources list
227 0
ROS安装遇到 sudo rosdep init 与rosdep update出现error loading sources list
|
Ubuntu 开发工具 数据安全/隐私保护
Ubuntu “readonly” option is set(add to override)错误
Ubuntu “readonly” option is set(add to override)错误
219 0
|
关系型数据库 MySQL 数据安全/隐私保护
MySQL 8 Public Key Retrieval is not allowed 错误的解决方法
MySQL 8 Public Key Retrieval is not allowed 错误的解决方法
976 0
MySQL 8 Public Key Retrieval is not allowed 错误的解决方法
|
Python
rosdep init 和rosdep update的解决方法,亲测有效
rosdep init 和rosdep update的解决方法,亲测有效
266 0
rosdep init 和rosdep update的解决方法,亲测有效

热门文章

最新文章