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
    评论
Ubuntu 16.04换源是为了加快软件包的下载和更新速度。当我们需要安装或者更新某些包时,如果使用默认的国外源,速度会异常慢。因此,我们可以考虑成国内的源,如清华大学提供的源,以提高下载速度。 下面是Ubuntu 16.04换源的步骤: 1. 找到系统中保存源网址的文件。该文件通常是/etc/apt/sources.list。 2. 在修改源网址之前,建议先备份该文件,以防止修改出错。 3. 使用文本编辑器打开该文件,并将其中的源网址修改为清华大学提供的源网址,即http://mirrors.tuna.tsinghua.edu.cn/ubuntu/。 4. 保存文件并关闭编辑器。 5. 执行sudo apt update命令来更新软件包信息。 6. 执行sudo apt upgrade命令来升级已安装的软件包。 通过以上步骤,您就可以成功地将Ubuntu 16.04的源更为清华大学提供的源,从而加快软件下载和更新的速度。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [ubuntu 16.04 更国内源](https://blog.csdn.net/qq_40301372/article/details/108622277)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [ubuntu 16换源方法](https://blog.csdn.net/qq_43438171/article/details/118854303)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值