码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2020-04-09 14:16:23      阅读:102      评论:0      收藏:0      [点我收藏+]

标签:uid   star   find   chm   文件   error   content   ide   解决方案   

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

标签:uid   star   find   chm   文件   error   content   ide   解决方案   

原文地址:https://www.cnblogs.com/fah936861121/p/12666580.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!