Updating mercurial in Ubuntu 14.04 LTS
Adrian Klaver
adrian.klaver at aklaver.com
Sun May 18 15:28:24 UTC 2014
On 05/18/2014 03:00 AM, Angel Ezquerra wrote:
> On Sun, May 18, 2014 at 9:51 AM, Mathieu Courtois
> <mathieu.courtois at gmail.com> wrote:
> 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?
> I guess that I have mercurial 2.6.2 installed somewhere. I did:
>
> $ sudo find / -name hg
> /home/angel/repositories/hg
> /home/angel/repositories/hg/hg
> /home/angel/repositories/hg/build/scripts-2.7/hg
> /home/angel/repositories/hg-clone/hg
> /home/angel/Dropbox/repositories/hg
> /usr/bin/hg
>
> All those others are clones of the mercurial repo, and none of them
> are on the path.
>
> Do you guys have any ideas?
At a guess you used some variation of pip/easy_install/setup.py to
install mercurial outside the apt-get/dpkg mechanism.
If you have pip installed, what does pip freeze | grep mercurial show?
Also you might want to look in the script that is /usr/bin/hg to see
what it is pointing at.
I would also look in the Python packages directories(site-packages.
dist-packages) to see what is there. As someone else mentioned this
smells of a PYTHONPATH issue, where the 2.6.2 version is being picked up
before the 3.0 version.
>
> Thanks,
>
> Angel
--
Adrian Klaver
adrian.klaver at aklaver.com
More information about the Mercurial
mailing list