我是靠谱客的博主 顺心菠萝,最近开发中收集的这篇文章主要介绍【Linux】sudo apt-get update 报错: 由于没有公钥,无法验证下列签名: NO_PUBKEY 3B4FE6ACC0B21F32,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
sudo apt-get update的时候报错找了一堆都是类似的答案又没有解决
W: 无法下载 http://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/bionic-backports/InRelease 由于没有公钥,无法验证下列签名: NO_PUBKEY 3B4FE6ACC0B21F32
W: 无法下载 http://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/bionic-security/InRelease 由于没有公钥,无法验证下列签名: NO_PUBKEY 3B4FE6ACC0B21F32
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
tmp$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.ZagsIvSMDJ/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
gpg: key 3B4FE6ACC0B21F32: public key "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
执行:
sudo apt-get update
最后再一次更新就over了:
获取:12 http://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates/universe Sources [496 kB]
命中:13 https://deb.nodesource.com/node_10.x bionic InRelease
已下载 496 kB,耗时 1秒 (338 kB/s)
正在读取软件包列表... 完成
W: http://mirrors.163.com/docker-ce/linux/ubuntu/dists/bionic/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/bionic/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/bionic-updates/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/bionic-backports/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/bionic-security/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
欢迎关注,转解疑难杂症,哈哈哈~~~,但愿还是不要遇到这些破问题;
最后
以上就是顺心菠萝为你收集整理的【Linux】sudo apt-get update 报错: 由于没有公钥,无法验证下列签名: NO_PUBKEY 3B4FE6ACC0B21F32的全部内容,希望文章能够帮你解决【Linux】sudo apt-get update 报错: 由于没有公钥,无法验证下列签名: NO_PUBKEY 3B4FE6ACC0B21F32所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复