Ubuntu uses the apt package management system, which provides the command line utility apt-get and optional graphical interfaces such as Synaptic and Aptitude. We'll use apt-get to install packages, but if you're more comfortable with GUIs, those options are available. Open a terminal window on your local system and do the following:
sudo apt-get install git<br />
$which git /opt/local/bin/git<br />
Open a terminal window and do the following:
deb //archive.ubuntu.com/ubuntu/ lucid universe deb-src //archive.ubuntu.com/ubuntu/ lucid universe deb //archive.ubuntu.com/ubuntu/ lucid-updates universe deb-src //archive.ubuntu.com/ubuntu/ lucid-updates universe deb //security.ubuntu.com/ubuntu/ lucid-security universe deb-src //security.ubuntu.com/ubuntu/ lucid-security universe
If the lines are still commented (have a # prefix), then edit the file and uncomment them.
sudo apt-get update
sudo apt-get install mercurial
$ which hg /usr/bin/hg
Hg is the chemical symbol for Mercury and hg is the
command for Mercurial.
[ui] # Name data to appear in commits username = Mary Anthony <manthony@atlassian.com>