Public bug reported:

Ubuntu 18.04 has an apt package for git-repo that installs repo 2.8.
Ubuntu 20.04 uses a snap package that installs repo 1.12.37-3.  Note the
serious regression in the version number.  This old snap version does
not work.  I get python errors.  ubuntu-bug says I should contact the
author of the snap package to report the bug, but he stopped maintaining
this package years ago, which is coincidentally why it is hopelessly
out-of-date, so reporting bugs there is useless.

gondor:2019$ /snap/bin/repo init
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 5), reused 7 (delta 5)
Unpacking objects: 100% (7/7), done.
>From https://gerrit.googlesource.com/git-repo
   60fc51b..cebf227  master     -> origin/master
   dbfbcb1..60fc51b  stable     -> origin/stable
Traceback (most recent call last):
  File "/home/wilson/tmp/.repo/repo/main.py", line 49, in <module>
    import event_log
  File "/home/wilson/tmp/.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 2
53, in Value
    return Value(typecode_or_type, *args, **kwds)
  File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/sharedctypes.py", li
ne 108, in Value
    lock = RLock()
  File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/__init__.py", line 1
83, in RLock
    return RLock()
  File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/synchronize.py", lin
e 172, in __init__
    SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1)
  File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/synchronize.py", lin
e 75, in __init__
    sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 13] Permission denied
gondor:2020$ 

The workaround is to remove the snap git-repo package, and install repo
directly from the google source site.

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1882296

Title:
  broken git-repo snap in Ubuntu 20.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1882296/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to