#986064 spamassassin: Security update failed tue to error in post-installation script

#986064#5
Date:
2021-03-28 23:44:15 UTC
From:
To:
I installed today's security update (3.4.2-1+deb10u3) and got the following error:

Setting up spamassassin (3.4.2-1+deb10u3) ...
dpkg: error processing package spamassassin (--configure):
 installed spamassassin package post-installation script subprocess returned err
or exit status 1
Errors were encountered while processing:
 spamassassin
E: Sub-process /usr/bin/dpkg returned an error code (1)

I am happy to look into the reason, why the post-installation script failed, but how can I display the line number where it fails?

Stephan

#986064#10
Date:
2021-03-30 02:59:07 UTC
From:
To:
Control: severity -1 important

Downgrading from grave because I've been unable to reproduce it when
testing various upgrade scenarios.  I suspect a local issue that's not
fully handled by the postinst script.

Can you post the output of "find /var/lib/spamassassin/ -ls"

See also #986034, which is reporting a similar upgrade issue.  I'm not
merging them yet as it's not clear that the root cause is the same.

Note that the postinst script did not change with this package update.

noah

#986064#17
Date:
2021-03-30 06:03:16 UTC
From:
To:
Thanks Noah, for looking into this.

I attach the output of "find /var/lib/spamassassin/ -ls". All files are
owned by debian-spamd:debian-spamd ...

Stephan

#986064#22
Date:
2021-03-30 11:42:43 UTC
From:
To:
Hi, 

the same error here:


Running sa-compile (may take a long time)
chmod: Beim Setzen der Zugriffsrechte für '/var/lib/spamassassin/compil
ed/5.024/3.004002/Mail/SpamAssassin/CompiledRegexps/body_0.pm': Die Ope
ration ist nicht erlaubt


The prob is that the user debian-spamd can not change the the rights:

112984212    444 -r--r--r--
   1 root         root           450878 Mär 28 08:22 /var/lib/spamassas
sin/compiled/5.024/3.004002/Mail/SpamAssassin/CompiledRegexps/body_0.pm



CU
Jörg