AOSP 存储库同步错误,索引包输出无效

问题描述 投票:0回答:1

我下载了AOSP 6.0.0但总是失败。 有谁可以帮助我吗?

我的环境:lenovo r720电脑

1. Ubuntu24 docker container on Ubuntu 18 OS
2. 
12:02:45 root@aospDocker ubuntu → python /mount_point/vm/AOSP/bin/repo --version
<repo not installed>
repo launcher version 2.42
       (from /mount_point/vm/AOSP/bin/repo)
git 2.43.0
Python 3.12.2 (main, Feb  7 2024, 20:47:03) [GCC 13.2.0]
OS Linux 5.4.0-150-generic (#167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023)
CPU x86_64 (x86_64)
Bug reports: https://issues.gerritcodereview.com/issues/new?component=1370071
3. my device memory is 24G , swap space 2G 

我的码头工人信息

tom@tom-pc ➜  ~ sudo docker run  --interactive --tty -m 20GB --cpuset-cpus='0-7'   \
   --name=aosp_container_new                                                                           \
   --hostname='aospDocker'                                                                                    \
   --mount='type=bind,source=/media/tom/samsung_ssd/vm,target=/mount_point/vm,readonly=false'  \
   --mount='type=bind,source=/media/tom/software,target=/mount_point/software,readonly=false'  \
   --detach                                                                                                 \
   0tom0/aopp_ubuntu24.04:2
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
27ecb9dd05eb01a7c9a1a121389941db3bd76762f381dffd2f4541ea4108838e

我的错误信息,一:

ubuntu@aospDocker:/mount_point/vm/AOSP/android-6.0.0_r1$ python /mount_point/vm/AOSP/bin/repo sync -j8 platform/external/skia 2>&1 | tee -a /mount_point/vm/AOSP/android-6.0.0_r1.tmp/log/docker.ubuntu24.repo.sync.j8.[platform.external.skia].1.log  
error: Cannot fetch platform/external/skia from https://android.googlesource.com/platform/external/skia

fatal: cannot read existing object 3afae70a48cd9f9c0f57dc7db3f31aea0bb158f1
fatal: fetch-pack: invalid index-pack output

platform/external/skia:
fatal: cannot read existing object 3afae70a48cd9f9c0f57dc7db3f31aea0bb158f1
fatal: fetch-pack: invalid index-pack output
platform/external/skia: sleeping 4.0 seconds before retrying
fatal: cannot read existing object 3afae70a48cd9f9c0f57dc7db3f31aea0bb158f1
fatal: fetch-pack: invalid index-pack output
error: Cannot fetch platform/external/skia from https://android.googlesource.com/platform/external/skia
error: Cannot checkout platform/external/skia: ManifestInvalidRevisionError: revision refs/tags/android-6.0.0_r1 in platform/external/skia not found
error: in `sync -j8 platform/external/skia`: revision refs/tags/android-6.0.0_r1 in platform/external/skia not found

fatal: cannot read existing object 3afae70a48cd9f9c0f57dc7db3f31aea0bb158f1
fatal: fetch-pack: invalid index-pack output

platform/external/skia:
fatal: cannot read existing object 3afae70a48cd9f9c0f57dc7db3f31aea0bb158f1
fatal: fetch-pack: invalid index-pack output
platform/external/skia: sleeping 4.0 seconds before retrying
fatal: cannot read existing object 3afae70a48cd9f9c0f57dc7db3f31aea0bb158f1
fatal: fetch-pack: invalid index-pack output

我的错误信息,二:

ubuntu@aospDocker:/mount_point/vm/AOSP/android-6.0.0_r1$ python /mount_point/vm/AOSP/bin/repo sync -j8 platform/external/deqp 2>&1 | tee -a /mount_point/vm/AOSP/android-6.0.0_r1.tmp/log/docker.ubuntu24.repo.sync.j8.[platform.external.deqp].1.log                                                                                                                         
error: Cannot fetch platform/external/deqp from https://android.googlesource.com/platform/external/deqp

fatal: serious inflate inconsistency
fatal: fetch-pack: invalid index-pack output

platform/external/deqp:
fatal: serious inflate inconsistency
fatal: fetch-pack: invalid index-pack output
platform/external/deqp: sleeping 4.0 seconds before retrying
error: inflate: data stream error (incorrect data check)
fatal: serious inflate inconsistency
fatal: fetch-pack: invalid index-pack output

我尝试了三件事:

  1. 在 mac os 上我总是下载 aosp 6.0.0 成功。
  2. 在 Ubuntu 18 上总是下载 aosp 6.0.0 失败。尝试了很多次,总是失败。
  3. 在 Ubuntu 24 上总是下载 aosp 6.0.0 失败。尝试了很多次,总是失败。

我希望通过ubuntu操作系统下载aosp 6.0.0。

android android-source repo
1个回答
0
投票

我从来没有在我的

lenovo r720
上同步成功。我尝试过Ubuntu 18~Ubuntu24,均失败。我尝试过更改python版本python 3.6 ~ python 3.12,全部失败。我已经将 HDD 更换为 SDD,还是失败。

  • 我怀疑我的无线网卡有问题,导致我的网络不稳定。但我无法证明这一点。

在我的 Mac PC 上,我几乎从未失败过。当我在 mac 上同步代码成功时,我将其复制到我的

Lenovo r720 Ubuntu
。 接下来是 mac OS 上的一些软件信息:

12:09:30 tom@TomdeMBP-9 aosp → python .repo/repo/repo --version
repo version v2.41
       (from https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/)
       (tracking refs/heads/stable)
       (Thu, 25 Jan 2024 21:32:58 +0000)
repo launcher version 2.40
       (from /Volumes/MacOs_disk/AOSP/aosp/.repo/repo/repo)
       (currently at 2.41)
repo User-Agent git-repo/2.41 (Darwin) git/2.41.0 Python/3.11.6
git 2.41.0
git User-Agent git/2.41.0 (Darwin) git-repo/2.41
Python 3.11.6 (main, Nov  2 2023, 04:39:40) [Clang 14.0.0 (clang-1400.0.29.202)]
OS Darwin 21.6.0 (Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000)
CPU arm64 (arm)
Bug reports: https://issues.gerritcodereview.com/issues/new?component=1370071

仓库同步成功

我使用aosp镜像网站:

  1. https://xtom.help/AOSP/
  2. https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/
  3. https://mirrors.ustc.edu.cn/help/aosp.html

我成功了一种方法:

  1. 首先下载aosp-last.tar
  2. 仓库同步

我成功了两种方法:

  1. repo init -u 镜像地址 -b 分支名称
  2. 仓库同步

repo 同步战争信息

开始时我

repo sync
成功,没有收到任何警告或错误。几天后重新同步出现错误:

12:00:51 tom@TomdeMBP-9 aosp → python /Volumes/MacOs_disk/AOSP/bin/repo2.42 sync -j4 2>&1 | tee a /Volumes/MacOs_disk/AOSP/aosp.tmp/log/repo.sync.j4.2.log
info: A new version of repo is available
warning: repo is not tracking a remote branch, so it will not receive updates
================================================================================
Repo command failed: RepoUnhandledExceptionError
    GitCommandError: 'reset --keep v2.42^0' on repo failed
stderr: error:Entry 'git_command.py' not uptodate. Cannot merge.
Fatal error: Unable to reset index file to version 'v2.42^0'.

/opt/homebrew/Cellar/[email protected]/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/multiprocessing/resource_tracker.py:254: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '
/opt/homebrew/Cellar/[email protected]/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/multiprocessing/resource_tracker.py:267: UserWarning: resource_tracker: '/mp-q1hytlzz': [Errno 2] No such file or directory
  warnings.warn('resource_tracker: %r: %s' % (name, e))

解决方法:

cd aosp/.repo/repo/
git pull 
cd ../../
python /Volumes/MacOs_disk/AOSP/bin/repo2.42 sync -j4 2>&1 | tee a /Volumes/MacOs_disk/AOSP/aosp.tmp/log/repo.sync.j4.3.log
updating: 100% (2336/2336), success.
repo sync has finished successfully.
© www.soinside.com 2019 - 2024. All rights reserved.