[Bug 1713435] Re: package openssh-server 1:7.2p2-4ubuntu2.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Andreas Hasenack
andreas at canonical.com
Tue Aug 29 21:25:31 UTC 2017
Oh, my mistake. The journal log was attached and had this bit of info:
Aug 28 14:36:40 hostname sshd[21687]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Aug 28 14:36:40 hostname sshd[21687]: error: Bind to port 22 on :: failed: Address already in use.
Aug 28 14:36:40 hostname sshd[21687]: fatal: Cannot bind any address.
Aug 28 14:36:40 hostname systemd[1]: Failed to start OpenBSD Secure Shell server.
Aug 28 14:36:40 hostname systemd[1]: ssh.service: Failed with result 'exit-code'.
Looks like something else was already listening on ssh's port.
In addition to the status command from my previous command, please also attach the output of the following ones:
- ps fauxw
- sudo netstat -anp
Thanks!
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1713435
Title:
package openssh-server 1:7.2p2-4ubuntu2.2 failed to install/upgrade:
subprocess installed post-installation script returned error exit
status 1
Status in openssh package in Ubuntu:
Incomplete
Bug description:
invoke-rc.d: initscript ssh, action "start" failed.
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2017-08-28 14:36:40 IST; 9ms ago
Process: 21687 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS (code=exited, status=255)
Main PID: 21687 (code=exited, status=255)
Aug 28 14:36:40 LinuxMachine systemd[1]: Starting OpenBSD Secure Shell server...
Aug 28 14:36:40 LinuxMachine systemd[1]: ssh.service: Main process exited, c...a
Aug 28 14:36:40 LinuxMachine systemd[1]: Failed to start OpenBSD Secure Shel....
Aug 28 14:36:40 LinuxMachine systemd[1]: ssh.service: Unit entered failed state.
Aug 28 14:36:40 LinuxMachine systemd[1]: ssh.service: Failed with result 'ex....
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: openssh-server 1:7.2p2-4ubuntu2.2
ProcVersionSignature: Ubuntu 4.4.0-92.115-generic 4.4.76
Uname: Linux 4.4.0-92-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
Date: Mon Aug 28 14:36:40 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2016-12-12 (258 days ago)
InstallationMedia: Ubuntu-GNOME 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160720)
RelatedPackageVersions:
dpkg 1.18.4ubuntu1.2
apt 1.2.24
SourcePackage: openssh
Title: package openssh-server 1:7.2p2-4ubuntu2.2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1713435/+subscriptions
More information about the foundations-bugs
mailing list