repo/repo init-解决同步源码Cannot get http://gerrit.googlesource.com/git-repo/clone.bundle

以下转自:http://www.cnblogs.com/dinphy/p/5669384.html

问题:

  fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
  fatal: error [Errno 101] Network is unreachable

访问不了google网站。 

解决方法,先单独克隆repo

git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo

然后将git-repo里面的repo文件复制到bin目录,然后chmod a+x ~/bin/repo.

再在同步源码的工作目录新建.repo文件夹,把git-repo重命名为repo复制到.repo目录下:

重新初始化:

repo init -u https://source.codeaurora.org/external/autobsps32/auto_yocto_bsp -b hotfix/bsp20.0.hf1

同步开始

repo sync -c -j8

猜你喜欢

转载自www.cnblogs.com/rzq232/p/10782933.html