Ubuntu Install Openssh-server report relies on the wrong resolution process

Source: Internet
Author: User

Ubuntu comes with openssh-client, so you can

1 ssh[email protected]

To connect to Linux remotely

But to be connected via SSH, the Ubuntu system needs to be openssh-server and can be

1 ps-e | grepssh

To see if the sshd is not shown, it is not installed Openssh-server

Available through

1 sudoapt-get installopenssh-server

To install Openssh-server, if successful, the installation will succeed if it encounters

123456789101112 $ sudo Apt-get install openssh-server reading the package list ... Complete the reading status information ... Finish        There are some packages that cannot be installed. If you are using the unstable release, this may be     openssh-server: dependency: openssh-client (= 1:6.6P1-2UBUNTU1) e: cannot fix the error because you require certain packages to remain current, that is, they destroy the dependencies between packages.

This is because, Openssh-server is dependent on Openssh-clien, that Ubuntu did not bring openssh-client? The original Openssh-clien is the same as the version that is dependent on the Openssh-server to be installed.

1 1:6.6p1-2ubuntu1

So to install the corresponding version of the Openssh-clien, to cover off the Ubuntu comes with

1234567891011121314151617181920 $ sudo apt-get install openssh-client=1:6.6p1-2ubuntu1正在读取软件包列表... 完成正在分析软件包的依赖关系树       正在读取状态信息... 完成       建议安装的软件包:  libpam-ssh keychain monkeysphere下列软件包将被【降级】:  openssh-client升级了 0 个软件包,新安装了 0 个软件包,降级了 1 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。需要下载 566 kB 的软件包。解压缩后会消耗掉 0 B 的额外空间。您希望继续执行吗? [Y/n] y获取:1 http://cn.archive.ubuntu.com/ubuntu/ trusty/main openssh-client amd64 1:6.6p1-2ubuntu1 [566 kB]下载 566 kB,耗时 2秒 (212 kB/s)        dpkg:警告:downgrading openssh-client from 1:6.6p1-2ubuntu2 to 1:6.6p1-2ubuntu1(正在读取数据库 ... 系统当前共安装有 200015 个文件和目录。)Preparing to unpack .../openssh-client_1%3a6.6p1-2ubuntu1_amd64.deb ...Unpacking openssh-client (1:6.6p1-2ubuntu1) over (1:6.6p1-2ubuntu2) ...Processing triggers for man-db ( ...正在设置 openssh-client (1:6.6p1-2ubuntu1) ...

Can be seen, prompted the system openssh-client is degraded, so that the installation of Openssh-server can be successful!

Ubuntu Install Openssh-server report relies on the wrong resolution process

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.