LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   update-grub: command not found (https://www.linuxquestions.org/questions/debian-26/update-grub-command-not-found-4175599276/)

Fixit7 02-08-2017 07:52 AM

update-grub: command not found
 
Is upgrade-grub no longer used in Debian ?

Code:

andy@new-host:~$ update-grub
bash: update-grub: command not found
andy@new-host:~$ su update-grub
No passwd entry for user 'update-grub'


TB0ne 02-08-2017 08:07 AM

Quote:

Originally Posted by Fixit7 (Post 5667111)
Is upgrade-grub no longer used in Debian ?
Code:

andy@new-host:~$ update-grub
bash: update-grub: command not found
andy@new-host:~$ su update-grub
No passwd entry for user 'update-grub'


AGAIN:
  • Version/distro of Linux? You mention Debian, but omit the version.
  • New installation? Existing?
  • What actual problem/concern do you have? Why are you doing this?
Did you actually LOOK AT and THINK ABOUT what you typed in above??? Did you bother to try to LOOK for that command?? A VERY brief Google search turns up lots about this:
  • "command not found" = the command you typed in, isn't in your path
  • "which update-grub" = tells you the path where that program is, among several other ways you could have found it
  • path is "/usr/sbin" = Won't be in your path as a regular user, which tells you why it wasn't found at first
  • "su update-grub" = Will NEVER work, because there is no "update-grub" user. Read the man page on the "su" command and how to use it.
Either type in "su - root" to assume root, or "sudo /usr/sbin/update-grub"

Again...read the "Question Guidelines", as you've been asked to many times now, and do basic research on your own before posting.

michaelk 02-08-2017 08:46 AM

update-grub is in /usr/sbin which is not normally in a users path environment.

typical usage, su will change to a different user versus sudo which executes commands as a different user.

rtmistler 02-08-2017 09:15 AM

Quote:

Originally Posted by Fixit7 (Post 5667111)
Is upgrade-grub no longer used in Debian ?

Code:

andy@new-host:~$ update-grub
bash: update-grub: command not found
andy@new-host:~$ su update-grub
No passwd entry for user 'update-grub'


Please note that your LQ profile shows a different distribution. What would be helpful to see here would be the output of:
Code:

$ cat /etc/debian_version
Neverless michaelk is correct about the location for update-grub. I suggest you search the /bin, /sbin, as well as the /usr/bin, and /usr/sbin directories and see if you have a binary in there, a broken symbolic link, or an empty file. Any customizations to your Debian release would be helpful to know about as well.

For additional help, please review this information about how better to formulate your questions to avoid confusion with your questions.

pan64 02-08-2017 09:30 AM

you might want to use: sudo /usr/sbin/update-grub, but first you need to fix your sudoers file (as it was handled in your other thread)

Fixit7 02-08-2017 11:24 AM

My debian version is 8.7.

petelq 02-08-2017 11:57 AM

Quote:

Originally Posted by Fixit7 (Post 5667253)
My debian version is 8.7.

Some systems don't use grub-update, try grub-mkconfig. (see my other post for you)

yancek 02-08-2017 10:19 PM

The grub-mkconfig command suggested above is the standard and all update-grub does is run this script. The update-grub is pretty specifically an Ubuntu thing as far as I know, the grub-mkconfig should work on any system including Ubuntu for Grub2.

Fixit7 02-09-2017 01:44 PM

Thanks gentlemen for all your help and info.

Hope you have a great day.


All times are GMT -5. The time now is 02:03 PM.