package openssh-server 1:8.3p1-1ubuntu0.1 failed to install/upgrade: podproces zainstalowany pakiet openssh-server skrypt post-installation zwrócił kod błędu 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
that happen when i try to install ssh
ProblemType: Package
DistroRelease: Ubuntu 20.10
Package: openssh-server 1:8.3p1-1ubuntu0.1
ProcVersionSign
Uname: Linux 5.8.0-49-generic x86_64
ApportVersion: 2.20.11-0ubuntu50.5
AptOrdering:
ncurses-
openssh-
openssh-
ssh-import-
NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckR
Date: Thu Apr 15 19:12:21 2021
ErrorMessage: podproces zainstalowany pakiet openssh-server skrypt post-installation zwrócił kod błędu 1
InstallationDate: Installed on 2021-04-15 (0 days ago)
InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Release amd64 (20201022)
Python3Details: /usr/bin/python3.8, Python 3.8.6, python3-minimal, 3.8.6-0ubuntu1
PythonDetails: N/A
RebootRequiredPkgs: gnome-shell
RelatedPackageV
dpkg 1.20.5ubuntu2
apt 2.1.10ubuntu0.3
SSHDConfig: Error: command ['/usr/sbin/sshd', '-T'] failed with exit code 1: /etc/ssh/
SourcePackage: openssh
Title: package openssh-server 1:8.3p1-1ubuntu0.1 failed to install/upgrade: podproces zainstalowany pakiet openssh-server skrypt post-installation zwrócił kod błędu 1
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
Hello jerryd,
Thanks for taking the time to file the bug and making Ubuntu server better.
Seeing from the logs that you posted, I can see: sshd_config" sshd_config manually and thus it fails to re-install properly.
"Not replacing deleted config file /etc/ssh/
...which essentially means that you might have tried to remove the /etc/ssh/
For this issue you can do the following to fix this back:
$ apt purge openssh-server
$ apt install openssh-server
This should fix everything and the installation should go fine.
Furthermore, I also tried to install openssh-server in a Groovy container and the installation went fine! Since this is not really a bug in the package and more of a local issue, I am marking this as "Invalid", but should you feel that it's really a bug in the package, please let us know why and provide more details and set the status to "New" again. Once you do, we'll pick this up again and we can work out something together.
Thanks, again!