DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.