ubuntu 12.04 安装 openssh-server 失败,请问怎么该弄?

Posted 君子笑而不语

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu 12.04 安装 openssh-server 失败,请问怎么该弄?相关的知识,希望对你有一定的参考价值。

$ 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:5.9p1-5ubuntu1)
                  Recommends: xauth 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 , 但是 openssh-client 被很多包依赖, 很多的 xserver 的包都依赖它, 这该怎么办好?

搞定, 先装一个依赖的指定版本的 openssh-client (旧版):

sudo apt-get install openssh-client=1:5.9p1-5ubuntu1

然后再装 openssh-server 就OK了。

 

以上是关于ubuntu 12.04 安装 openssh-server 失败,请问怎么该弄?的主要内容,如果未能解决你的问题,请参考以下文章

无法在 ubuntu 12.04 上安装 rvm

ubuntu 12.04 中怎么安装 jdk 7

Ubuntu 12.04 Precise Pangolin 的 Arduino 安装指南

Linux - Ubuntu中文输入法安装(Ubuntu 12.04)

无法在 Ubuntu 12.04 上安装 mysql 服务器

ubuntu12.04下安装搜狗拼音