Solution to dependency error reported by openssh-server Installation in ubuntu,

Source: Internet
Author: User

Solution to dependency error reported by openssh-server Installation in ubuntu,
System Environment

Linux user #50~14.04.1-Ubuntu SMP Wed Jul 13 01:06:37 UTC 2016 i686 i686 i686 GNU/Linux
Error reported

Run the following command to install openssh-server:

sudo apt-get install openssh-server

The installation was not successful and I received the following prompt:

The following software packages have dependency: openssh-server: Dependency: openssh-client (=. 6p1-2ubuntu1). 6p1-2ubuntu2.7 is about to be installed. Recommended: ncurses-term, but it will not be installed. Recommended: ssh-import-id, but it will not be installed. E: the error cannot be corrected, because you require some software packages to maintain the status quo, that is, they break the dependency between software packages.
Solution

This is because openssh-server depends on openssh-clien. Isn't ubuntu built-in openssh-client? The reason is that the built-in openssh-clien is different from the version on which the openssh-server to be installed. The version on which the client depends is. 6p1-2ubuntu1.

Therefore, we need to install the corresponding version of openssh-clien to overwrite the openssh-clien that comes with ubuntu:

$ Sudo apt-get install openssh-client = 1:6. 6p1-2ubuntu1 is reading the package list... the dependency tree of the software package being analyzed is reading status information... the following software packages recommended for installation: libpam-ssh keychain monkeysphere will be [downgraded]: openssh-client has upgraded 0 software packages, and 0 new software packages are installed, 1 software package is downgraded, 0 software packages are to be detached, and 0 software packages are not upgraded. Download the 577 kB software package. After decompression, 5,120 B of space will be empty. Do you want to continue? [Y/n] y get: 1 http://mirrors.aliyun.com/ubuntu/ trusty/main openssh-client i386. 6p1-2ubuntu1 [577 kB] downloading 577 kB takes 0 s (850 kB/s) dpkg: Warning: openssh-client will be removed from. 6p1-2ubuntu2.7 downgrade. 6p1-2ubuntu1 (Reading database... the system currently has 171781 files and directories installed .) Preparing to unpack... openssh-client_1 % 3a6. 6p1-2ubuntupolici386.deb... openssh-client. 6p1-2ubuntu1) Unpack. 6p1-2ubuntu2.7) on... processing the trigger for man-db (2.6.7.1-1ubuntu1... setting openssh-client. 6p1-2ubuntu1 )...

After the installation is complete, install openssh-server again and you will be able to install it successfully:

Run the ps command to find the ssh system process. If sshd is found, the installation is successful:

$ ps -e | grep ssh4723 ?        00:00:00 sshd

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.