gitosis on Ubuntu 9.04 Jaunty

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.

4 thoughts on “gitosis on Ubuntu 9.04 Jaunty”

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

  2. 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

  3. > 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.

Comments are closed.