The officially official Devuan Forum!

You are not logged in.

#2 Re: Other Issues » Installing openssh-client now failing in the docker container » Today 12:49:56

Okay, can confirm this has nothing to do with my setup but is a bug in the container or distro release, and that the permissions of `/usr/sbin` are the issue.

docker run --rm -it devuan/devuan:latest bash

root@1b0eba5523a3:/# apt-get update
Get:1 http://deb.devuan.org/merged excalibur InRelease [48.0 kB]

root@1b0eba5523a3:/# apt-get install -y git
Setting up openssh-client (1:10.0p1-7) ...
Insecure directory in $ENV{PATH} while running with -T switch at /usr/share/perl5/Debian/AdduserLogging.pm line 161.
dpkg: error processing package openssh-client (--configure):
 installed openssh-client package post-installation script subprocess returned error exit status 25
Errors were encountered while processing:
 openssh-client

root@1b0eba5523a3:/# stat /usr/sbin
  File: /usr/sbin
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 0,128   Inode: 22663       Links: 1
Access: (0777/drwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2025-11-07 12:44:41.539765134 +0000
Modify: 2025-11-07 12:44:04.020772808 +0000
Change: 2025-11-07 12:44:04.020772808 +0000
 Birth: 2025-11-07 12:44:03.418782666 +0000

root@1b0eba5523a3:/# chmod o-w /usr/sbin

root@1b0eba5523a3:/# stat /usr/sbin
  File: /usr/sbin
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 0,128   Inode: 22663       Links: 1
Access: (0775/drwxrwxr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2025-11-07 12:44:41.539765134 +0000
Modify: 2025-11-07 12:44:04.020772808 +0000
Change: 2025-11-07 12:44:59.292608274 +0000
 Birth: 2025-11-07 12:44:03.418782666 +0000

root@1b0eba5523a3:/# apt-get install -y git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.47.3-0+deb13u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up openssh-client (1:10.0p1-7) ...

#3 Re: Other Issues » Installing openssh-client now failing in the docker container » Today 12:34:37

Okay, did a verbose on the chmod and got back:

'/github/home/.local/share/dorothy/user/commands' could not be accessed
'/github/home/.config/dorothy/commands' could not be accessed
'/github/home/.local/share/dorothy/commands' could not be accessed
'/github/home/.config/dorothy/commands' could not be accessed
mode of '/github/home/.local/bin' retained as 0755 (rwxr-xr-x)
mode of '/usr/local/sbin' retained as 0755 (rwxr-xr-x)
mode of '/usr/local/bin' retained as 0755 (rwxr-xr-x)
mode of '/usr/sbin' changed from 0777 (rwxrwxrwx) to 0775 (rwxrwxr-x)
mode of '/usr/bin' retained as 0755 (rwxr-xr-x)
mode of '/sbin' retained as 0775 (rwxrwxr-x)
mode of '/bin' retained as 0755 (rwxr-xr-x)

So the cause of the failure seems to be this item of concern:

mode of '/usr/sbin' changed from 0777 (rwxrwxrwx) to 0775 (rwxrwxr-x)

#4 Re: Other Issues » Installing openssh-client now failing in the docker container » Today 12:27:47

Okay, I solved this by running `chmod -f o-w ...` on all paths in PATH. I am not yet sure which PATHs were the problem.

#5 Other Issues » Installing openssh-client now failing in the docker container » Today 01:10:45

balupton
Replies: 4

As of a few days ago, which attempting to install openssh-client inside the devuan docker container `devuan/devuan:latest` on github actions is resulting in the following error:

...
Get:13 http://deb.devuan.org/merged excalibur/main amd64 openssh-client amd64 1:10.0p1-7 [985 kB]
...
Setting up openssh-client (1:10.0p1-7) ...
Insecure directory in $ENV{PATH} while running with -T switch at /usr/share/perl5/Debian/AdduserLogging.pm line 161.
dpkg: error processing package openssh-client (--configure):
 installed openssh-client package post-installation script subprocess returned error exit status 25
...
Errors were encountered while processing:
 openssh-client
E: Sub-process /usr/bin/dpkg returned an error code (1)

Board footer

Forum Software