【发布时间】:2019-03-27 08:02:49
【问题描述】:
Android源码下载:
我正在发行
repo init -u https://android.googlesource.com/platform/manifest
但我收到以下错误:
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [SSL_CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c :726)
fatal: cloning the git-repo repository,will remove '.repo/repo'
我尝试了什么?
-我已尝试从 google chrome 和 Internet Explorer 访问 https://android.googlesource.com/platform/manifest 和 https://gerrit.googlesource.com/git-repo/clone.bundle,但没有问题
-尝试在 repo init 命令中将 https 更改为 http
-修改repo脚本,将https改为http
- 修改 gitconfig 如下:
[user]
name = myName
email = myemail.id
[http]
proxy = http://user:passwd@gateway.com:8080
sslVerify = false
[https]
proxy = https://user:passwd@gateway.com:8080
sslVerify = false
如何导入这些网站的证书? 我正在使用 Ubuntu 18.04 。 有没有办法强制忽略这个?
PS:我在代理后面并且已经设置了代理设置并且工作正常。(尝试了 sudo apt-get update)
【问题讨论】:
标签: android ssl android-build repo