下载android9源码报错 ubuntu18.04

repo init -u https://github.com/khadas/android_manifest.git -b khadas-edge-pie
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% (8/8)
remote: Total 8 (delta 0), reused 8 (delta 0)
Unpacking objects: 100% (8/8), done.
From https://gerrit.googlesource.com/git-repo
fb527e3…e37aa5f master -> origin/master
Traceback (most recent call last):
File “/home/gavin/Work/RK/Edge/WORKING_DIRECTORY/.repo/repo/main.py”, line 47, in
import event_log
File “/home/gavin/Work/RK/Edge/WORKING_DIRECTORY/.repo/repo/event_log.py”, line 166, in
_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

Here’s the reason why you can’t download it.
see:

ls -l /snap/git-repo/18/usr/lib/python2.7

Thank you,I will try!

给用户组提升权限后,可以正常下载了,再次感谢!Thank you !

1 Like