我正在尝试下载Android源代码,为此我正在遵循在source.android.com上提供的官方文档,使用以下命令:
repo init -u https://android.googlesource.com/platform/manifest -b android-5.0.0_r1
或者
repo init -u https://android.googlesource.com/platform/manifest
但我遇到了以下错误:
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno -2] Name or service not known
我无法确定自己做错了什么!!任何线索都会受到赞赏。
更新
我继续使用以下命令:
repo init -u https://android.googlesource.com/platform/manifest -b android-4.4_r1
然后执行了repo sync
命令,一切都正常运行,但最后出现了以下错误: -
100 10.8G 100 10.8G 0 0 259k 0 12:12:36 12:12:36 --:--:-- 895k
remote: Sending approximately 10.88 GiB ...
remote: Counting objects: 46, done
remote: Finding sources: 100% (40/40)
error: RPC failed; result=56, HTTP code = 200 | 915.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
remote: Sending approximately 10.88 GiB ...
remote: Counting objects: 46, done
remote: Finding sources: 100% (40/40)
error: RPC failed; result=56, HTTP code = 200 | 881.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
error: Cannot fetch device/lge/hammerhead-kernel
任何关于这个的线索都将不胜感激!!
host gerrit.googlesource.com
、dig gerrit.googlesource.com
或nslookup gerrit.googlesource.com
命令,是否能够返回至少一个IP地址? - Magnus Bäck