VIM3 android源码下载报错求助

整个SDK比较大,有上百个G, 这个也受你本地网络的限制,目前你那边的下载速度可以达到多少?

k级别的;20-500kb/s之间;我使用了WIKI中提供的脚本,不成功就一直下;今天早上看它自己执行完了;然后按照WIKI,执行了“repo start khadas-vims-pie --all”;报错“error.GitError:Linux update-erf:fatal:updat_ref failed for ref ******”

慢点可以勉强接受,但下载有错,最终无法提取出源码就比较难受了。

提供一下完整的下载错误log,谢谢! :grinning:

1 Like

remote: Counting objects: 2280, done.
remote: Compressing objects: 100% (1321/1321), done.
remote: Counting objects: 79248, done. .00 KiB/s
remote: Compressing objects: 100% (31384/31384), done.
remote: Counting objects: 99084, done. .00 KiB/s
remote: Compressing objects: 100% (35389/35389), done.
remote: Counting objects: 35454, done. .00 KiB/s
remote: Compressing objects: 100% (8310/8310), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack 失败
remote: Counting objects: 2299, done. .00 KiB/s
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack 失败
remote: Counting objects: 36366, done. 7.00 KiB/s
remote: Compressing objects: 100% (2/2), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack 失败
remote: Counting objects: 106251, done. 0 KiB/s
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack 失败
remote: Counting objects: 79347, done. 00 KiB/s
remote: Compressing objects: 100% (3/3), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack 失败
platform/prebuilts/clang/host/linux-x86:
remote: Counting objects: 36366, done.
remote: Compressing objects: 100% (2/2), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack 失败

error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack 失败
platform/external/chromium-webview:
remote: Counting objects: 2299, done.

Skipped fetching project android_external_google-tv-pairing-protocol (already have persistent ref)
Fetching projects: 98% (674/687) android_external_liboggSkipped fetching project android_external_roboto-fonts (already have persistent ref)
Skipped fetching project android_vendor_amlogic_interfaces (already have persistent ref)
remote: Enumerating objects: 112679, done. l/chromium-webviewremote: Enumerating objects: 417707
remote: Counting objects: 100% (112679/112679), done.
remote: Compressing objects: 100% (22/22), done.
error: RPC failed; curl 52 Empty reply from server 70.00 KiB/s
fatal: The remote end hung up unexpectedly
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
remote: Enumerating objects: 399190, done.
remote: Counting objects: 100% (399190/399190), done.
remote: Compressing objects: 100% (27/27), done.
remote: Enumerating objects: 112679, done. | 15.00 KiB/s
remote: Counting objects: 100% (112679/112679), done.
remote: Compressing objects: 100% (22/22), done.
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
error: Cannot fetch android_frameworks_base from https://github.com/khadas/android_frameworks_base
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
error: Cannot fetch linux from https://github.com/khadas/linux
Fetching projects: 99% (686/687), done.
error: info is different in /home/caizehong/am-vim3/vim3-code/khadas/.repo/projects/system/extras.git vs /home/caizehong/am-vim3/vim3-code/khadas/.repo/project-objects/android_system_extras.git
error: Cannot fetch android_system_extras (GitError: --force-sync not enabled; cannot overwrite a local work tree. If you’re comfortable with the possibility of losing the work tree’s git metadata, use repo sync --force-sync system/extras to proceed.)
Exception in thread Thread-1375:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 801, in __bootstrap_inner
self.run()
File “/usr/lib/python2.7/threading.py”, line 754, in run
self.__target(*self.__args, **self.__kwargs)
File “/home/caizehong/am-vim3/vim3-code/khadas/.repo/repo/subcmds/sync.py”, line 289, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File “/home/caizehong/am-vim3/vim3-code/khadas/.repo/repo/subcmds/sync.py”, line 333, in _FetchHelper
clone_filter=clone_filter)
File “/home/caizehong/am-vim3/vim3-code/khadas/.repo/repo/project.py”, line 1408, in Sync_NetworkHalf
self._InitGitDir(force_sync=force_sync)
File “/home/caizehong/am-vim3/vim3-code/khadas/.repo/repo/project.py”, line 2540, in _InitGitDir
raise e
GitError: --force-sync not enabled; cannot overwrite a local work tree. If you’re comfortable with the possibility of losing the work tree’s git metadata, use repo sync --force-sync system/extras to proceed.

Checking out projects: 100% (687/687), done.
问题一样的,我是百度网盘下载基础板后修改清华镜像更新的。
请问可以怎么弄,谢谢!

1 Like

部分log已发送,还有一位仁兄也遇到了同样的问题,还望大神指导。

好的,我这边验证一下,到时候回复你,可能需要点时间,因为我这边的网络都有VPN的

1 Like

好的,谢谢!
我这边下载代码的流程是这样的:
1.百度网盘
2. cat khadas.tar.gz.* | tar -zxv
3. repo init -u https://github.com/khadas/android_manifest.git -b khadas-vims-pie
4. 修改default.xml文件为清华的镜像
5. repo sync
不知道这流程是否正确 如有错误请帮忙指出?谢谢!

你这个没有问题,只有system_extras仓库下载有问题,可能是历史记录变化了,或者你有更改了,导致冲突,你可以根据提示相应操作

repo sync --force-sync system/extras 
repo sync 
1 Like

你那个错误不影响,正常是可以下载完的, :grinning:继续等待
你的本身网络有问题,老是显示0KB, 我这边没有开VPN的下载速度可以保持50KB左右

你好,下载完了,但是编译出错了。kernel目录好像也不太对。麻烦帮忙看看,谢谢!



你贴出来的错误log是应用层问题,默认这个应用是不会编译的,请详细描述一下你的编译步骤,另外你说kernel目录有问题,不是这个目录,linux代码是在common目录下的

谢谢,这边reser --hard 后代码出来了就可以编译了。

现在报这个错了:
error: .repo/manifests/: contains uncommitted changes;
无法下载了 :joy:

执行 repo start khadas-vims-pie --all 报下面的错误:

Traceback (most recent call last):
File “/home/zhang/workspace/khads/aosp/.repo/repo/main.py”, line 628, in
_Main(sys.argv[1:])
File “/home/zhang/workspace/khads/aosp/.repo/repo/main.py”, line 602, in _Main
result = run()
File “/home/zhang/workspace/khads/aosp/.repo/repo/main.py”, line 595, in
run = lambda: repo._Run(name, gopts, argv) or 0
File “/home/zhang/workspace/khads/aosp/.repo/repo/main.py”, line 264, in _Run
result = cmd.Execute(copts, cargs)
File “/home/zhang/workspace/khads/aosp/.repo/repo/subcmds/start.py”, line 117, in Execute
nb, branch_merge=branch_merge, revision=opt.revision):
File “/home/zhang/workspace/khads/aosp/.repo/repo/project.py”, line 1996, in StartBranch
self.work_git.update_ref(ref, revid)
File “/home/zhang/workspace/khads/aosp/.repo/repo/project.py”, line 3411, in runner
(self._project.name, name, p.stderr))
error.GitError: linux update-ref: fatal: update_ref failed for ref ‘refs/heads/khadas-vims-pie’: cannot update ref ‘refs/heads/khadas-vims-pie’: trying to write ref ‘refs/heads/khadas-vims-pie’ with nonexistent object 7a2b95478b169a0ff113a570836dbae4324205a0

为什么我的帖子你成了主人 :rofl: :joy: :rofl:

你更改了.repo/manifests目录下的文件,先git checkout恢复一下

我就把下载的地址从谷歌改成清华了阿;重新把default.xml pull下来吗?以前下载的代码会不会受影响?

这几天我推送了最新的代码,你恢复一下,重新下载更新比较好