Skip to content

Don't restart sshd when it's not running

Description:

Updating openssh results in a failed attempt to restart the sshd service.

resolving dependencies...
looking for conflicting packages...

Package (1)   Old Version  New Version  Net Change

core/openssh  10.2p1-1     10.2p1-1       0.00 MiB

Total Installed Size:  6.35 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                                                                                                                                             [##########################################################################################################] 100%
(1/1) checking package integrity                                                                                                                                           [##########################################################################################################] 100%
(1/1) loading package files                                                                                                                                                [##########################################################################################################] 100%
(1/1) checking for file conflicts                                                                                                                                          [##########################################################################################################] 100%
(1/1) checking available disk space                                                                                                                                        [##########################################################################################################] 100%
:: Processing package changes...
(1/1) reinstalling openssh                                                                                                                                                 [##########################################################################################################] 100%
:: Running post-transaction hooks...
(1/6) Reloading system manager configuration...
(2/6) Reloading user manager configuration...
(3/6) Restarting marked services...
(4/6) Creating temporary files...
(5/6) Arming ConditionNeedsUpdate...
(6/6) Restart a running sshd.service
  Invalid operation 'restart'
error: command failed to execute correctly

openssh package gets pulled in thusly...

~ ❯ pactree -r openssh
openssh
└─gcr-4
  └─gvfs
    ├─gvfs-mtp
    └─nautilus
      └─nautilus-python

Additional info:

  • package version(s): openssh 10.2p1-1
  • config and/or log files: N/A

Steps to reproduce:

  1. Install openssh without sshd service enabled.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information