TUNA 源Certificate verification failed: The certificate is NOT trusted异常解决

使用清华tuna源时,报错

Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification.

估计是TUNA的https证书机构系统验证不信任导致,翻了十几篇解决方案,有“apt install ca-certificates”【。。。apt已经报错了,这是要怎样】,有“add [trusted=yes] in the sources.list” 这个并不能绕过证书验证,存在bug无法覆盖signature check结果。

一劳永逸的办法就是直接跳过证书验证。步骤如下:

创建/etc/apt/apt.conf.d/99verify-peer.conf文件写入以下配置

vim /etc/apt/apt.conf.d/99verify-peer.conf
Acquire { https::Verify-Peer false }

apt update 无报错

参考

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872543
https://manpages.debian.org/testing/apt/apt-transport-https.1.en.html

Err:1 https://mirrors.ustc.edu.cn/ros2/ubuntu jammy/main arm64 ros-humble-rosapi-msgs arm64 2.0.4-1jammy.20251120.201247 Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate. Could not handshake: Error in the certificate verification. [IP: 202.141.160.110 443] Err:2 https://mirrors.ustc.edu.cn/ros2/ubuntu jammy/main arm64 ros-humble-rosbridge-library arm64 2.0.4-1jammy.20251120.202735 Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate. Could not handshake: Error in the certificate verification. [IP: 202.141.160.110 443] Err:3 https://mirrors.ustc.edu.cn/ros2/ubuntu jammy/main arm64 ros-humble-rosapi arm64 2.0.4-1jammy.20251120.203312 Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate. Could not handshake: Error in the certificate verification. [IP: 202.141.160.110 443] Err:4 https://mirrors.ustc.edu.cn/ros2/ubuntu jammy/main arm64 ros-humble-rosbridge-msgs arm64 2.0.4-1jammy.20251120.200818 Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate. Could not handshake: Error in the certificate verification. [IP: 202.141.160.110 443] Err:5 https://mirrors.ustc.edu.cn/ros2/ubuntu jammy/main arm64 ros-humble-rosbridge-server arm64 2.0.4-1jammy.20251120.203823 Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate. Could not handshake: Error in the certificate verification. [IP: 202.141.160.110 443] E: Failed to fetch https://mirrors.ustc.edu.cn/ros2/ubuntu/pool/main/r/ros-humble-rosapi-msgs/ros-humble-rosapi-msgs_2.0.4-1jammy.20251120.201247_arm64.deb Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate. Could not handshake: Error in the certificate verification. [IP: 202.141.160.110 443] E: Failed to fetch https://mirrors.ustc.edu.cn/ros2/ubuntu/pool/main/r/ros-humble-rosbridge-library/ros-humble-rosbridge-library_2.0.4-1jammy.20251120.202735_arm64.deb Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate. Could not handshake: Error in the certificate verification. [IP: 202.141.160.110 443] E: Failed to fetch https://mirrors.ustc.edu.cn/ros2/ubuntu/pool/main/r/ros-humble-rosapi/ros-humble-rosapi_2.0.4-1jammy.20251120.203312_arm64.deb Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate. Could not handshake: Error in the certificate verification. [IP: 202.141.160.110 443] E: Failed to fetch https://mirrors.ustc.edu.cn/ros2/ubuntu/pool/main/r/ros-humble-rosbridge-msgs/ros-humble-rosbridge-msgs_2.0.4-1jammy.20251120.200818_arm64.deb Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate. Could not handshake: Error in the certificate verification. [IP: 202.141.160.110 443] E: Failed to fetch https://mirrors.ustc.edu.cn/ros2/ubuntu/pool/main/r/ros-humble-rosbridge-server/ros-humble-rosbridge-server_2.0.4-1jammy.20251120.203823_arm64.deb Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate. Could not handshake: Error in the certificate verification. [IP: 202.141.160.110 443] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
最新发布
12-03
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值