Ubuntu 12.04 and openssh-server
I have a problem installing openssh server and client on Ubuntu 12.04 desktop.
I want to make a home server, but I am a Windows user and I need a graphic interface. First of all, I used the command sudo apt-get update
and I updated all. When I typed: sudo apt-get openssh-server
I got this:
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) but 1:5.9p1-5ubuntu1.1 is 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.
I am a newb in Linux, and I Googled the error or problem but no answer :/
Can anybody help?
Solution 1:
I have had the same problem. I tried this and it works for me.
sudo apt-get install openssh-client=1:5.9p1-5ubuntu1
sudo apt-get install openssh-server
Solution 2:
Posting because I've spent waaaay too many hours trying to figure this out:
MadMike's answer almost got me there...what I had to do was:
sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu precise main restricted"
sudo apt-get update
sudo apt-get install openssh-client=1:5.9p1-5ubuntu1
sudo apt-get install openssh-server
and you're done!
Solution 3:
On fresh install of Ubuntu 12.04.5 Desktop i386, I just had the same problem.
sudo apt-get install e2fslibs=1.42-1ubuntu2
sudo apt-get install openssh-client=1:5.9p1-5ubuntu1
sudo apt-get install openssh-server=1:5.9p1-5ubuntu1
This solved it for me.