LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /usr/bin/update-menus file missing (https://www.linuxquestions.org/questions/linux-newbie-8/usr-bin-update-menus-file-missing-933780/)

kogev 03-10-2012 01:14 PM

/usr/bin/update-menus file missing
 
ubuntu 10.04 lts; kernel 2.6.32.38; menu 2.1.43ubuntu1 failed
chmod:cannot access '/usr/bin/update-menus':
no such file or directory.
how can i rebuilt the update-menus file

ukiuki 03-12-2012 12:36 AM

With synaptic package manager reinstall it, the package name is "menu".

Regards

Satyaveer Arya 03-12-2012 01:04 AM

You have to install the menu package :

Code:

$ sudo apt-get install menu
OR

Code:

$ sudo update-desktop-database
it performs a similar function.

kogev 03-12-2012 02:55 PM

Thank you ukjuki and Satyaueer Arya for responding
Synaptic shows menu as already installed; Tried to mark for removal; fails because of missing update-menus; tried sudo apt-get remove menu; fails again because of missing update-menus; tried sudo apt-get purge menu; failed for same reason. Then decided to take a short cut by copying update-menus from another laptop using a usb stick; sudo su to get # prompt; #cp -a /usr/bin/update-menus /media/backup then #cp -a /media/backup/update-menus /usr/bin. ls /usr/bin and update-menus was there; apt-get remove menu worked. (update-menus was gone as expected); back to synaptic menu was removed.checked menu for installation and everything was fine, and update-menus was back in /usr/bin. I am sure there must be a more elegant way to proceed, but that worked for me. while update-menus was missing a tentative upgrade to a package with kernel 2.6.32.39 left me with a scrambled screen, now i can boot with 2.6.32.39 and its ok.

Regards


All times are GMT -5. The time now is 04:30 PM.