On Mon, Jul 27, 2020 at 10:21:56AM -0400, Nigel Horne wrote: > Running "apt install sa-compile" gives: > > Setting up sa-compile (3.4.5~pre1-1) ... > Running sa-compile (may take a long time) > JSON::PP 2.27300 is not available > at /usr/share/perl5/CPAN/Meta.pm line 616. > command '/usr/bin/perl Makefile.PL > PREFIX=/tmp/.spamassassin3996658TferDhtmp/ignored > INSTALLSITEARCH=/var/lib/spamassassin/compiled/5.030/3.004005 > >>/tmp/.spamassassin3996658TferDhtmp/log' failed: exit 13 > dpkg: error processing package sa-compile (--configure): > installed sa-compile package post-installation script subprocess > returned error exit status 25 > Errors were encountered while processing: > sa-compile > needrestart is being skipped since dpkg has failed > E: Sub-process /usr/bin/dpkg returned an error code (1) > > But, JSON:PP is available:
I haven't been able to reproduce this. Neither spamassassin nor sa-compile directly depend on JSON::PP. That error is coming from CPAN::Meta.pm. It's also not clear that it's the actual cause of the sa-compile failure. Is there anything in the log file that sa-compile generated? (/tmp/.spamassassin3996658TferDhtmp/log from your run, but it's a randomly generated location) I suspect that there's something wrong with your perl installation, possibly caused by files in /usr/local/share/perl and/or /usr/local/lib/x86_64-linux-gnu/perl overriding files provided by packages. noah