$ sudo apt-GetInstall openssh-serverreading Package Lists ... Donebuilding Dependency Tree Reading state information ... Donesome packages could not be installed. This may mean the haverequested an impossible situation orifYou areusingThe unstabledistribution that some required packages has not yet been createdor been moved outof incoming.the following information may help to resolve the situation:the following packages has unmet Dependencie S: openssh -server:depends:openssh-client (= 1:5.9p1- 5ubuntu1) Recommends:xauth but it isNot going to be installed Recommends:ssh-import-id but it isNot going to being installede:unable to correct problems and you have held broken packages.
Some people say to unload openssh-client, but Openssh-client is a lot of packages rely on, a lot of xserver of the package are dependent on it, what should be done?
Fix it, first. A dependent version of Openssh-client (Legacy):
sudo apt-get install openssh-client=1:5.9p1-5ubuntu1
And then it's OK to install Openssh-server.
Ubuntu 12.04 Installation Openssh-server failed, how should I get it?