Updating mercurial in Ubuntu 14.04 LTS
Yuya Nishihara
yuya at tcha.org
Sun May 18 10:18:47 UTC 2014
On Sun, 18 May 2014 12:00:08 +0200, Angel Ezquerra wrote:
> This is quite odd. I did:
>
> $ which hg
> /usr/bin/hg
> $hg version
> Mercurial Distributed SCM (version 2.6.2+72-b90ae5d9e9c7)
> ...
>
> So it seems mercurial was version 2.6.2.
> Then I did:
>
> $ sudo apt-get purge --remove mercurial
> ...
> Removing mercurial-common (2.8.2-1ubuntu1) ...
> ...
>
> So this told me that it was removing mercurial 2.8.2 even though I had
> mercurial 2.6.2?
>
> $ which hg
>
> The result was empty. So it seems that mercurial was uninstalled.
>
> Then I did:
> $ sudo apt-get autoremove
> $ sudo add-apt-repository ppa:jacob/hg
> $ sudo apt-get update
> $ sudo apt-get install mercurial
> ...
> Setting up mercurial (3.0-0~14.04~ppa0) ...
> ...
>
> $ which hg
> /usr/bin/hg
> $ hg version
> Mercurial Distributed SCM (version 2.6.2+72-b90ae5d9e9c7)
>
> Wait, what? How did I get mercurial 2.6.2 back?
Probably you have old mercurial libs somewhere in your PYTHONPATH.
Try
$ python -c 'import mercurial; print mercurial.__file__'
and
$ hg debuginstall
Regards,
More information about the Mercurial
mailing list