0

This happened to me after installing java. I believe I messed with the ./bashrc file if I'm correct.

I've checked my files and sudo is still there, but ubuntu seems to not be able to find it.

Before installing java I could use sudo.

Any help is greatly appriciated.

  • 2
    What does echo $PATH and which sudo show? – ajgringo619 Aug 4 at 18:33
  • echo $PATH is the default path, but which sudo is empty – Carter Aug 4 at 19:07
  • sudo should be in /usr/bin; if which doesn't see it, then your path is definitely not the default. Please post your path, along with any entry in ~/.bashrc that references it. – ajgringo619 Aug 4 at 19:14
  • /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin – Carter Aug 4 at 19:22
  • 1
    OK - try running, as a test, /usr/bin/sudo apt-get update. – ajgringo619 Aug 4 at 19:25
1

Try to reinstall sudo:

pkexec apt-get install --reinstall sudo
  • ok thank you i did it – cmak.fr Aug 5 at 6:17

Not the answer you're looking for? Browse other questions tagged or ask your own question.