无法获取https://gerrit.googlesource.com/git-repo/clone.bundle [英] Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle

查看:641
本文介绍了无法获取https://gerrit.googlesource.com/git-repo/clone.bundle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试根据的说明创建一个git repo "source.android.com/source/downloading.html#installing-repo"

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

但是尝试在工作目录(使用Ubuntu)中初始化存储库时出现以下错误:

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
致命:无法获取 https://gerrit.googlesource.com/git-repo/clone.bundle
严重:错误[Errno -2]名称或服务未知

:~/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

我已经使用生成的密码创建了〜/.netrc文件,并且还设置了HTTP_PROXY和HTTPS_PROXY变量.
当我尝试通过浏览器访问上面的clone.bundle链接时,出现未找到"错误.
请让我知道是否需要进行一些其他设置.预先感谢.

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.

推荐答案

错误

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 behind 'import sys'

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

然后保存该文件,然后重试

then save this file, and retry again

这篇关于无法获取https://gerrit.googlesource.com/git-repo/clone.bundle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆