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

编程入门 行业动态 更新时间:2024-10-12 03:19:05

TUNA 源Certificate verification failed: The certificate is NOT trusted<a href=https://www.elefans.com/category/jswz/34/1771210.html style=异常解决"/>

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 无报错

参考

.cgi?bug=872543
.1.en.html

更多推荐

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

本文发布于:2024-03-14 02:10:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1735393.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:异常   verification   Certificate   TUNA   trusted

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!