2017-03-15 125 views
1

我正在使用fedora 25,並使用以下命令下載android薑餅。下載Android的源代碼時出現錯誤

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 ... 

是其下載的含義或上傳?

回答

0

我終於做到了。 這不是一個技術解決方案,但我做了與過去三四次嘗試不同的事情,是我在

之前保持系統處於活動狀態(不處於睡眠模式,因爲它在一定時間的空閒交互之後熄滅)

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

在98或99%的下載時間確保os不會進入睡眠模式。 enter image description here