Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle

user1032187 picture user1032187 · Oct 30, 2014 · Viewed 19.4k times · Source

I tried to create a git repo with the instructions from "source.android.com/source/downloading.html#installing-repo"

but I get the following error when trying to initialize the repo in the working directory (using Ubuntu):

:~/workdir$ repo init -u https://android.googlesource.com/a/platform/manifest
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno -2] Name or service not known

I have created the ~/.netrc file with generated password and also set the HTTP_PROXY and HTTPS_PROXY variables.
When I try to access the above clone.bundle link through a browser, I get "not found" error.
Please let me know if some additional settings need to be done. Thanks in advance.

Answer

叉叉敌 picture 叉叉敌 · Oct 10, 2019

error

fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle 
fatal: error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

you can modify this repo file for this issue, please follow the below commands

sudo cp /usr/bin/repo /usr/bin/repo_bak
sudo vi /usr/bin/repo

insert the below detail after 'import sys'

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

then save this file, and retry again