sudo apt-get updateW: 仓库 “https://mirrors.tuna.tsinghua....” 没有 Release 文件。

使用sudo apt-get update时,报如下错误

W: 仓库 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial Release” 没有 Release 文件。 
N: 无法认证来自该源的数据,所以使用它会带来潜在风险。

解决方法:
更新软件源,通过使用sudo gedit /etc/apt/sources.list命令对软件源进行修改,我这里改成了阿里云镜像

deb http://mirrors.aliyun.com/ubuntu bionic main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu bionic-updates main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu bionic-security main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu bionic-proposed main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu bionic-backports main multiverse restricted universe

然后再次输入sudo apt-get update进行验证,成功了

主要是记录一下自己平时遇到的问题,和大家分享一下
如有侵犯,请联系我

点个赞支持一下吧

猜你喜欢

转载自blog.csdn.net/Anne332/article/details/121282607