fatal: Cannot get https://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

解决方法,先单独克隆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 git://github.com/CyanogenMod/android.git -b cm-12.1

同步开始

repo sync -c -j8

你可能感兴趣的:(fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle)