1

i've run this bellow command

sudo apt-get install openssh-server

getting bellow errors

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

I also tried with

/etc/init.d/ssh restart

got response as,

bash: /etc/init.d/ssh: No such file or directory
A J
  • 11,367
  • 17
  • 44
  • 59

1 Answers1

3

This is because 11.10 went End Of Life a year or so ago - it would be much better to upgrade to a newer release like 14.04, which is available from here.

An alternative would be to download the packages you need from http://packages.ubuntu.com - e.g. openssh-server server can be found here.
You will likely also need to download some the dependencies as well (highlighted with the red dot - you may have some/most installed anyway).

A much better method than downloading the packages would be to use the method that can be found here:
How to install software or upgrade from an old unsupported release?

Wilf
  • 30,194
  • 17
  • 108
  • 164