释放双眼,带上耳机,听听看~!
🤖 由 ChatGPT 生成的文章摘要
apt 源错误日志如下
root@iZel501oq4f0e6yguk6n5eZ:/etc/apt# apt update
Ign:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial InRelease
Ign:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports InRelease
Ign:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-proposed InRelease
Ign:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security InRelease
Ign:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates InRelease
Err:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial 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 xenial-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 xenial-proposed 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:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-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]
Err:10 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-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]
Reading package lists... Done
E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial 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 xenial-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 xenial-proposed 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 xenial-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.
E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-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.
解决方法:
- 编辑apt配置文件,通过添加暂时禁用证书验证
vi /etc/apt/apt.conf.d/90cloud-init-pipelining
Acquire { https::Verify-Peer false }
执行
运行apt update以获取新的 ca 证书信息
apt update
可以临时解决