rmdir: failed to remove '/etc/systemd/system/ssh.socket.d': Directory not empty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Kinetic |
Fix Released
|
Low
|
Unassigned |
Bug Description
[Impact]
If a user a has an existing drop-in config for ssh.socket in /etc/systemd/
Errors were encountered while processing:
openssh-server
Exception during pm.DoInstall(): E:Sub-process /usr/bin/dpkg returned an error code (1)
Could not install the upgrades
The upgrade has aborted. Your system could be in an unusable state. A
recovery will run now (dpkg --configure -a).
Please report this bug in a browser at
http://
and attach the files in /var/log/
E:Sub-process /usr/bin/dpkg returned an error code (1)
Setting up openssh-server (1:9.0p1-1ubuntu7) ...
rmdir: failed to remove '/etc/systemd/
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
[Test Plan]
* On a Jammy machine, install openssh-server if necessary. Edit /etc/ssh/
$ cat /etc/ssh/
[... defaults everywhere else ...]
#Port 22
#AddressFamily any
ListenAddress 0.0.0.0
ListenAddress ::
[... defaults everywhere else ...]
* Create a trivial drop-in override for ssh.socket:
$ systemctl edit ssh.socket
$ cat /etc/systemd/
[Unit]
Description=Testing
* Now perform an upgrade to Kinetic, and observe the dpkg error.
[Where problems could occur]
The solution should be to use rmdir's --ignore-
Changed in openssh (Ubuntu Kinetic): | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in openssh (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: |
added: verification-done-kinetic removed: verification-needed-kinetic |
Hello Nick, or anyone else affected,
Accepted openssh into kinetic-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ openssh/ 1:9.0p1- 1ubuntu7. 1 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification- needed- kinetic to verification- done-kinetic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed- kinetic. In either case, without details of your testing we will not be able to proceed.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance for helping!
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.