repo sync报错:

error: unable to read sha1 file of aosp_arm64-user-system.img (727f3963820dacf23794738f025b79a7d4144644)
Traceback (most recent call last):
File "/workspace/UMS9230-Aruba/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/workspace/UMS9230-Aruba/.repo/repo/main.py", line 507, in _Main
result = repo._Run(argv) or 0
File "/workspace/UMS9230-Aruba/.repo/repo/main.py", line 180, in _Run
result = cmd.Execute(copts, cargs)
File "/workspace/UMS9230-Aruba/.repo/repo/subcmds/sync.py", line 821, in Execute
project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
File "/workspace/UMS9230-Aruba/.repo/repo/project.py", line 1327, in Sync_LocalHalf
self._InitWorkTree(force_sync=force_sync)
File "/workspace/UMS9230-Aruba/.repo/repo/project.py", line 2486, in _InitWorkTree
raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree

解决方法:

repo --trace sync -cdf 查看repo的所有动作.

: cd /workspace/UMS9230-Aruba/vendor/sprd/partner/aosp-images
: git read-tree --reset -u -v HEAD 1>| 2>|
error: unable to read sha1 file of aosp_arm64-user-system.img
(727f3963820dacf23794738f025b79a7d4144644)
正在检出文件: 100% (10/10), 完成.
Traceback (most recent call last):
File "/workspace/UMS9230-Aruba/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/workspace/UMS9230-Aruba/.repo/repo/main.py", line 507, in _Main
result = repo._Run(argv) or 0
File "/workspace/UMS9230-Aruba/.repo/repo/main.py", line 180, in _Run
result = cmd.Execute(copts, cargs)
File "/workspace/UMS9230-Aruba/.repo/repo/subcmds/sync.py", line 821, in Execute
project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
File "/workspace/UMS9230-Aruba/.repo/repo/project.py", line 1327, in Sync_LocalHalf
self._InitWorkTree(force_sync=force_sync)
File "/workspace/UMS9230-Aruba/.repo/repo/project.py", line 2486, in _InitWorkTree
raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree

通过标红位置发现是 vendor/sprd/partner/aosp-images 这一步出现的错误,进入.repo/projects/vendor/sprd/partner/ 目录下,删除aoso-images.git文件,再进入.repo/project-objects/vendor/sprd/partner/ 目录下,删除aoso-images.git文件.

rm -rf .repo/projects/vendor/sprd/partner/aoso-images.git

rm -rf .repo/project-objects/vendor/sprd/partner/aoso-images.git

再次执行repo sync,成功。

这个是我从TX2 jepack3.3下载下来的,cuda9安装包,当然这个安装包可以安装在任意jetson平台上,我博客中就举了个nano安装cuda9的例子,因为nano默认系统带的是cuda10. 这里分卷压缩了上传了3份,一起下载下来解压,相关文件是 cuda9.0-re po -l4t- arm64 -jetson.zip.001 cuda9.0-re po -l4t- arm64 -jetson.zip.002 cuda9.0-re po -l4t- arm64 -jetson.zip.003 【转】http://highaltitudeoolong.blogs po t.com/2016/09/re po - sync -fail- unable -to- read - sha1 - file .html 百度搜不到,转到这…… error : unable to read sha1 file of gradle-1.4-all.zip (25ee925013e572af4735884757af1e2228c1... 首先你在网上clone了一个仓库然后进行自己的编码 然后 你想测试 其他人push的代码 但是 不想pull到你自己的项目中 害怕合并失败 新建了一个新的文件 重新clone了一个项目在里面 然后 ... This probably never happened in the real-world yet, and may never happen, but let's consider this: re po sync 时其他操作导致电脑死机,重启后继续re po 时,出现如下错误: $ re po sync -cdf Sync ing work tree:  67% (344/512)  fatal: This operation must be run in a work tree Traceback (most recent call last): File "/home/panos/