package spamassassin 3.4.0-3ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1400669 reported by Dominique Desmorat
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
SpamAssassin
New
Undecided
Unassigned
udev (Ubuntu)
New
High
Unassigned

Bug Description

installation de firefox, sa compile, thunderbird incomplète

ProblemType: Package
DistroRelease: Ubuntu 14.10
Package: spamassassin 3.4.0-3ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-26.34-generic 3.16.7-ckt1
Uname: Linux 3.16.0-26-generic i686
ApportVersion: 2.14.7-0ubuntu8
Architecture: i386
Date: Tue Dec 9 11:05:09 2014
DuplicateSignature: package:spamassassin:3.4.0-3ubuntu1:subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2013-09-02 (462 days ago)
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release i386 (20100816.1)
PackageArchitecture: all
SourcePackage: spamassassin
Title: package spamassassin 3.4.0-3ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to utopic on 2014-10-25 (44 days ago)

Revision history for this message
Dominique Desmorat (dominiquedesmorat) wrote :
Revision history for this message
Dominique Desmorat (dominiquedesmorat) wrote :

help!!

tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in spamassassin (Ubuntu):
status: New → Confirmed
Revision history for this message
C. Jeffery Small (loyhz2ay-jeff-h670zbts) wrote :

Note: There seem to be multiple active bug reports regarding this problem, including one previously submitted by me. These might need to all be merged together.

OS: xubuntu 14.10
Error occurred when installing the evolution packages using synaptic.

In my case the error message are as follows:

Spamassassin subprocess post-install script returned error status 102
sa-compile dependency problems -- leaving unconfigured.

Note the exit status of 102 differs from the one reported by the original reporter.

This is the second time that spamassassin has screwed up my system. The previous time was when I attempted to install sendmail. The package database got so screwed up that I had to wipe the system and do a complete reinstall. After that fresh install, I encountered a similar problem with the udev package which is currently active as bug 1406735.

https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1406735

Eventually, rerunning the udev post-install script manually seemed to clear that problem. Then, as I reinstalled old software packages I ran back into this. From experience, I know that until this error is cleared, any further attempt to install packages will just lead to further corruptions. The last time this happend to me, I was unable to remove certain packages or install other new ones due to the package database errors that proliferated.

This is a serious problem that needs immediate investigation.

Revision history for this message
C. Jeffery Small (loyhz2ay-jeff-h670zbts) wrote :

Follow up to my previous note:

I have been working on a similar installation problem with the udev package and received some help from Martin Pitt. Based upon his suggestions, I ran the following command:

# env DPKG_MAINTSCRIPT_PACKAGE=spamassassin DPKG_MAINTSCRIPT_NAME=postinst sh -ex /var/lib/dpkg/info/spamassassin.postinst configure ; echo $?
+ set -e
+ [ configure = triggered ]
+ [ configure = configure ]
+ getent passwd debian-spamd
+ mkdir -p /var/lib/spamassassin
+ stat -c %U /var/lib/spamassassin
+ OWNER=debian-spamd
+ stat -c %G /var/lib/spamassassin
+ GROUP=debian-spamd
+ dpkg-statoverride --list /var/lib/spamassassin/sa-update-keys
+ [ debian-spamd:debian-spamd != debian-spamd:debian-spamd ]
+ test -d /var/lib/spamassassin/sa-update-keys
+ su - debian-spamd -c sa-update --gpghomedir /var/lib/spamassassin/sa-update-keys --import /usr/share/spamassassin/GPG.KEY
+ deb-systemd-helper debian-installed spamassassin.service
+ deb-systemd-helper unmask spamassassin.service
+ deb-systemd-helper --quiet was-enabled spamassassin.service
+ deb-systemd-helper update-state spamassassin.service
+ [ -x /etc/init.d/spamassassin ]
+ update-rc.d spamassassin defaults 19 21
+ [ -x /etc/init.d/spamassassin ]
+ invoke-rc.d spamassassin start
SpamAssassin Mail Filter Daemon: disabled, see /etc/default/spamassassin
0

OK, that looks promising. Now, when I returned to synaptic and installed another unrelated package, it then proceded to configure both spamassassin and sa-compile! There must be a flag somewhere that doesn't get updated when this manual command is run, so the package manager still thinks it needs to be performed. In any event, this appears to have cleared the problems and make the packages as properly installed. Unfortunately, I'm still unclear as to the source of the original problem.

Changed in spamassassin (Ubuntu):
importance: Undecided → High
Revision history for this message
C. Jeffery Small (loyhz2ay-jeff-h670zbts) wrote :

Follow-up to my two previous notes.

I discovered a self-made problem with a script on my system that was causing the invoke-rc.d step of the installation to fail. This may explain why the spamassassin postinst script did not run in this instance.

For more detains on the nature of bug for the udev package, see: https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1406735

Thus, my report here may be a false flag. However, the scripting error that caused the problem was not in place a few weeks ago when my attempts to install the sendmail package failed with spamassassin. I still believe that there may be an underlying problem with this particular package that seems to be causing many people difficulties.

Revision history for this message
Christopher (soft-kristal) wrote :

Mine is related to bug 1385817.

Revision history for this message
Robie Basak (racb) wrote :

The original error message from the reporter makes me think that this is some kind of init system problem, rather than a bug in spamassassin packaging. The problem could be a bug, or it could be a local misconfiguration.

I don't think there's any progress that can be made on this bug without finding steps to reproduce it. You may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html to understand what I mean. So I'm marking this bug as Incomplete for now. If you can find steps to reproduce it, please post them here and change the bug status back to New.

Changed in spamassassin (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Robie Basak (racb) wrote :

Correction. Seeing the other bug suggests udev is probably closer to the issue here, so reassigning and reopening.

affects: spamassassin (Ubuntu) → udev (Ubuntu)
Changed in udev (Ubuntu):
status: Incomplete → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.