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.
echo $PATHandwhich sudoshow? – ajgringo619 Aug 04 '19 at 18:33whichdoesn'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 04 '19 at 19:14/usr/bin/sudo apt-get update. – ajgringo619 Aug 04 '19 at 19:25sudois still installed? – ajgringo619 Aug 04 '19 at 19:34su -? If so, try reinstalling sudo -sudo apt-get install --reinstall sudo. – ajgringo619 Aug 04 '19 at 19:41locate sudo; if that doesn't find it, tryfind / -name sudo. – ajgringo619 Aug 04 '19 at 19:58su -? – ajgringo619 Aug 04 '19 at 20:01dpkg -i /path/to/sudo-deb. – ajgringo619 Aug 04 '19 at 20:17