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

23 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. What’s up to every body, it’s my first go to see of this weblog; this webpage
    consists of awesome and really excellent material in support of

  8. So when you are considering iPhone 4, one has to to begin before unlocking the unit jailbreak it.
    The audio, the apps, the interface, the appearances, conectivity.
    Sit back, and attempt not to have a heart attack.

  9. Hi! This iis kind off off topic but I need some help from an established blog.
    Is it har to set up your own blog? I’m not vwry techincal but I can figute things out
    pretty quick. I’m thinking about making my own but I’m not sure where to begin. Do youu have any points or suggestions?
    Many thanks

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>