Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just installed ubuntu 11.10 on my netbook yesterday. I am having a problem getting tortoisehg working properly on it. I added the ppa for both tortoisehg and mercurial. I am able to install the software (tortoisehg, tortoisehg-nautilus) as I have done in past versions of ubuntu (not 11.04 - I skipped that version). When I launch nautilus and navigate to one of my repositories I don't see any context menu options for tortoisehg and I don't see any overlay icons indicating the repository status. I know tortoisehg is installed because I can issue the thg command at a terminal and the workbench shows up.

Any ideas on how to get things working?

share|improve this question
I am wondering if anyone knows how to set up the context menus manually? – Bluebill Nov 13 '11 at 12:43
check my answer it's pretty close to how Tortoisehg was – zeitue Jul 4 '12 at 7:28
up vote 3 down vote accepted

It seems to relate to bug #859104: Nautilus extensions written in Python do not work in Oneiric. Unfortunately the solution seems to be that someone needs to rewrite the tortoisehg Nautilus extension.

share|improve this answer

I have this problem too so I wrote something to fix it.

just run this in the terminal to set up

sudo apt-get install mercurial tortoisehg
mkdir -p ~/.local/share/nautilus/scripts/
cd ~/.local/share/nautilus/scripts/
hg clone
mv nautilus_mercurial_scripts/Mercurial/ .
rm -Rf nautilus_mercurial_scripts/

OK done, now just right click the folder/repo and look under scripts

share|improve this answer
Good enough for me. Should be marked as an answer. – Pijusn Jun 24 '12 at 8:28
This works quite well for me as well. Thank you. – karlgrz Sep 13 '12 at 3:36
thanks for writing this. For anyone using ubuntu 13.04 you need to put the scripts in the /home/$USER/.local/share/nautilus/scripts/ in order for nautilus to find them. – NotNamedDwayne Aug 6 '13 at 5:47
@NotNamedDwayne thanks I updated it – zeitue Aug 12 '14 at 6:45

I was researching this myself. It may be related to a bug in nautilus-python running on Oneiric. In the description, there is mention of a possible related bug with a similar context menu issue in another application.

share|improve this answer
Thanks for the link to the bug report. – Bluebill Oct 17 '11 at 21:56

I managed make it work it rather easily by using the tortoisehg ppa:

sudo add-apt-repository -y ppa:tortoisehg-ppa/releases
sudo apt-get update
sudo apt-get install mercurial tortoisehg
share|improve this answer

If you have something like this:

(nautilus:2750): Nautilus-Python-WARNING **: g_module_open libpython failed: /usr/lib/ cannot open shared object file: No such file or directory
compiz (core) - Info: Unity is fully supported by your hardware.
compiz (core) - Info: Unity is fully supported by your hardware.
compiz (core) - Info: Starting plugin: opengl
ImportError: could not import gobject (error was: '/usr/lib/x86_64-linux-gnu/ undefined symbol: _Py_ZeroStruct')

On your .xsession-errors file at home directory maybe this could help you:

Good luck

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.