apt-get清华源报错certificate failed临时解决方案
本帖最后由 易学智能 于 2021-10-29 22:23 编辑由于清华源的证书问题,apt-get无法使用tsinghua源进行更新与安装。
问题表现如下:
解决方案:
换源,例如,换用aliyun源。
操作如下:
1、在命令行输入sudo gedit /etc/apt/sources.list
2、在打开的gedit窗口,将sources.list的原有内容(采用清华源),全部删除,然后填入以下内容。
#deb包
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# 源码
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
##测试版源
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
# Canonical 合作伙伴和附加
deb http://archive.canonical.com/ubuntu/ xenial partner
deb http://extras.ubuntu.com/ubuntu/ xenial main
相关网页:https://www.jianshu.com/p/7b39bcf0ffa7
3. 按ctrl+S保存gedit编辑结果。然后,再次运行sudo apt-get update,OK。
页:
[1]