View Full Version : [ubuntu] 11.04 "bash: sudo: No such file or directory"
brainard52
July 10th, 2011, 03:36 AM
This is the same with git. I'm not sure if any other commands are like this, but I know that both of those commands are installed.
oldos2er
July 10th, 2011, 04:30 PM
What is the exact command you're typing?
papibe
July 11th, 2011, 07:21 PM
Maybe it is a path problem. Try this:
$ whereis sudo
sudo: /usr/bin/sudo /usr/lib/sudo /usr/share/man/man8/sudo.8.gz
or
$ ls /usr/bin/sudo
/usr/bin/sudo
to see if it is in the system. And then try to run it like this:
$ /usr/bin/sudo
Regards.
mcduck
July 11th, 2011, 07:37 PM
Maybe it is a path problem. Try this:
$ whereis sudo
sudo: /usr/bin/sudo /usr/lib/sudo /usr/share/man/man8/sudo.8.gz
or
$ ls /usr/bin/sudo
/usr/bin/sudo
to see if it is in the system. And then try to run it like this:
$ /usr/bin/sudo
Regards.
It's not missing the "sudo" command, the error message actually tells that "sudo" can't find the file or directory brainard52 is trying to access. (the "sudo:" part in the error tells that it's sudo that gave that error message)
brainard52: If you can give an example of a command that gave you this error, we'll probably be able to tell you what's wrong with the command.
brainard52
July 12th, 2011, 05:28 PM
Actually, it is giving me an error right when I first open up the terminal. I'm not sure why it's giving me this.
bash: export: `PATH:~/pogeymon-online/bin/': not a valid identifier
pogeymon-online is the name of a file that I used the git command to download. I wonder if that Had anything to do with it.
papibe
July 12th, 2011, 06:30 PM
Could you post the result of this command?
$ grep -i path .bashrc
Regards.
brainard52
July 12th, 2011, 07:53 PM
bash: $: No such file or directory
WorMzy
July 12th, 2011, 07:58 PM
Don't type the $. That just means "run this as a normal user". A "#" means "run this as root".
grep -i path .bashrc
AlphaLexman
July 12th, 2011, 08:19 PM
@ the OP: What is the output of...
echo $PATH
brainard52
July 13th, 2011, 02:33 AM
grep -i path .bashrc gives me
bash: grep: No such file or directory
echo $PATH gives me a blank line
papibe
July 13th, 2011, 04:06 AM
It looks like you tried to customize your ~/.bashrc , you made a syntax error, and the important variable PATH got blanked.
Edit your ~/.bashrc and remove that change. Probably the line that says:
PATH:~/pogeymon-online/bin/
Hope it help.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.