apt-get update failed because certificate verification failed because handshake failed on nodesource

释放双眼,带上耳机,听听看~!

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

可以临时解决

给TA买糖
共{{data.count}}人
人已赞赏
报错锦集

Python离线安装第三方包

2022-9-13 18:29:12

报错锦集

ERROR: Failed to create CA certificate for self-signing. If the error is "unknown option -addext", update your openssl version or deploy VPA from the vpa-release-0.8 branch.

2022-9-22 19:45:19

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索