ubuntu apt-get 安装软件包时 出现依赖的包版本过高

今天在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了。

http://blog.chinaunix.net/uid-23094812-id-1995082.html

你可能感兴趣的:(linux,ubuntu)