Ubuntu 14.04 openssh-serverのインストールエラー

openssh-serverをサクッとインストールして、sshしよー、と思って以下のコマンドを実行したらエラー。

~$ 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:6.6p1-2ubuntu1) but 1:6.6p1-2ubuntu2 is to be installed
                  Recommends: ncurses-term 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-serverには、openssh-clientの1:6.6p1-2ubuntu1が依存しているが、現在インストールされているのは1:6.6p1-2ubuntu2 だよ、という意味なので、以下のようにして解決しました。

$ sudo apt-get install openssh-client=1:6.6p1-2ubuntu1

$ sudo apt-get install openssh-server

こちらのサイトを参考にしました

14.04 - SSH installation errors - Ask Ubuntu


補足

ssh-serverインストール後、早速ssh接続しようとして、またエラーになりました。
ssh接続を開始すると即切断される様子。
原因は、/etc/hosts.allow に sshd を追加していないためでした。
以下のようにして解決。
※末尾のドットを忘れずに付与!(私は忘れてssh接続しようとしたら"ssh_exchange_identification: Connection closed by remote host"と言われて悩みました。。)

# vi /etc/hosts.allow 

in.telnetd: 192.168.
sshd: 192.168.

参考
SSHの設定 - sshd:tech.ckme.co.jp