Hi, Solution from dna did not work for me.  
I did the recoomended steps from robin this way: 

1. sudo /usr/sbin/sshd -t && echo PASS || echo FAIL

Result: PASS

2. sudo systemctl restart ssh.service

Results: 
Job for ssh.service failed because the control process exited with error code. 
See "systemctl status ssh.service" and "journalctl -xe" for details.

3. sudo systemctl status ssh.service

ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: 
enabled)
   Active: failed (Result: exit-code) since So 2018-02-11 14:57:02 CET; 39s ago
  Process: 12337 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS (code=exited, 
status=255)
 Main PID: 12337 (code=exited, status=255)

Feb 11 14:57:02 d........e systemd[1]: Starting OpenBSD Secure Shell server...
Feb 11 14:57:02 d........e sshd[12337]: error: Bind to port XXXXX on 0.0.0.0 
failed: Address already in 
Feb 11 14:57:02 d........e sshd[12337]: error: Bind to port XXXXX on :: failed: 
Address already in use.
Feb 11 14:57:02 d........e sshd[12337]: fatal: Cannot bind any address.
Feb 11 14:57:02 d........e systemd[1]: ssh.service: Main process exited, 
code=exited, status=255/n/a
Feb 11 14:57:02 d........e systemd[1]: Failed to start OpenBSD Secure Shell 
server.
Feb 11 14:57:02 d........e systemd[1]: ssh.service: Unit entered failed state.
Feb 11 14:57:02 d........e systemd[1]: ssh.service: Failed with result 
'exit-code'.

Any Idea?

Thanks

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1745027

Title:
  package openssh-server 1:7.2p2-4ubuntu2.4 failed to install/upgrade:
  subprocess installed post-installation script returned error exit
  status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1745027/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to