Ubuntu 12.04 LTS bash: sudo: command not found

user1845827 picture user1845827 · Mar 24, 2013 · Viewed 52.5k times · Source

I am new to Linux terminal, now I tried to use sudo, apt-get, whereis etc., commands in linux it returns an error bash: sudo: command not found

my command

 $sudo apt-get install libc6-dev

Error is

 bash: sudo: command not found.

Please let me know what could be the issue here, thank you in advance

Answer

Ajouve picture Ajouve · Mar 24, 2013

Try to login with su

$ su -

and install sudo

# apt-get install sudo