The hg that you found in /usr/local/bin/ was not installed by apt or dpkg, you have installed it manually by downloading the sources and running "make install". Just by renaming it you are not getting rid of your local installation of mercurial. Have a look at /usr/local/lib/python2.7/dist-packages , you will probably find mercurial and hgext directories there. Those are likely to be the ones your /usr/bin/hg is importing and why it's getting so confused.
Try getting rid of what you installed in /usr/local (specially in /usr/local/lib/python2.7/dist-packages/mercurial* and hgext*) and use only the packages provided by the distribution. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1591748 Title: Was Mercurial 3.8.3 accidentally placed in the 3.7.3 package? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mercurial/+bug/1591748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs