【问题标题】:OpenSSH server installation results in error E: Unable to correct problems, you have held broken packagesOpenSSH 服务器安装导致错误 E: Unable to correct questions, you have hold broken packages
【发布时间】:2019-10-17 22:39:05
【问题描述】:

我尝试像这样在 Ubuntu 16.04 上安装 OpenSSH 服务器:

sudo apt-get install openssh-server

但是,它显示以下消息:

dell@dell-Latitude-E6400:~$ sudo apt-get install openssh-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 openssh-server : Depends: openssh-client (= 1:7.2p2-4) but 1:7.2p2-4ubuntu2.8 is to be installed
                  Depends: openssh-sftp-server but it is not going to be installed
                  Recommends: ncurses-term but it is not going to be installed
                  Recommends: ssh-import-id but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

【问题讨论】:

  • 任何人请帮我解决这个错误
  • Stackoverflow 用于软件开发方面的帮助。您应该考虑在Ask UbuntuUnix & Linux 上而不是在这里提问。

标签: ubuntu apt openssh


【解决方案1】:

试试这个对我有用的。

sudo apt purge openssh-client

实际上你的系统上已经安装了openssh-client,你必须先删除它,然后用这个命令安装openssh-server。

sudo apt install openssh-server

【讨论】:

    猜你喜欢
    • 2015-04-11
    • 2018-03-19
    • 2013-04-14
    • 1970-01-01
    • 2011-06-15
    • 2023-03-29
    • 1970-01-01
    • 2016-07-21
    • 2022-12-27
    相关资源
    最近更新 更多