下载android的源代码时出错

时间:2017-03-15 16:31:49

标签: android download operating-system repo fedora-25

我正在使用fedora 25,并使用以下命令下载android gingerbread。

repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.7_r1
repo sync -c -j4

输入后(大约24小时后,下载尺寸为13G),

我明白了:

Fetching projects:  97% (166/171)  Fetching project platform/external/neven
Fetching project platform/external/dnsmasq
Fetching projects:  99% (170/171)  remote: Sending approximately 2.15 GiB ...        
remote: Counting objects: 367, done        
remote: Finding sources: 100% (2029012/2029012)           
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
remote: Sending approximately 2.15 GiB ...        
remote: Counting objects: 367, done        
remote: Finding sources: 100% (2029012/2029012)           
^Cerror: Cannot fetch platform/frameworks/base MiB | 118.00 KiB/s   
aborted by user

该错误不断重复。我在互联网上读到它,它说,我需要生成RSA密钥,然后将其复制到GitHub帐户。我该怎么做呢

另外请解释这些错误的含义,尤其是

remote: Sending approximately 2.15 GiB ...  

是下载还是上传?

1 个答案:

答案 0 :(得分:0)

我终于做到了。 这不是一个技术解决方案,但我在过去的三到四次尝试中做的不同之处在于我保持系统处于活动状态(不是处于睡眠模式,因为它在经过一段时间的闲置交互后会停止)

  

接收物品:99%(2024331/2029012),2.10 GiB | 119.00 KiB / s

下载98%或99%时,请确保操作系统不进入睡眠模式。enter image description here