ubuntu20.04换清华源后不能更新、https更新失败
2021/12/27 7:08:30
本文主要是介绍ubuntu20.04换清华源后不能更新、https更新失败,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
ubuntu20.04换清华源后不能更新、更新失败、Certificate verification failed
- 原因与官方解决方案:
- 快速解决问题
- 附录:问题复现:
务必注意时效性!
日期:2021.12.26
原因与官方解决方案:
https://github.com/tuna/issues/issues/1342
快速解决问题
- 换回默认的官方源
- 更新/安装
ca-certificates
ml@ml-virtual-machine:/etc/apt$ sudo apt install ca-certificates Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: ca-certificates ... done.
- 然后换上清华源,不出意外的话就能用了
ml@ml-virtual-machine:/etc/apt$ sudo cp sources.list.th.bak sources.list ml@ml-virtual-machine:/etc/apt$ sudo apt update Get:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal InRelease [265 kB] Get:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates InRelease [114 kB] ... 149 packages can be upgraded. Run 'apt list --upgradable' to see them.
附录:问题复现:
- 换清华源
- apt update
- BOOM!
ml@ml-virtual-machine:/etc/apt$ sudo apt update Ign:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal InRelease Ign:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates InRelease Ign:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports InRelease Ign:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRelease Err: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] Err: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] Err: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] Err: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] Reading package lists... Done E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
这篇关于ubuntu20.04换清华源后不能更新、https更新失败的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-05-15鸿蒙生态设备数量超8亿台
- 2024-05-13TiDB + ES:转转业财系统亿级数据存储优化实践
- 2024-05-09“2024鸿蒙零基础快速实战-仿抖音App开发(ArkTS版)”实战课程已上线
- 2024-05-09聊聊如何通过arthas-tunnel-server来远程管理所有需要arthas监控的应用
- 2024-05-09log4j2这么配就对了
- 2024-05-09nginx修改Content-Type
- 2024-05-09Redis多数据源,看这篇就够了
- 2024-05-09Google Chrome驱动程序 124.0.6367.62(正式版本)去哪下载?
- 2024-05-09有没有大佬知道这种数据应该怎么抓取呀?
- 2024-05-09这种运行结果里的10.100000001,怎么能最快改成10.1?