Question

[Solved] update-grub command not found

I’m trying to update my grub config on ubuntu server 12.04.3 to include the GRUB_RECORDFAIL_TIMEOUT variable as described here: https://help.ubuntu.com/community/Grub2.

The procedure says run update-grub after making the change but it’s doesn’t appear to be on my system. How can I install this?

Solution #1:

I would reinstall grub by running the following command:

sudo apt-get update; sudo apt-get install --reinstall grub
Respondent: jhilmer

Solution #2:

The update-grub command was created to make things easier – it is simply a shell script in /usr/sbin/:

#!/bin/sh
set -e
exec grub-mkconfig -o /boot/grub/grub.cfg "[email protected]"

If it is not there, you can make your own. To do that, run this, and paste in the above script:

sudo nano /usr/sbin/update-grub

Save with Ctrl+O, and exit with Ctrl+X.

Then run these:

sudo chown root:root /usr/sbin/update-grub
sudo chmod 755 /usr/sbin/update-grub

And you should now be able to run update-grub. 🙂

Respondent: Wilf

Solution #3:

you need to run it with root priviledges, run: sudo update-grub. Unless you removed it, its there in the system.

Respondent: Bhavin Doshi

The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Most Popular

To Top
India and Pakistan’s steroid-soaked rhetoric over Kashmir will come back to haunt them both clenbuterol australia bossier man pleads guilty for leadership role in anabolic steriod distribution conspiracy