Ubuntu换源error:The following signatures couldn’t be verified because the public key is not available

Ubuntu换源后执行sudo apt update后出现错误:

修改方法:
1、 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5523BAEEB01FA116 其中的5523BAEEB01FA116是根据错误提示写的
2、重新执行sudo apt update 即可

注:有时候下载软件时会出现连接不上源,如:Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?可能的原因是source源有问题
修改方法:1、换源
/etc/apt/sources.list 的内容先复制,然后重新将/etc/apt/sources.list 的内容换成阿里或者清华、中科大等的源。
然后执行 sudo apt update
2、 修改/etc/resolv.conf 文件
在里面添加 nameserver 8.8.8.8

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐