我想下载Nexus 9的android lollipop源代码。我使用下面提到的存储库来下载和同步nexus。
repo init -u https://android.googlesource.com/platform/manifest -b android-5.0.0_r1
repo sync
但在同步96%后,我收到错误,如下所述:
Fetching projects: 97% (468/482) Fetching project platform/external/freetype
fatal: remote error: Git repository not found
Fetching project platform/hardware/intel/common/bd_prov
Fetching project platform/external/chromium_org/v8
Fetching project platform/external/tagsoup
Fetching project platform/prebuilts/gcc/darwin-x86/host/headers
Fetching projects: 98% (473/482) Fetching project platform/packages/apps/Dialer
Fetching project platform/external/libunwind
Fetching project platform/packages/apps/Protips
Fetching project platform/packages/apps/Calculator
Fetching project platform/external/jsmn
Fetching projects: 99% (478/482) Fetching project platform/external/compiler-rt
fatal: remote error: Git repository not found
error: Cannot fetch platform/packages/apps/OMA-DM
error: Exited sync due to fetch errors
注意:
当我尝试检查ssh connectivity
显示Permission denied public key
时如下:
$ssh -T git@github.com
The authenticity of host 'github.com (192.30.252.131)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.252.131' (RSA) to the list of known hosts.
Permission denied (publickey).
请建议我如何解决此问题。
答案 0 :(得分:1)
这与ssh连接无关,因为你可以同步约96%。
有时,由于网络错误,它可能会退出同步。您可以再次尝试repo sync,并查看是否可以获取项目。我曾经遇到过和你一样的情况,重新同步也没关系。
或使用:
$ repo sync -f
-f标志将忽略网络错误或未检测到的项目,并继续同步。完成后,再次执行repo sync以确保所有项目都已成功同步。