title: Android AOSP repo init error: OSError [Errno 13] Permission denied
body: <p>I am a little stumped by this error I am getting when trying to <code>init</code> an AOSP repository (I've previously been able to use the repo tool to init in the past):</p>
  <pre><code>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     -&gt; origin/master
  Traceback (most recent call last):
    File &quot;/home/aosp/WDIR/.repo/repo/main.py&quot;, line 49, in &lt;module&gt;
      import event_log
    File &quot;/home/aosp/WDIR/.repo/repo/event_log.py&quot;, line 167, in &lt;module&gt;
      _EVENT_ID = multiprocessing.Value('i', 1)
    File &quot;/snap/git-repo/18/usr/lib/python2.7/multiprocessing/__init__.py&quot;, line 253, in Value
      return Value(typecode_or_type, *args, **kwds)
    File &quot;/snap/git-repo/18/usr/lib/python2.7/multiprocessing/sharedctypes.py&quot;, line 108, in Value
      lock = RLock()
    File &quot;/snap/git-repo/18/usr/lib/python2.7/multiprocessing/__init__.py&quot;, line 183, in RLock
      return RLock()
    File &quot;/snap/git-repo/18/usr/lib/python2.7/multiprocessing/synchronize.py&quot;, line 172, in __init__
      SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1)
    File &quot;/snap/git-repo/18/usr/lib/python2.7/multiprocessing/synchronize.py&quot;, line 75, in __init__
      sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
  OSError: [Errno 13] Permission denied
  aosp@aosp:~/WDIR$ 
  
  </code></pre>
  <p>I have tried reinstalling the repo utility, but it didn't help. Any tips?
  I am using Ubuntu 20.04 with all the updates installed. This system has been working fine for the past few days, and I have successfully built other images on it. I was able to clone this repository this morning to another dirve on the same machine.</p>
  <p>The permissions for the folder where I am making the repo init are as follows:</p>
  <p>PS: I have also tried with <code>sudo</code> privileges, but nothing. The same issue shows up.</p>
  <p>Thanks in advance for your kind help.</p>
  <p>EDIT: I have tried on a fresh install of Ubuntu Server 20.04 LTS. Still the same issue is seen.</p>