fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
Posted fah936861121
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle相关的知识,希望对你有一定的参考价值。
In i.MX Yocto Project User‘s Guide document
Quick Start part:
Install the `repo` utility:
To get the BSP you need to have "repo" installed. This only needs to be done once.
$: mkdir ~/bin
$: curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$: chmod a+x ~/bin/repo
$: PATH=${PATH}:~/bin
由于这里安装repo的REPO_URL是谷歌的源,而由于国内“墙”的原因导致下载失败,错误为
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno 101] Network is unreachable
针对这个问题,解决方案如下:
1. 获取repo
# cd ~
# mkdir bin
# cd bin
# curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo > ~/bin/repo
# chmod a+x ~/bin/repo
# export PATH=${PATH}:~/bin
2. 修改repo文件
打开~/bin/repo文件并修改google地址
# vi ~/bin/repo
From
REPO_URL = ‘https://gerrit.googlesource.com/git-repo‘
To
REPO_URL = ‘ https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/ ‘
参考:https://community.nxp.com/docs/DOC-343242
以上是关于fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle的主要内容,如果未能解决你的问题,请参考以下文章
实操-完美解决repo init 错误 fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
实操-完美解决repo init 错误 fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
实操-完美解决repo init 错误 fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
Appium 1.9.1 启动报错 Fatal TypeError: Class constructor BaseDriver cannot be invoked without 'new
IDEA创建maven项目时,报错[FATAL_ERROR] Cannot start Maven: Cannot find JRE '1.7'