Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
    
the correct command to use when installing software is sudo apt-get install <package-name>. In your case, make sure your computer is fully up to date: sudo apt-get update && sudo apt-get upgrade then install openssh sudo apt-get install openssh-server –  amc Sep 19 '13 at 1:20
    
@amc I'm pretty sure he did use the correct command judging from the output; it's just a typo in his question. –  Alaa Sep 19 '13 at 7:15
add comment

2 Answers

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
share|improve this answer
add comment

The correct command for installation of a package is sudo apt-get install <package-name>

Type in the terminal window sudo apt-get update && sudo apt-get install openssh-server

share|improve this answer
2  
I'm pretty sure he did use the correct command judging from the output; it's just a typo in his question. –  Alaa Sep 19 '13 at 7:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.