gpt4 book ai didi

git - 无法克隆 repo 。服务器证书验证失败

转载 作者:行者123 更新时间:2023-12-04 22:38:42 32 4
gpt4 key购买 nike

当我尝试通过命令克隆存储库时

git clone https://git.lighttpd.net/mirrors/libev.git
我收到一个错误 fatal: unable to access 'https://git.lighttpd.net/mirrors/libev.git/': server certificate verification failed. CAfile: none CRLfile: none如果设置 GIT_CURL_VERBOSE=1
Cloning into 'libev'...
* Couldn't find host git.lighttpd.net in the .netrc file; using defaults
* Trying 5.9.70.195:443...
* TCP_NODELAY set
* Connected to git.lighttpd.net (5.9.70.195) port 443 (#0)
* found 387 certificates in /etc/ssl/certs
* ALPN, offering h2
* ALPN, offering http/1.1
* SSL connection using TLS1.3 / ECDHE_RSA_AES_256_GCM_SHA384
* server certificate verification failed. CAfile: none CRLfile: none
* Closing connection 0
fatal: unable to access 'https://git.lighttpd.net/mirrors/libev.git/': server certificate verification failed. CAfile: none CRLfile: none
我可以设置 GIT_SSL_NO_VERIFY=1但这并不能解决问题
附言Ubuntu 20.04

最佳答案

正如@kamilcuk 建议的那样,请务必在您的机器上安装证书。

apt install ca-certificates

关于git - 无法克隆 repo 。服务器证书验证失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67534033/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com