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 am using Ubuntu 12.04 and am trying to install SSH using the below command:

[root@avi ~]# sudo apt-get install ssh

However I am getting this error:

Reading package lists... Done
Building dependency tree     
Reading state information... Done
Package ssh is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:

  openssh-client ssh-askpass-gnome

E: Package ssh has no installation candidate

I also tried this command:

[root@avi ~]# sudo apt-get install openssh-server

How can I install it successfully?

share|improve this question
    
In short: Some other package depends on ssh ("is referred to by another package"), but no source provides it ("ssh has no installation candidate"). Please do an apt-cache depend ssh to figure out which package causes the problem. Additionally, please state whether you use some 3rd party repositories (e.g. ppas) which might have introduced the troublemaker, and if so, which one(s). –  Izzy Jul 24 '12 at 8:40

1 Answer 1

up vote 1 down vote accepted

I noticed this in what you posted:

However the following packages replace it:

  openssh-client ssh-askpass-gnome

The command to use open-ssh that is already installed (you proved it with what you provided) is simply

ssh (host IP or host URL)
share|improve this answer
    
Everett. Please don't edit the OP's question to add to your answer. Question edits or for formatting, clarification, and general cleanup. Not to help you answer. If you need to quote the OP do as I have to your answer. Happy Answering :) –  KronoS Jul 24 '12 at 5:53
    
Thank you for your assistance. –  Everett Jul 24 '12 at 5:54
    
Another thing to note is the use of the "code" button. Just FYI. –  KronoS Jul 24 '12 at 5:58
    
Honestly, thank you for pointing that out, I will make more judicious use of it. –  Everett Jul 24 '12 at 6:00
    
No prob, and you're welcome. –  KronoS Jul 24 '12 at 6:01

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.