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

问题:

  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

 

posted @ 2021-02-24 08:30  休闲森林  阅读(622)  评论(0)    收藏  举报