Roger, so steps to reproduce: apt update apt install -y libcap2-bin apt install -y mariadb-server ... Setting up mariadb-server-core (1:10.11.11-0+deb12u1) ... Invalid file '/usr/sbin/mysqld' for capability operation Setcap failed on /usr/sbin/mysqld, required with --memlock if insufficent RLIMIT_MEMLOCK Setting up libperl5.36:amd64 (5.36.0-7+deb12u1) ...
Apt however completes without exit code, so any test for this needs to specifically test for the capability usage.