今天在virtualbox里安装了ubuntu,想安装openssh-server却发现了这样一个问题:

The following packages have unmet dependencies:
openssh-server: Depends: openssh-client (= 1:5.3p1-3ubuntu3) but 1:5.3p1-3ubuntu5 is to be installed
E: Broken packages
原因很简单,你应该能看的懂了,依赖版本过高,小菜一碟:
先将依赖的版本降低就行了
sudo apt-get install openssh-client= 1:5.3p1-3ubuntu3
enter后会显示downgrading....的,然后再次安装openssh-server就ok了。
本文介绍了解决Ubuntu系统中安装openssh-server时遇到的依赖版本过高问题的方法。通过手动降低依赖版本的方式,成功安装并运行SSH服务。
1391





