gpt4 book ai didi

ubuntu - OpenSSH 服务器安装导致错误 E : Unable to correct problems, 你持有损坏的包

转载 作者:行者123 更新时间:2023-12-04 18:25:24 28 4
gpt4 key购买 nike

我尝试在 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.

最佳答案

试试这个对我有用。

sudo apt purge openssh-client

实际上 openssh-client 已安装在您的系统上,您必须先将其删除,然后使用此命令安装 openssh-server。
sudo apt install openssh-server

关于ubuntu - OpenSSH 服务器安装导致错误 E : Unable to correct problems, 你持有损坏的包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56409321/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com