'sudo apt-get install openssh-server' reports 'E: Package openssh-server has no installation candidate'

Asked by spriest

I am unable to install openssh-server on Ubuntu Edgy Elf (6.10). Here's my output:

steve@basil:~$ sudo apt-get install openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openssh-server 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
E: Package openssh-server has no installation candidate

How can I get openssh-server?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jeremy Visser (jeremy-visser) said :
#1

Quickie: Try running 'sudo apt-get update' first. It might help, but I'm not sure.

Revision history for this message
David Morris (dave-greenacre) said :
#2

sudo apt-get install ssh-server

just worked for me and it installed the openssh-server

Revision history for this message
DaveS (daviddulcehombre) said :
#3

I had the same problem. All the sources in /etc/apt/sources.list were commented out on installation. I uncommented the appropriate sources, then followed the previous suggestions.
sudo apt-get update

sudo apt-get install ssh-server

Success!

Revision history for this message
DaveS (daviddulcehombre) said :
#4

oops, make that second command:

sudo apt-get install openssh-server

Revision history for this message
ruban (sj-ruban) said :
#5

i am unable to install sudo apt-get install openssh-server

and sudo apt-get install telnetd
the time of installation i am getting following error
E: Package openssh-server has no installation candidate

pls give solution for this

Revision history for this message
naufal (musp-student) said :
#6

hello,
download the openssh-server for edgy from this link:
http://packages.ubuntu.com/edgy/net/openssh-server
hope this help...

Revision history for this message
Hadi (hadilashkari) said :
#7

hey everyone
I installed ubuntu-server 12.04 on my Vbox and try to install openssh-server.

sudo apt-get install openssh-server

did not work so as you suggested I tried:

sudo apt-get install ssh-server

successfully this command installed openssh-server, so now I can connect to remote server by

ssh root@ubuntu

But scp command failed!!!

scp myfile root@ubuntu:/root
bash: scp: command not found

any suggestion would be appreciated.

Can you help with this problem?

Provide an answer of your own, or ask spriest for more information if necessary.

To post a message you must log in.