Apr 30 2009

gitosis on Ubuntu 9.04 Jaunty

Published by at 11:28 am under Technology   

As of April 2009, the gitosis package in Ubuntu 9.04 Jaunty is broken; it fails with an error like so:

pkg_resources.DistributionNotFound: gitosis==0.2

There are quite a few pages and mailing list messages that mention this. I only found one with a good hint toward a solution, which was that it is also a known issue on Debian. Following that lead, I got it working by grabbing newer packages from Debian Unstable:

wget http://ftp.us.debian.org/debian/pool/main/p/python-support/python-support_1.0.2_all.deb
wget http://ftp.us.debian.org/debian/pool/main/g/gitosis/gitosis_0.2+20080825-14_all.deb
sudo dpkg -i python-support_1.0.2_all.deb
sudo dpkg -i gitosis_0.2+20080825-14_all.deb

Use this at your own risk; your mileage may vary.

Post to Twitter Post to Facebook Post to Reddit

If you found this post useful, please link to it from your web site, mention it online, or mention it to a colleague.

4 responses so far

4 Responses to “gitosis on Ubuntu 9.04 Jaunty”

  1. jf says:

    I changed /usr/bin/python to point to python2.5 (vs sys-default python2.6). Did the job for me

  2. MK says:

    using 2.5 instead of 2.6 solved the problem.

  3. jsobolewski says:

    You can install gitosis from git repository (python and python-setuptools are required) in just 2 steps:

    git clone git://eagain.net/gitosis
    sudo python setup.py install

    it works like a charm

  4. Kyle Cordes says:

    > works like a charm

    I’m sure it does… if you are willing to give up on the future benefits of having installed it as a .deb. I’ve found that sticking with the OS package systems is extremely beneficial in the long term (in the context of being responsible for a large set of machines running a variety of distro versions), so it takes a lot to persuade me to ignore that and just shove it in.