[Bug 1803633] Re: package sa-compile 3.4.2-0ubuntu0.14.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 25

Andreas Hasenack andreas at canonical.com
Mon Nov 19 14:03:32 UTC 2018


Thanks for filing this bug in Ubuntu.

Your logs show that the postinst of sa-compile is failing:
Setting up sa-compile (3.4.2-0ubuntu0.14.04.1) ...
Running sa-compile (may take a long time)
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o: unrecognized relocation (0x2a) in section `.init'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make: *** [blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.so] Error 1
command 'make PREFIX=/tmp/.spamassassin30894w5EWWQtmp/ignored INSTALLSITEARCH=/var/lib/spamassassin/compiled/5.018/3.004002 >>/tmp/.spamassassin30894w5EWWQtmp/log' failed: exit 2
dpkg: error processing package sa-compile (--configure):
 subprocess installed post-installation script returned error exit status 25

Specifically:
sa_compile() {
    OWNER=$(stat -c '%U' /var/lib/spamassassin)
    # Compile, if rules have previously been compiled, and it's possible
    if [ -x /usr/bin/re2c -a -x /usr/bin/sa-compile ]; then
        echo "Running sa-compile (may take a long time)"
        su - $OWNER -c "sa-compile --quiet"
        invoke-rc.d spamassassin restart
    fi
}

A fresh trusty install of sa-compile finish properly, so something must
have changed in your system.

Can you please run this command as root and paste the output here:

su - $(stat -c '%U' /var/lib/spamassassin) -c sa-compile


It's the same command as in the postinst script, I just removed the --quiet option

Also, let's check that crti.o file. This is mine on a fresh trusty
container:

root at trusty-sacompile:~# l /usr/lib/x86_64-linux-gnu/crti.o
-rw-r--r-- 1 root root 1.4K Jan 15  2018 /usr/lib/x86_64-linux-gnu/crti.o

root at trusty-sacompile:~# md5sum /usr/lib/x86_64-linux-gnu/crti.o
10928fa2a94ba8eb8bf5ffa292e88d48  /usr/lib/x86_64-linux-gnu/crti.o

root at trusty-sacompile:~# dpkg-query -W libc6-dev
libc6-dev:amd64	2.19-0ubuntu6.14

What is your output for the above commands?


** Changed in: spamassassin (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to spamassassin in Ubuntu.
https://bugs.launchpad.net/bugs/1803633

Title:
  package sa-compile 3.4.2-0ubuntu0.14.04.1 failed to install/upgrade:
  subprocess installed post-installation script returned error exit
  status 25

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/spamassassin/+bug/1803633/+subscriptions



More information about the Ubuntu-server-bugs mailing list