package openssh-server 1:8.2p1-4ubuntu0.1 failed to install/upgrade: installed openssh-server package post-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
sh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/
Active: activating (auto-restart) (Result: exit-code) since Wed 2021-02-17 15:42:28 IST; 11ms ago
Docs: man:sshd(8)
Process: 24813 ExecStartPre=
dpkg: error processing package openssh-server (--configure):
installed openssh-server package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (245.4-4ubuntu3.4) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for ufw (0.36-6) ...
Errors were encountered while processing:
openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: openssh-server 1:8.2p1-4ubuntu0.1
ProcVersionSign
Uname: Linux 5.4.0-65-generic x86_64
ApportVersion: 2.20.11-
AptOrdering:
openssh-
NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckR
Date: Wed Feb 17 15:42:28 2021
ErrorMessage: installed openssh-server package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2021-01-05 (42 days ago)
InstallationMedia: Ubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python3.8, Python 3.8.5, python-is-python3, 3.8.2-4
RelatedPackageV
dpkg 1.19.7ubuntu3
apt 2.0.4
SSHDConfig: Error: command ['/usr/sbin/sshd', '-T'] failed with exit code 255: /etc/ssh/
SourcePackage: openssh
Title: package openssh-server 1:8.2p1-4ubuntu0.1 failed to install/upgrade: installed openssh-server package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to focal on 2021-02-04 (12 days ago)
tags: | removed: need-duplicate-check |
Hello, note this line from the automatically added contents:
SSHDConfig: Error: command ['/usr/sbin/sshd', '-T'] failed with exit code 255: /etc/ssh/ sshd_config line 1: garbage at end of line; "to".
It looks like your /etc/ssh/ sshd_config file may be incorrect.
Thanks