package openssh-server 1:8.4p1-5ubuntu1.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
not sure it just didn't install
ProblemType: Package
DistroRelease: Ubuntu 21.04
Package: openssh-server 1:8.4p1-5ubuntu1.1
ProcVersionSign
Uname: Linux 5.11.0-31-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu65.1
AptOrdering:
ncurses-
openssh-
openssh-
ssh-import-
NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckR
Date: Thu Jul 15 11:05:39 2021
ErrorMessage: installed openssh-server package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2021-03-19 (154 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
Python3Details: /usr/bin/python3.9, Python 3.9.5, python3-minimal, 3.9.4-1
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.18-9
RelatedPackageV
dpkg 1.20.9ubuntu1
apt 2.2.4ubuntu0.1
SourcePackage: openssh
Title: package openssh-server 1:8.4p1-5ubuntu1.1 failed to install/upgrade: installed openssh-server package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to hirsute on 2021-05-10 (101 days ago)
| tags: | removed: need-duplicate-check |

From the log:
Bind to port 22 on 0.0.0.0 failed: Address already in use.
Something on your system already blocks the default SSH port which the service will try to consume on install/update. You'd want to find what owns this port and remove/reconfigure that - afterwards the openssh-server should install/upgrade fine again.
You can find this process via:
$ sudo ss -pl4 '( sport = :ssh )'
Thank you for your report.
This looks like a local configuration problem, rather than a bug in Ubuntu.
You can find pointers to get help for this sort of problem here: http:// www.ubuntu. com/support/ community
Since we use this bug tracker to track bugs in Ubuntu, rather than configuration problems, I'm marking this bug as Invalid. This helps us to focus on fixing bugs in Ubuntu.
If you believe that this is really a bug, then you may find it helpful to read "How to report bugs effectively" http:// www.chiark. greenend. org.uk/ ~sgtatham/ bugs.html. We'd be grateful if you would then provide a more complete description of the problem, explain why you believe this is a bug in Ubuntu rather than a problem specific to your system, and then change the bug status back to New.