Ubuntu install SSH software package openssh-server not yet available for installation candidate error

Source: Internet
Author: User
Tags ssh

The error is as follows:

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

Completing the dependency tree that is analyzing the package is reading state information ...

Complete now no available package openssh-server,

But he was quoted by other packages. This may mean that the missing package may have been discarded or can only be found in other publishing sources

E: Package Openssh-server not yet available for installation candidate

Solution : Analysis of the reason is that our apt-get is not updated, of course, if you are the latest system does not update, but I believe that many people need to update it, the Operation command is as follows:

sudo apt-get update

After the update is complete, execute:

sudo apt-get install Openssh-server

Finally we use the command ps-e|grep SSH to see the Open-server installation success, if the following screenshot of the red marked section, the installation is successful.

Ps-e|grep SSH

We can also use the ssh localhost command to detect whether the connection can be, if the following image, and to enter a password, the description is successful.


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.