I had the same issue :
Running sa-compile (may take a long time)
This account is currently not available.
dpkg: error processing package sa-compile (--configure):
installed sa-compile package post-installation script subprocess
returned error exit status 1
Errors were encountered while processing:
sa-compile
to fix in /etc/passwd
old:
debian-spamd:x:111:118::/var/lib/spamassassin:/usr/sbin/nologin
new:
debian-spamd:x:111:118::/var/lib/spamassassin:/bin/bash
I had tried moving /etc/profile.d out of the way , that did not fix the
error here.
we are using debian stable
# apt show sa-compile
Package: sa-compile
Version: 3.4.2-1+deb10u3