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 换源


如果本文帮助到了你,帮我点个广告可以咩(o′┏▽┓`o)


文章作者: Anubis
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Anubis !
评论
  目录