I'm having hard time updating openssh-server in ubuntu 12.04, I stupidly downloaded .deb file for 14.04 and of course it didn't work :/
I've tried sudo apt-get -f install, it just removed my openssh
Here's the output installing openssh 6.6
vagrant@precise64:~$ sudo dpkg -i openssh-server_6.6p1-2ubuntu1_amd64.deb
Selecting previously unselected package openssh-server.
(Reading database ... 84054 files and directories currently installed.)
Unpacking openssh-server (from openssh-server_6.6p1-2ubuntu1_amd64.deb) ...
dpkg: dependency problems prevent configuration of openssh-server:
openssh-server depends on libc6 (>= 2.17); however:
Version of libc6 on system is 2.15-0ubuntu10.5.
openssh-server depends on libck-connector0 (>= 0.2.1); however:
Package libck-connector0 is not installed.
openssh-server depends on init-system-helpers (>= 1.13~); however:
Package init-system-helpers is not installed.
openssh-server depends on openssh-client (= 1:6.6p1-2ubuntu1); however:
Version of openssh-client on system is 1:5.9p1-5ubuntu1.3.
openssh-server depends on sysv-rc (>= 2.88dsf-24) | file-rc (>= 0.8.16); however:
Version of sysv-rc on system is 2.88dsf-13.10ubuntu11.1.
Package file-rc is not installed.
openssh-server depends on lsb-base (>= 4.1+Debian3); however:
Version of lsb-base on system is 4.0-0ubuntu20.3.
openssh-server depends on openssh-sftp-server; however:
Package openssh-sftp-server is not installed.
dpkg: error processing openssh-server (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Best Answer
The Code you Input:
Should install the OpenSSH-Server and not Remove it. Anyway, If you want to install it the Correct way, Open Up a Terminal Using Ctrl+Alt+T and Type:
and it will install The OpenSSH-Server, and if it already Installed, It Will Update it and if it's up to date then nothing will be done, Also, If You have trouble with the Command Above Try:
And As listed above, Ubuntu Upgrade OpenSSH-Server to an Older Version than the Latest, So To Install the Latest, First we need to remove any existing old OpenSSH-Server, Bring up a Command Prompt Using Ctrl+Alt+T and Type the Following, Pressing Enter after Each Line:
and Then to Install the latest
And you should now Have OpenSSH-Server 6.6 P1, To Check, Type in a Terminal: