首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Git克隆:致命:无法访问'https://github.com/google-coral/pycoral.git/':服务器证书验证失败。CAfile: none CRLfile: none

Git克隆:致命:无法访问'https://github.com/google-coral/pycoral.git/':服务器证书验证失败。CAfile: none CRLfile: none
EN

Stack Overflow用户
提问于 2021-06-22 02:18:02
回答 1查看 1.3K关注 0票数 1

我按照教程(https://coral.ai/docs/dev-board/get-started/#run-pycoral)设置了边缘tpu开发板,并能够通过MDT连接到板的外壳。当我试图克隆回购程序时,我看到了以下错误消息:

代码语言:javascript
复制
mendel@mocha-zebra:~$ git clone https://github.com/google-coral/pycoral.git
Cloning into 'pycoral'...
fatal: unable to access 'https://github.com/google-coral/pycoral.git/': server certificate verification failed. CAfile: none CRLfile: none

有人能帮忙吗?谢谢!

我曾经做过的事:

1.更新CA证书

代码语言:javascript
复制
mendel@mocha-zebra:~$ sudo apt-get install apt-transport-https ca-certificates -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ca-certificates is already the newest version (20190110).
apt-transport-https is already the newest version (1.8.2.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
代码语言:javascript
复制
mendel@mocha-zebra:~$ sudo update-ca-certificates
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.

2.获取证书

代码语言:javascript
复制
openssl s_client -showcerts -servername git.mycompany.com -connect git.mycompany.com:443 </dev/null 2>/dev/null | sed -n -e '/BEGIN\ CERTIFICATE/,/END\ CERTIFICATE/ p'  > git-mycompany-com.pem

3.向证书列表添加

代码语言:javascript
复制
cat git-mycompany-com.pem | sudo tee -a /etc/ssl/certs/ca-certificates.crt

4.重置时钟

现在date输出正确的日期和时间

5.禁用SSL验证

代码语言:javascript
复制
git config --global http.sslverify false
export GIT_SSL_NO_VERIFY=true

在禁用SSL证书验证之后,运行git克隆会给出不同的错误消息:

代码语言:javascript
复制
mendel@mocha-zebra:~$ git clone https://github.com/google-coral/pycoral.git
Cloning into 'pycoral'...
fatal: unable to update url base from redirection:
  asked for: https://github.com/google-coral/pycoral.git/info/refs?service=git-upload-pack
   redirect: https://charter.guestinternet.com/?UI=8587f8ed-8341-4b82-a120-d257b139c9c4&api_domain=https://secure.11os.com&UI=040d98&NI=0050e8040d98&UIP=24.97.110.215&MA=7CD95CB25273&RN=50&PORT=50&ZONE=Unauth Zone&RAD=yes&PP=no&PMS=no&SIP=172.20.9.93&OS=https://github.com%2Fgoogle-coral%2Fpycoral.git%2Finfo%2Frefs%3Fservice%3Dgit-upload-pack
EN

回答 1

Stack Overflow用户

发布于 2021-06-22 06:54:16

charter.guestinternet.com意味着某种社区解决方案WiFi特性,您需要先对门户进行身份验证,然后才能访问internet。

试着先去那个入口,来验证你的身份。

然后再试一次git clone

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68076694

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档