View Full Version : [ubuntu] Update-grub says my /usr is broken?
bubba_169
January 27th, 2009, 08:09 PM
Im confused and google is turning out nothing for me? After updating to a newer kernel, 2.6.27-11 from 2.6.27-7, I noticed it wasn't showing up in grub. I tried running update-grub and the exact error message I get is:
$ sudo update-grub
Your /usr is broken, please fix it before call this wrapper!
Any ideas?
breusshe
January 29th, 2009, 02:48 PM
Yeah, just figured it out. You need to do the following:
chmod 744 /usr/sbin/update-grub
The problem is that when you call "update-grub" it runs the script /sbin/update-grub (not in /usr), this file checks a couple of things, one has to do with your kernel conf file stuff (not real sure what it is about) and the other makes sure that /usr/sbin/update-grub exists and is executable. Right now, /usr/sbin/update-grub is not executable.
So, run the chmod and then "sudo update-grub" and it will work.
bubba_169
January 30th, 2009, 08:32 PM
Thank you, worked a treat :D
Is it just me or has the thanks button gone walkies?
.. And I cant mark this as solved?
beeman
June 6th, 2009, 11:16 PM
Thanks, this worked (Linux Mint 6) :)
rohitfeb14
October 14th, 2009, 05:47 AM
In my case the file /usr/sbin/update-grub is missing..
What should i do?
breusshe
October 14th, 2009, 01:31 PM
Reinstall grub-gfxboot package. It is the one that has update-grub in it.
vikrant82
October 15th, 2009, 04:32 PM
There is no package with name grub-gfxboot, but there's a gfxboot package which I already installed. Still, no /usr/sbin/update-grub but there's a /sbin/update-grub.
$sudo update-grub
Your /usr is broken, please fix it before call this wrapper!
vikrant82
October 15th, 2009, 04:44 PM
Well the correct package was grub-pc, which installed /usr/sbin/update-grub.
The package is installed by default, but it got removed for me when I had installed a package 'grub-choose-default'.
breusshe
October 16th, 2009, 01:15 AM
Oh, sorry for pointing you to the wrong package. Glad you got it going again.
azimout
October 18th, 2009, 09:29 AM
The funny thing is, installing 'grub-pc' to get back /usr/sbin/update-grub removed the package 'grub', which contained /sbin/update-grub, which gave the above error message in the first place :-)
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.