Installing Mercurial 1.5, 1.6 or 1.7 on Ubuntu Lucid Lynx 10.04

Lycid Lynx’ repository by default set to install Mercurial 1.4.x, which is great, but as of today that’s already 3 major releases behind :( To get yourself on the latest and greatest version of Mercurial there are 2 options: build from the source or just add mercurial-releases repository like this:

sudo add-apt-repository ppa:mercurial-ppa/releases
sudo apt-get update
sudo apt-get install mercurial

Make sure it did the right thing:

$ hg --version
Mercurial Distributed SCM (version 1.6)

Copyright (C) 2005-2010 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO

Another thing that will go nicely with Mercurial 1.6.x or 1.7.x is up-to-date TortoiseHg. To install TortoiseHg on Ubuntu 10.04 you’ll need to run the following:

sudo add-apt-repository ppa:tortoisehg-ppa/releases
sudo apt-get update
sudo apt-get install tortoisehg-nautilus

22 thoughts on “Installing Mercurial 1.5, 1.6 or 1.7 on Ubuntu Lucid Lynx 10.04

  1. Pingback: Installed Mercurial usin PPA repositroy, where can I get hgweb.cgi? |

  2. Thanks very much. I was looking everywhere for this! I was trying to install from .tar.gz but was having no luck. Finally installed now. Thanks, Pete (Ireland)

  3. If you get this error:
    Exception in thread Thread-1:
    Traceback (most recent call last):
    File “/usr/lib/python2.6/”, line 532, in __bootstrap_inner
    File “/usr/lib/python2.6/dist-packages/softwareproperties/”, line 59, in run
    File “/usr/lib/python2.6/dist-packages/softwareproperties/”, line 88, in add_ppa_signing_key
    print “Error reading %s: %s” % (lp_url, e)
    UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xd0 in position 26: ordinal not in range(128)

    Just set up an htpp_proxy environment variable:
    sudo -i
    export http_proxy=’′
    export https_proxy=’′
    apt-add-repository ppa:mercurial-ppa/releases

  4. If you get an error that add-apt-repository isn’t installed, make sure you install the appropriate package, python-software-properties for 10.04 LTS and many prior versions according to sources.

    sudo apt-get install python-software-properties

  5. Pingback: Mercurial and 404 | Bryan's Blog

  6. This is still the clearest description I’ve found. It works perfectly, even though we’re on something like Hg 2.3.2 now.

  7. Its like you read my mind! You seem to know so much
    about this, like you wrote the book divorce attorney in shorewood il (Eileen) it or something.
    I think that you can do with a few pics to drive the message home a little bit, but instead of that, this is excellent blog.
    A fantastic read. I will definitely be back.

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>