I was able to fix this by stopping `ssh.service` and `ssh.socket`. After
that the upgrade worked (by `apt upgrade`).

You should be able to stop both of those while still being connected (I
tested this afterwards to be sure) since sshd seems to fork a new
process that handles the connection. If you don't dare test this then I
suggest running an ssh server on the side (`sudo sshd -f <sshd_config>
-h /etc/ssh/ssh_host_rsa_key -D` - sshd_config should be a new config
where you at least change the listen port)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2078461

Title:
  package openssh-server 1:9.6p1-3ubuntu13.5 failed to install/upgrade:
  installed openssh-server package post-installation script subprocess
  returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2078461/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to