package openssh-server 1:7.2p2-4ubuntu2.6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have installed all updates to my system recently.
Then I tried to connect to this system from my LAN and was unable to connect.
So I tried to restart ssh service:
sudo service ssh restart
Job for ssh.service failed because the control process exited with error code. See "systemctl status ssh.service" and "journalctl -xe" for details.
фев 04 23:22:00 norbert-vaio systemd[1]: Failed to start OpenBSD Secure Shell server.
фев 04 23:22:00 norbert-vaio systemd[1]: ssh.service: Unit entered failed state.
фев 04 23:22:00 norbert-vaio systemd[1]: ssh.service: Failed with result 'exit-code'.
фев 04 23:22:00 norbert-vaio systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
фев 04 23:22:00 norbert-vaio systemd[1]: Stopped OpenBSD Secure Shell server.
фев 04 23:22:00 norbert-vaio systemd[1]: ssh.service: Start request repeated too quickly.
фев 04 23:22:00 norbert-vaio systemd[1]: Failed to start OpenBSD Secure Shell server.
фев 04 23:22:00 norbert-vaio systemd[1]: ssh.service: Unit entered failed state.
фев 04 23:22:00 norbert-vaio systemd[1]: ssh.service: Failed with result 'start-limit-hit'.
Then I tried to reinstall it
$ sudo apt-get install --reinstall openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/335 kB of archives.
After this operation, 0 B of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 878149 files and directories currently installed.)
Preparing to unpack .../openssh-
Unpacking openssh-server (1:7.2p2-
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu21.15) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
WARN: uid is 0 but '/' is owned by 1004
WARN: / is group writable!
Processing triggers for man-db (2.7.5-1) ...
Setting up openssh-server (1:7.2p2-
Unsafe symlinks encountered in /var/run/sshd, refusing.
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/
insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup'
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/
insserv: warning: script 'binfmt-support' missing LSB tags and overrides
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `binfmt-support'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `binfmt-support'
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: activating (auto-restart) (Result: exit-code) since Пн 2019-02-04 23:28:33 MSK; 9ms ago
Process: 23843 ExecStartPre=
Main PID: 23206 (code=exited, status=0/SUCCESS)
фев 04 23:28:33 norbert-vaio systemd[1]: Failed to start OpenBSD Secure Shell server.
фев 04 23:28:33 norbert-vaio systemd[1]: ssh.service: Unit entered failed state.
фев 04 23:28:33 norbert-vaio systemd[1]: ssh.service: Failed with result 'exit-code'.
dpkg: error processing package openssh-server (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
and got this bug.
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: openssh-server 1:7.2p2-4ubuntu2.6
ProcVersionSign
Uname: Linux 4.4.0-138-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2.18
AptOrdering:
openssh-server: Install
openssh-server: Configure
NULL: ConfigurePending
Architecture: amd64
Date: Mon Feb 4 23:26:36 2019
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2010-12-05 (2983 days ago)
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
RelatedPackageV
dpkg 1.18.4ubuntu1.5
apt 1.2.29ubuntu0.1
SourcePackage: openssh
Title: package openssh-server 1:7.2p2-4ubuntu2.6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to xenial on 2017-06-24 (589 days ago)
modified.
tags: | removed: need-duplicate-check |
Thanks for filing this bug in Ubuntu.
There are some interesting warnings in the logs you provided:
WARN: uid is 0 but '/' is owned by 1004
WARN: / is group writable!
and
Setting up openssh-server (1:7.2p2- 4ubuntu2. 6) ...
Unsafe symlinks encountered in /var/run/sshd, refusing.
More details should be present in /var/log/syslog, /var/log/auth.log and/or in the output of journalctl -xe.
Could you please inspect those and report back, or attach them to this bug?