Ubuntu 换源出错

可能原因:之前使用了清华的官方源

清华大学开源软件镜像站 | Tsinghua Open Source Mirror

错误提示:

忽略:1 https://mirrors.tuna.tsinghua.edu.cn/[ubuntu](https://so.csdn.net/so/search?q=ubuntu&spm=1001.2101.3001.7020) focal InRelease 
忽略:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates InRelease
忽略:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports InRelease
忽略:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRelease
错误:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal Release  
 Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
错误:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates Release
 Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
错误:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports Release
 Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
错误:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security Release
 Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
正在读取软件包列表... 完成                  
E: 仓库 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

解决方案:换用中科大源(仅作参考)

使用中科大的软件源,Ubuntu版本要选择正确,我选的是20.04版本。如果选错了Ubuntu对应版本,那软件源怎么更新都连不上就是必然的。

Ubuntu or Debian 换源

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值