Sa-compile upgrade error

OS type and version Ubuntu Linux 20.04.6
Webmin version 2.021
Virtualmin version 7.5

Hi, has anyone get error when upgrade packages.

#apt upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
Get more security updates through Ubuntu Pro with ‘esm-apps’ enabled:
libmagickcore-6.q16-6-extra libopenexr-dev libmagickwand-6.q16-6
libmagickwand-6-headers fail2ban ntpdate libmagickcore-6-headers
libmagickcore-6-arch-config libmagickwand-6.q16-dev libopenexr24
libmagickcore-6.q16-6 libmagickwand-dev libmagickcore-6.q16-dev
Learn more about Ubuntu Pro at Ubuntu Pro | Ubuntu
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.
Do you want to continue? [Y/n] y
[master 1f9ce879] saving uncommitted changes in /etc prior to apt run
142 files changed, 604 insertions(+), 604 deletions(-)
Setting up sa-compile (3.4.4-1ubuntu1.2) …
Running sa-compile (may take a long time)
Apr 12 10:03:24.443 [3895405] info: config: SpamAssassin failed to parse line, no value provided for “user_scores_dsn”, skipping: user_scores_dsn
sa-compile: not compiling; ‘spamassassin --lint’ check failed!..]
dpkg: error processing package sa-compile (–configure):
installed sa-compile package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

I found solution

In /etc/mail/spamassassin/ file I removed user_scores_dsn line

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.