我按照教程(https://coral.ai/docs/dev-board/get-started/#run-pycoral)设置了边缘tpu开发板,并能够通过MDT连接到板的外壳。当我试图克隆回购程序时,我看到了以下错误消息:
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证书
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.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.获取证书
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.pem3.向证书列表添加
cat git-mycompany-com.pem | sudo tee -a /etc/ssl/certs/ca-certificates.crt4.重置时钟
现在date输出正确的日期和时间
5.禁用SSL验证
git config --global http.sslverify false
export GIT_SSL_NO_VERIFY=true在禁用SSL证书验证之后,运行git克隆会给出不同的错误消息:
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发布于 2021-06-22 06:54:16
charter.guestinternet.com意味着某种社区解决方案WiFi特性,您需要先对门户进行身份验证,然后才能访问internet。
试着先去那个入口,来验证你的身份。
然后再试一次git clone。
https://stackoverflow.com/questions/68076694
复制相似问题