When installing SSH in Ubuntu, the software package openssh-server does not have a candidate for installation.

Source: Internet
Author: User
When installing ssh in Ubuntu, the software package openssh-server does not have a candidate for installation. The following error occurs: sudoapt-getinstallopensshserver is reading the package list... the dependency tree of the software package being analyzed is reading status information... there is no available software package openssh-server, but it is referenced by other software packages. This may mean that the missing software package may have been discarded, or only

When installing ssh in Ubuntu, the software package openssh-server does not have a candidate for installation.

The error is as follows::

Sudo apt-get install opensshserver is reading the package list...

The dependency tree of the software package being analyzed is reading status information...

There is no available software package openssh-server,

But he is referenced by other software packages. This may mean that the missing software package may have been discarded, or it can only be found in other release sources.

E: The software package openssh-server has no candidates for installation.

Solution: The reason for the analysis is that our apt-get is not updated. Of course, if your system is the latest, you do not need to update it. But I believe many people need to update it. The operation command is as follows:

Sudo apt-get update

After the update is completed, execute:

Sudo apt-get install openssh-server

Finally, run the command ps-e | grep ssh to check whether the open-server is successfully installed. If the following red lines are displayed, the installation is successful.

Ps-e | grep ssh

We can also use the ssh localhost command to check whether the connection can be established. If a password is required, the connection is successful.

SSH password-free login configuration http://www.linuxidc.com/Linux/2013-03/80488.htm under CentOS 6.0

Approach to improving the SSH login authentication speed for Ubuntu http://www.linuxidc.com/Linux/2014-09/106810.htm

Enable SSH service for Android phones to remotely access Ubuntu 14.04 http://www.linuxidc.com/Linux/2014-09/106809.htm

How to add a dual authentication http://www.linuxidc.com/Linux/2014-08/105998.htm for SSH in Linux

Configure the SFTP environment http://www.linuxidc.com/Linux/2014-08/105865.htm for non-SSH users in Linux

Http://www.linuxidc.com/Linux/2014-06/103627.htm for configuring and managing SSH services on Linux

SSH getting started basic learning tutorials http://www.linuxidc.com/Linux/2014-06/103008.htm

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-01/112033.htm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.