[Solved]openssh-server installation problem after removed from the server – Debian

Yesterday, I got an error while trying to install the openssh-server after I removed it from one Debian server. I had tried with the “apt-get” command, and the error is below:

Command:

apt-get install openssh-server

Error:

[email protected]:/# 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

I had searched a lot, and finally fixed it simply by upgrading the “apt-get”. If you are in the same location, you can use the below command to came out from there.

Solution:

sudo apt-get update
sudo apt-get install openssh-server

That’s it 🙂 🙂

 

Related posts:
How to install webmin on Debian 4, 5, 6 – Step by step procedure

Post navigation

Arunlal Ashok

Operations Engineer at Endurance International Group. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com
Please follow the LinkedIn page

One thought on “[Solved]openssh-server installation problem after removed from the server – Debian

  1. [email protected]:~# sudo apt-get update
    Reading package lists… Done
    [email protected]:~# 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
    [email protected]:~#

    i not soo lucky like u. can any one solve my problem

Leave a Reply

Your email address will not be published. Required fields are marked *