Ubuntu 12.04 和 openssh-server

Mrm*_*mot 7 ssh

我在 Ubuntu 12.04 桌面上安装 openssh 服务器和客户端时遇到问题。

我想做一个家庭服务器,但我是 Windows 用户,我需要一个图形界面。首先,我使用了命令sudo apt-get update并更新了所有内容。当我输入时:sudo apt-get 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:5.9p1-5ubuntu1) but 1:5.9p1-5ubuntu1.1 is 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.
Run Code Online (Sandbox Code Playgroud)

我是 Linux 新手,我在 Google 上搜索了错误或问题,但没有答案:/

有人可以帮忙吗?

小智 10

我曾经也有过一样的问题。我试过这个,它对我有用。

sudo apt-get install openssh-client=1:5.9p1-5ubuntu1
sudo apt-get install openssh-server
Run Code Online (Sandbox Code Playgroud)