文章内容
2022/2/25 19:09:06,作 者: 黄兵
Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
最近在更新系统的时候出现了如下提示:
W: GPG error: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D68FA50FEA312927
W: The repository 'http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
出现问题的原因:
可能上面的库由于时间久远,此类存储库的数据无法进行身份验证,因此使用起来存在潜在危险。
解决方案:
执行如下命令:
sudo rm -rf /var/lib/apt/lists/* sudo rm -rf /etc/apt/sources.list.d/* sudo apt-get update
同时我们也可以查看 sources.list 文件看看是否有源存在问题:
cat /etc/apt/sources.list
将存在问题的源删除。
参考资料:
评论列表