Linux ubuntu 安装 openssh-server 报错
用 Ubuntu-20 安装 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.6p1-4ubuntu0.4)
Depends: openssh-sftp-server 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.
解决方案:
根据报错消息提示:
- 先安装 openssh-client
sudo apt install openssh-client=1:7.6p1-4
- 然后再安装 openssh-server
sudo apt install openssh-server