do-release-upgrade LTS 12.04.5 -> 14.04.1 --- package spamassassin 3.4.0-1ubuntu2.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
spamassassin (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Part of the upgrade output:
Installing new version of config file /etc/cron.
Installing new version of config file /etc/init.
Warning: The home dir /var/lib/
Adding system user `debian-spamd' (UID 116) ...
Adding new group `debian-spamd' (GID 125) ...
Adding new user `debian-spamd' (UID 116) with group `debian-spamd' ...
The home directory `/var/lib/
adduser: Warning: The home directory `/var/lib/
-su: 33: [: -eq: unexpected operator
-su: 129: Syntax error: "(" unexpected (expecting "fi")
dpkg: error processing package spamassassin (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libxml-parser-perl (2.41-1build3) ...
No apport report written because MaxReports is reached already
ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: spamassassin 3.4.0-1ubuntu2.1
ProcVersionSign
Uname: Linux 3.2.0-76-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
Date: Sat Feb 14 17:30:39 2015
DuplicateSignature: package:
ErrorMessage: subprocess installed post-installation script returned error exit status 2
PackageArchitec
SourcePackage: spamassassin
Title: package spamassassin 3.4.0-1ubuntu2.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
UpgradeStatus: Upgraded to trusty on 2015-02-14 (0 days ago)
mtime.conffile.
mtime.conffile.
tags: | removed: need-duplicate-check |
found a hint somewhere to change
/var/lib/ dpkg/info/ spamassassin. postinst
Change
su - $OWNER -c "sa-update --gpghomedir /var/lib/ spamassassin/ sa-update- keys \ spamassassin/ GPG.KEY"
--import /usr/share/
to
su - $OWNER -s /bin/bash -c "sa-update --gpghomedir /var/lib/ spamassassin/ sa-update- keys \ spamassassin/ GPG.KEY"
--import /usr/share/
now it works
dpkg --configure spamassassin
maybe a side effect of new? standard shell /bin/sh -> dash and incompatible /etc/profile