Ubuntu安装caffe git fatal: unable to access server certificate verification failed.

Ubuntu16.04 从git下载caffe时候, 报错:

# git clone https://github.com/BVLC/caffe.git

fatal: unable to access ‘https://github.com/BVLC/caffe.git/‘: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

查stackoverflow上面的解释:
‘’The basic reason is that your computer doesn’t trust the certificate authority that signed the certificate used on the Gitlab server. This doesn’t mean the certificate is suspicious, but it could be self-signed or signed by an institution/company that isn’t in the list of your OS’s list of CAs. What you have to do to circumvent the problem on your computer is telling it to trust that certificate - if you don’t have any reason to be suspicious about it.”
Addr:
https://stackoverflow.com/questions/21181231/server-certificate-verification-failed-cafile-etc-ssl-certs-ca-certificates-c
所以是本地OS不trust这个certificate
使用他提供的方案:

export GIT_SSL_NO_VERIFY=1
#or
git config --global http.sslverify false

之后,再git clone一下就可以下载咯~

你可能感兴趣的:(环境配置)