获取B2G代码时“由于获取错误而退出同步”

时间:2014-09-21 20:58:05

标签: build mozilla firefox-os gecko b2g

我正在尝试使用these steps为我的Intex Cloud FX手机准备我的第一个B2G版本。我从Firefox OS Phones页面发现我的手机代码是 tarako 。但是,每次运行./config.sh tarako都会失败。

虽然上面的文章确实说了以下内容:

  

注意:config.sh可能会因git相关的提取而失败   错误如下:

     

获取项目:95%(118/124)错误:由于获取而退出同步   错误

     

这似乎是由Android repo上的连接错误引起的   源存储库。在这种情况下,您将需要重新运行config.sh。   片刻之后,它会自动从中断的地方恢复。   你可能会多次这样做,直到它最终取出所有   项目

但是,我已多次尝试过,并且每次都会以相同的错误中止该过程。 这是日志:

Get https://github.com/mozilla-b2g/b2g-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:00:01 --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
remote: Counting objects: 1725, done.
remote: Total 1725 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (1725/1725), 708.93 KiB | 62.00 KiB/s, done.
Resolving deltas: 100% (1019/1019), done.
From https://github.com/mozilla-b2g/b2g-manifest
 * [new branch]      master     -> origin/master
 * [new branch]      revert-203-bug1025788-v2 -> origin/revert-203-bug1025788-v2
 * [new branch]      v1-train   -> origin/v1-train
 * [new branch]      v1.0.0     -> origin/v1.0.0
 * [new branch]      v1.0.1     -> origin/v1.0.1
 * [new branch]      v1.1.0hd   -> origin/v1.1.0hd
 * [new branch]      v1.2       -> origin/v1.2
 * [new branch]      v1.2f      -> origin/v1.2f
 * [new branch]      v1.3       -> origin/v1.3
 * [new branch]      v1.3t      -> origin/v1.3t
 * [new branch]      v1.4       -> origin/v1.4
 * [new branch]      v2.0       -> origin/v2.0
 * [new branch]      v2.1       -> origin/v2.1
 * [new tag]         B2G_1_0_1_20130213094222 -> B2G_1_0_1_20130213094222
 * [new tag]         B2G_1_1_0_hd_20130530182315 -> B2G_1_1_0_hd_20130530182315
 * [new tag]         B2G_1_1_0_hd_20130530182315_BASE -> B2G_1_1_0_hd_20130530182315_BASE
 * [new tag]         closing-nightly -> closing-nightly

Your identity is: John Bupit
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /home/jbupit/b2g/B2G
Fetching project gecko.git
Fetching project moztt
Fetching project platform/hardware/libhardware
Fetching project platform/system/bluetooth
Fetching projects:   1% (1/84)  Fetching project platform/external/safe-iop
Fetching projects:   2% (2/84)  Fetching project platform/abi/cpp
fatal: unable to access 'http://sprdsource.spreadtrum.com:8085/b2g/android/platform/system/bluetooth/': Failed connect to sprdsource.spreadtrum.com:8085; Connection timed out
fatal: unable to access 'http://sprdsource.spreadtrum.com:8085/b2g/android/platform/hardware/libhardware/': Failed connect to sprdsource.spreadtrum.com:8085; Connection timed out
fatal: unable to access 'http://sprdsource.spreadtrum.com:8085/b2g/android/platform/abi/cpp/': Failed connect to sprdsource.spreadtrum.com:8085; Connection timed out
fatal: unable to access 'http://sprdsource.spreadtrum.com:8085/b2g/android/platform/external/safe-iop/': Failed connect to sprdsource.spreadtrum.com:8085; Connection timed out
fatal: unable to access 'http://sprdsource.spreadtrum.com:8085/b2g/android/platform/abi/cpp/': Failed connect to sprdsource.spreadtrum.com:8085; Connection timed out
fatal: unable to access 'http://sprdsource.spreadtrum.com:8085/b2g/android/platform/system/bluetooth/': Failed connect to sprdsource.spreadtrum.com:8085; Connection timed out
fatal: unable to access 'http://sprdsource.spreadtrum.com:8085/b2g/android/platform/external/safe-iop/': Failed connect to sprdsource.spreadtrum.com:8085; Connection timed out
fatal: unable to access 'http://sprdsource.spreadtrum.com:8085/b2g/android/platform/hardware/libhardware/': Failed connect to sprdsource.spreadtrum.com:8085; Connection timed out
error: Cannot fetch platform/system/bluetooth
Fetching project gonk-misc
Fetching projects:   3% (3/84)  error: Cannot fetch platform/external/safe-iop
error: Cannot fetch platform/abi/cpp
error: Cannot fetch platform/hardware/libhardware

error: Exited sync due to fetch errors
Repo sync failed

我该怎么办?还有另一种下载代码的方法吗?

1 个答案:

答案 0 :(得分:0)

我也碰到了这个 - 服务器似乎非常不稳定,或者有时缺少内容

您可以从https://git.mozilla.org/?a=project_list&s=sprd&btnS=Search

拼凑出您需要的内容

您需要使用新URL编辑清单XML并更改config.sh以使用它。

原始同步已在https://bugzilla.mozilla.org/show_bug.cgi?id=982360https://bugzilla.mozilla.org/show_bug.cgi?id=1014102

中讨论过