package openssh-server 1:7.3p1-1ubuntu0.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Setting up openssh-server (1:7.3p1-
Job for ssh.service failed because the control process exited with error code.
See "systemctl status ssh.service" and "journalctl -xe" for details.
invoke-rc.d: initscript ssh, action "restart" failed.
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/
Active: failed (Result: exit-code) since Fri 2017-05-12 12:05:21 BST; 7ms ago
Process: 21819 ExecStart=
Main PID: 21819 (code=exited, status=255)
May 12 12:05:21 chris-XPS-13-9343 systemd[1]: Starting OpenBSD Secure Shell ....
May 12 12:05:21 chris-XPS-13-9343 sshd[21819]: /etc/ssh/
May 12 12:05:21 chris-XPS-13-9343 systemd[1]: ssh.service: Main process exit...a
May 12 12:05:21 chris-XPS-13-9343 systemd[1]: Failed to start OpenBSD Secure....
May 12 12:05:21 chris-XPS-13-9343 systemd[1]: ssh.service: Unit entered fail....
May 12 12:05:21 chris-XPS-13-9343 systemd[1]: ssh.service: Failed with resul....
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package openssh-server (--configure):
subprocess installed post-installation script returned error exit status 1
ProblemType: Package
DistroRelease: Ubuntu 16.10
Package: openssh-server 1:7.3p1-1ubuntu0.1
Uname: Linux 4.7.6-040706-
NonfreeKernelMo
ApportVersion: 2.20.3-0ubuntu8.2
Architecture: amd64
Date: Fri May 12 11:25:50 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2015-07-16 (665 days ago)
InstallationMedia: Ubuntu-GNOME 15.04 "Vivid Vervet" - Release amd64 (20150422)
RelatedPackageV
dpkg 1.18.10ubuntu1.1
apt 1.3.5
SSHDConfig: Error: command ['/usr/sbin/sshd', '-T'] failed with exit code 255: /etc/ssh/
SourcePackage: openssh
Title: package openssh-server 1:7.3p1-1ubuntu0.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to yakkety on 2017-01-24 (107 days ago)
tags: | removed: need-duplicate-check |
From the log: sshd_config line 92: bad port number in PermitOpen
SSHDConfig: Error: command ['/usr/sbin/sshd', '-T'] failed with exit code 255: /etc/ssh/
On upgrades services need to be restarted and the config for sshd seems to have a problem in its config. Please see [1] for that config.
[1]: http:// manpages. ubuntu. com/manpages/ zesty/man5/ sshd_config. 5.html