Can't download Android source code


I got the problems in downloading the source code.
I followed the steps in
sudo ./ -> failed permission denied
git lfs install -> failed
I need to do “git init” then I could pass “sudo ./”

repo init -u -b khadas-vims-pie
/log start/
repo init -u -b khadas-vims-pie
Traceback (most recent call last):
File “/home/vatics/Desktop/git_lfs/git-lfs-2.3.4/VIM3_Android/.repo/repo/”, line 49, in
import event_log
File “/home/vatics/Desktop/git_lfs/git-lfs-2.3.4/VIM3_Android/.repo/repo/”, line 167, in
_EVENT_ID = multiprocessing.Value(‘i’, 1)
File “/snap/git-repo/18/usr/lib/python2.7/multiprocessing/”, line 253, in Value
return Value(typecode_or_type, *args, **kwds)
File “/snap/git-repo/18/usr/lib/python2.7/multiprocessing/”, line 108, in Value
lock = RLock()
File “/snap/git-repo/18/usr/lib/python2.7/multiprocessing/”, line 183, in RLock
return RLock()
File “/snap/git-repo/18/usr/lib/python2.7/multiprocessing/”, line 172, in init
SemLock.init(self, RECURSIVE_MUTEX, 1, 1)
File “/snap/git-repo/18/usr/lib/python2.7/multiprocessing/”, line 75, in init
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 13] Permission denied
/log end/

@ru719iz283 @Terry @goenjoy @jasonl Please help with this .

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

ls -l /snap/git-repo/18/usr/lib/python2.7
hlm@Server:/users/hlm$ ls -ld /usr/local/lib/python2.7
drwxrwsr-x 4 root staff 4096 Jul 24 06:02 /usr/local/lib/python2.7