LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-08-2017, 07:52 AM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
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'
 
Old 02-08-2017, 08:07 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,671

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by Fixit7 View Post
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.
 
Old 02-08-2017, 08:46 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,742

Rep: Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923
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.

Last edited by michaelk; 02-08-2017 at 08:49 AM.
 
Old 02-08-2017, 09:15 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by Fixit7 View Post
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.
 
Old 02-08-2017, 09:30 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,927

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
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)
 
Old 02-08-2017, 11:24 AM   #6
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
My debian version is 8.7.
 
Old 02-08-2017, 11:57 AM   #7
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
Quote:
Originally Posted by Fixit7 View Post
My debian version is 8.7.
Some systems don't use grub-update, try grub-mkconfig. (see my other post for you)
 
Old 02-08-2017, 10:19 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,535

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
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.
 
Old 02-09-2017, 01:44 PM   #9
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Thanks gentlemen for all your help and info.

Hope you have a great day.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
update-rc.d Command Not Found Ryanteck Debian 2 08-02-2011 09:29 AM
update-grub: command not found utkarshrawat Linux - Newbie 2 06-16-2011 02:42 AM
[SOLVED] update-grub: command not found, in OpenSuse 11.2 Aquarius_Girl Linux - Newbie 18 02-27-2011 06:42 AM
grub error 17, but 'sudo grub' = command not found davidstvz Ubuntu 2 08-02-2010 09:09 AM
update-menus: command not found juanjavier_xxx Debian 2 07-16-2005 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration