[Bug 2020474] Re: openssh-server-1:9.2p1-2ubuntu1 cannot be installed from active ssh session
Nick Rosbrook
2020474 at bugs.launchpad.net
Fri Jun 2 19:29:24 UTC 2023
You are correct that this is the same issue. However, the reason you are seeing this in Lunar is that
you are running with -proposed enabled, which is where packages are staged before being released to -release, or -updates for stable release updates. So, this means that you installed 1:9.0p1-1ubuntu8.1 from lunar-proposed, which contains the bug that causes the problem on upgrade. However, thanks to this bug report from you, we have uploaded 1:9.0p1-1ubuntu8.2 to lunar-proposed to fix the underlying issue *before* openssh is released to lunar-updates. This means that users who upgrade to 1:9.0p1-1ubuntu8.2 from 1:9.0p1-1ubuntu8 (i.e. they never installed 1:9.0p1-1ubuntu8.1) will not see this bug. Since a buggy version of openssh was not yet released to lunar-updates, we did not apply the extra patches that we did in mantic to work around the bug on upgrade (for mantic, a buggy version was released to mantic-release, so the situation was a bit different).
So, anyone running -proposed on kinetic or lunar will hit this bug once,
but those users should be able to reboot, run dpkg --configure -a, and
be sorted.
--
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/2020474
Title:
openssh-server-1:9.2p1-2ubuntu1 cannot be installed from active ssh
session
Status in openssh package in Ubuntu:
Fix Committed
Bug description:
Installation seems to fail on restarting ssh.socket via systemctl
Setting up openssh-server (1:9.2p1-2ubuntu1) ...
rescue-ssh.target is a disabled or a static unit not running, not starting it.
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 145.
dpkg: error processing package openssh-server (--configure):
installed openssh-server package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ systemctl status ssh.socket
× ssh.socket - OpenBSD Secure Shell server socket
Loaded: loaded (/lib/systemd/system/ssh.socket; enabled; preset: enabled)
Active: failed (Result: resources) since Tue 2023-05-23 15:01:41 CEST; 48s ago
Duration: 3h 6min 36.071s
Triggers: ● ssh.service
Listen: [::]:22 (Stream)
CPU: 2ms
May 23 11:55:05 venus2 systemd[1]: Listening on ssh.socket - OpenBSD Secure Shell server socket.
May 23 15:01:41 venus2 systemd[1]: ssh.socket: Deactivated successfully.
May 23 15:01:41 venus2 systemd[1]: Closed ssh.socket - OpenBSD Secure Shell server socket.
May 23 15:01:41 venus2 systemd[1]: Stopping ssh.socket - OpenBSD Secure Shell server socket...
May 23 15:01:41 venus2 systemd[2631]: ssh.socket: Failed to create listening socket ([::]:22): Address already in use
May 23 15:01:41 venus2 systemd[1]: ssh.socket: Failed to receive listening socket ([::]:22): Input/output error
May 23 15:01:41 venus2 systemd[1]: ssh.socket: Failed to listen on sockets: Input/output error
May 23 15:01:41 venus2 systemd[1]: ssh.socket: Failed with result 'resources'.
May 23 15:01:41 venus2 systemd[1]: Failed to listen on ssh.socket - OpenBSD Secure Shell server socket.
At this point, sshd is no longer listening for new connections. A
manual systemctl restart of ssh.socket fails with the same error. I
am ssh-ed into this box, so I *think* the failure is because my
session is already sitting on port 22, maybe? The only way I can be
sure I will be able to ssh to this box again is to reboot it (so that
ssh.socket can start cleanly).
$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu Mantic Minotaur (development branch)
Release: 23.10
$ apt policy openssh-server
openssh-server:
Installed: 1:9.2p1-2ubuntu1
Candidate: 1:9.2p1-2ubuntu1
Version table:
*** 1:9.2p1-2ubuntu1 500
500 http://ch.ports.ubuntu.com/ubuntu-ports mantic-proposed/main riscv64 Packages
100 /var/lib/dpkg/status
1:9.0p1-1ubuntu8.1 500
500 http://ch.ports.ubuntu.com/ubuntu-ports mantic/main riscv64 Packages
ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: openssh-server 1:9.2p1-2ubuntu1
ProcVersionSignature: Ubuntu 6.2.0-19.19.1-generic 6.2.6
Uname: Linux 6.2.0-19-generic riscv64
ApportVersion: 2.26.1-0ubuntu3
Architecture: riscv64
CasperMD5CheckResult: unknown
CloudArchitecture: riscv64
CloudBuildName: server
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSerial: 20230413.1
CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud-net)
Date: Tue May 23 14:58:35 2023
SSHDConfig: Error: command ['/usr/sbin/sshd', '-T'] failed with exit code 1: /etc/ssh/sshd_config.d/50-cloud-init.conf: Permission denied
SourcePackage: openssh
UpgradeStatus: Upgraded to mantic on 2023-05-12 (11 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2020474/+subscriptions
More information about the foundations-bugs
mailing list