Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm running Ubuntu and trying to install Ajax Push Engine:

This is everything I do since opening the terminal to getting the error:

lisandrov@lisandrov-Satellite-L655:~/Desktop$ ssh lisv22@chusmix.com
Password: 
Last login: Fri Sep  9 22:03:07 2011 from 190.220.54.6
-bash-3.2$ ls
ape.deb  backup  data  html  scc  tmp
-bash-3.2$ sudo dpkg -i ape.deb
-bash: sudo: command not found

I don't think I'm doing anything wrong, but I just started learning to use the terminal 10 minutes ago so I have no idea why I'm getting this error. Also dpkg works perfectly outside SSH.

What could be the cause for this error?

share|improve this question
    
Are you running Debian/Ubuntu? –  birryree Sep 10 '11 at 4:57
    
yes i'm running Ubuntu –  Lisandro Vaccaro Sep 10 '11 at 4:59
    
Check if /usr/bin/dpkg exists and if your PATH variable is set properly. Unless you've seriously mucked around with your system, I don't think you're running a Debian based distro. –  Noufal Ibrahim Sep 10 '11 at 5:04
2  
Log in as root and install sudo first. It seems as if it's missing. –  Kusalananda Sep 10 '11 at 9:03
1  
@lisandro, you are aware that the computer that you ssh from and the chusmix server are separate machines, right? And that the setup on one might very well be different from the other. The chusmix server might, for example (if it's not your server), not have sudo installed and might even not be a Ubuntu machine as far as I know. I suggest that you read up on how to use a Unix system from the command line, for example from the Ubuntu documentation UsingTheTerminal and AptGetHowto. –  Kusalananda Sep 11 '11 at 9:30
show 5 more comments

migrated from stackoverflow.com Sep 10 '11 at 8:58

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 3 down vote accepted

The error is that your shell cannot find sudo.

-bash: sudo: command not found

Almost certainly, sudo needs to be installed. Login as root and run:

# apt-get install sudo
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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