Emacs doesn’t load gui


whenever I run emacs or emacs23 on terminal I just get the following output:

** (emacs:2620): CRITICAL **: menu_proxy_module_load: assertion `dbusproxy != NULL' failed

And the gui doesn't load, and emacs' window never opens. The emacs process doesn't actually crash (the terminal stays busy, and I can see the emacs23 process running with ps -e).

I've tried running it with the -D –debug-init arguments, but the same thing happens and the output is exactly the same. However, if I run emacs -nw it successfully runs emacs in terminal mode as if nothing were wrong.

Strangely, this problem only started happening the second time I ran emacs today. The first time it worked perfectly fine. Since then, I've tried rebooting and I've tried purging the emacs installation, to no success.

I haven't installed any new packages today, but I might have upgraded some, could that be the reason? Is there a way to find out which packages were installed/upgraded today?

EDIT: Additionally, if I run sudo emacs it loads normally and everything runs great.


I'm running Ubuntu Lucid

Best Answer

Looks like you hit a known Ubuntu bug where the appmenu-gtk package seems to be broken. The solution seems to be to remove this package until this gets fixed in the repositories.

If this doesn't work don't run your emacs sudo like suggested by some people over there, rather use emacs on the command line with

$ emacs -nw

or use another editor for the time being.

My crystal ball tells me that this might get fixed not too far in the future.