Lor*_*chi 3 android-source repo
我在尝试访问initAOSP 存储库时遇到的这个错误让我有点困惑(我以前曾经能够使用 repo 工具进行初始化):
aosp@aosp:~/WDIR$ repo init -u https://github.com/khadas/android_manifest.git -b khadas-edge-Qt
warning: gpg (GnuPG) is not available.
warning: Installing it is strongly encouraged.
warning: templates not found /build/git-repo-publish/parts/git/install/usr/share/git-core/templates
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
remote: Finding sources: 100% (7/7)
remote: Total 7 (delta 0), reused 7 (delta 0)
Unpacking objects: 100% (7/7), done.
From https://gerrit.googlesource.com/git-repo
89f3ae5..65f51ad master -> origin/master
Traceback (most recent call last):
File "/home/aosp/WDIR/.repo/repo/main.py", line 49, in <module>
import event_log
File "/home/aosp/WDIR/.repo/repo/event_log.py", line 167, in <module>
_EVENT_ID = multiprocessing.Value('i', 1)
File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/__init__.py", line 253, in Value
return Value(typecode_or_type, *args, **kwds)
File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/sharedctypes.py", line 108, in Value
lock = RLock()
File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/__init__.py", line 183, in RLock
return RLock()
File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/synchronize.py", line 172, in __init__
SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1)
File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/synchronize.py", line 75, in __init__
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 13] Permission denied
aosp@aosp:~/WDIR$
Run Code Online (Sandbox Code Playgroud)
我尝试重新安装 repo 实用程序,但没有帮助。有小费吗?我正在使用安装了所有更新的 Ubuntu 20.04。过去几天这个系统一直运行良好,我已经成功地在它上面构建了其他图像。今天早上我能够将这个存储库克隆到同一台机器上的另一个目录。
我在其中进行 repo init 的文件夹的权限如下:
PS:我也尝试过sudo特权,但没有。出现同样的问题。
在此先感谢您的帮助。
编辑:我尝试全新安装 Ubuntu Server 20.04 LTS。仍然看到同样的问题。