查看 google 指导文档
https://source.android.google.cn/setup/develop
#repo init -u https://android.googlesource.com/platform/manifest
Get ssh://gerrit.dangbei.net:29418/repo-git
remote: Counting objects: 74, done
remote: Finding sources: 100% (74/74)
remote: Total 74 (delta 10), reused 74 (delta 10)
Unpacking objects: 100% (74/74), done.
From ssh://gerrit.dangbei.net:29418/repo-git
* [new branch] master -> origin/master
* [new branch] stable -> origin/stable
* [new tag] v1.0 -> v1.0
Get https://android.googlesource.com/platform/manifest
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:02:07 --:--:-- 0curl: (7) Failed to connect to 2404:6800:4008:c03::52: Network is unreachable
error: Failed to connect to 2404:6800:4008:c07::52: Network is unreachable while accessing https://android.googlesource.com/platform/manifest/info/refs
fatal: HTTP request failed
解决办法:rm -rf ~/.ssh/config
2、 #repo init -u https://android.googlesource.com/platform/manifest
error: in `init -u https://android.googlesource.com/platform/manifest`: [Errno 2] No such file or directory: '/home/e52620v4/server/google_android/.repo/manifests/.git/HEAD'
error: manifest missing or unreadable -- please run init
解决办法:更改repo为google下载的
3、
#repo init -u https://android.googlesource.com/platform/manifest
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno 101] Network is unreachable
fatal: cloning the git-repo repository failed, will remove '.repo/repo'