Applications menu and "Main menu"(alacarte) not working

Asked by Dee

Related Ubuntu forums thread:
http://ubuntuforums.org/showthread.php?t=416913

Related Launchpad bug report:
https://bugs.launchpad.net/ubuntu/+bug/104521

I've tried to ask for help in solving this issue on the Ubuntu forums but was unable to solve it successfully. Thus, I'm making a post here.

My issue:
About 4 to 5 hours ago, I was trying to install Gimp 2.2.14 from source. However, I had not done anything yet and was just reading the installation guide. I was pasting a command into Terminal(right-click mouse button) when Xserver crashed.

This is the error I received.
"Nautilus can't be used now, due to an unexpected error from Bonobo when attempting to locate the factory.Killing bonobo-activation-server and restarting Nautilus may help fix the problem."

When Xserver crashed, all my running programs vanished and my desktop was blank!
After which, I restarted the pc and went back to installing Gimp. A short while later, I discovered that I could not access "Accessories" or even "Main menu" from "System===>Preferences".

So, I posted in the forums for help and these are the steps I've tried so far:

1) Tried to start alacarte from Alt + F2. Alacarte didn't start.

2) Tried to start Alacarte from Terminal. Received following error messages:

user@user:~$ alacarte

Traceback (most recent call last):
File "/usr/bin/alacarte", line 36, in <module>
main()
File "/usr/bin/alacarte", line 32, in main
app = MainWindow(datadir, version, sys.argv)
File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line 49, in __init__
self.editor = MenuEditor()
File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 36, in __init__
self.__loadMenus()
File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 46, in __loadMenus
self.applications.dom = xml.dom.minidom.parse(self.applications.path)
File "/usr/lib/python2.5/site-packages/_xmlplus/dom/minidom.py", line 1915, in parse
return expatbuilder.parse(file)
File "/usr/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py", line 926, in parse
result = builder.parseFile(fp)
File "/usr/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py", line 211, in parseFile
parser.Parse("", True)
xml.parsers.expat.ExpatError: no element found: line 1, column 0

3) Then, I was advised to try "sudo aptitude install python-xml python-lxml". That didn't work either: "Accessories" and "Main menu" still not working. (The person helping me, Pobega, thought it could be a Python or XML-related issue.)

4) Then, I was asked to try "sudo aptitude reinstall python2.5" . That too didn't resolve the "Accessories" and "Main menu" issue.

5) Suggested uninstalling Gimp and was asked to try "make uninstall Gimp" from /home/<user>/Desktop/gimp-2.2.14 So, Gimp 2.2.14 was uninstalled.

6) So, I was suggested to try this "sudo aptitude reinstall python2.5 gimp" Nope, that didn't do anything to fix my issue.

7) Was finally told that reinstalling Gnome or Ubuntu might be my only fix. :(

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Dee
Solved:
Last query:
Last reply:

This question was reopened

  • by Dee
Revision history for this message
Dee (dee24) said :
#1

Oh and each time I applied a step, I would restart the computer.

Revision history for this message
Dee (dee24) said :
#2

And I'm currently running Feisty Fawn (patched from beta to Final).

Revision history for this message
TraceyLedbetter (concept10) said :
#3

You may not need to reinstall Ubuntu or GNOME to correct this. Did you make sure your upgrade has been completed?

Revision history for this message
Dee (dee24) said :
#4

Yes, all updates have been installed. I even switched from the local server to the main server just to double-check.

And forgot to mention that my version of Feisty is 32 bit.

Revision history for this message
Dee (dee24) said :
#5

Yes, all updates have been installed. I even switched from the local server to the main server just to double-check.

And forgot to mention that my version of Feisty is 32 bit.

Revision history for this message
Best Dee (dee24) said :
#6

Okay, was advised by the friendly people #ubuntuforums-beginners to create a new user profile and it worked! It seems that certain config files became corrupted. :)

Revision history for this message
21M (21m-deactivatedaccount) said :
#7

For some reason my Applications menu disappeared and Alacarte started throwing that same output. What happened was that ~/.config/menus/applications.menu (for one) got corrupted somehow (in my case its contents were erased and customized launchers or at least their menu settings lost). Removing the file and running Alacarte regenerated it and fixed the problem for me.

Revision history for this message
Mark L (marklockyer) said :
#8

Also had the Applications menu stop working issue. After reading Shinoda's post above, I deleted the 'applications.menu' file (at 0KB) and renamed the latest 'applications.menu.undo-##' to 'applications.menu' and all works fine now. (Panic over)

Revision history for this message
Robert Gilland (rgilland1966) said :
#9

My applications menu disappeared altogether.
don't know how to create a new user. i have no options