broken git-repo snap in Ubuntu 20.04

Bug #1882296 reported by Wilson-q
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snap Store Server
Triaged
Undecided
Unassigned

Bug Description

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.

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1882296/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → snapstore
Revision history for this message
Daniel Manrique (roadmr) wrote :

Usual "abandoned/outdated snap" procedure.

Changed in snapstore:
status: New → Triaged
Revision history for this message
Rusty Howell (rustyhowell) wrote :

Some forums suggest installing the snap with --classic, but that does not seem to work either. I had to abandon the git-repo snap and go directly to Google to get it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.