[Pkg-mailman-hackers] Bug#891553: Bug#891553: mailman3-suite: Cannot remove package

Jonas Meurer jonas at freesources.org
Tue Feb 27 14:06:28 UTC 2018


Hi Colin,

Am 26.02.2018 um 17:01 schrieb Colin Turner:
> Thanks for your work on this package.

Thanks for reporting the bug :)

> I attempted to install mailman3 but found that the service would not start and generated a lot of cron errors as a result. Efforts to configure and fix the package failed and I decided to remove it.

Mh, could you report the issues you discovered with starting mailman3 in
separate bugreports? Is it mailman3-core that fails to start, or the
UWSGI daemon in mailman3-suite? What's the exact "cron errors" you get?

> Unfortunately I cannot remove this package.
> 
> oldgondolin:/home/colin# aptitude -f purge mailman3-suite
> The following packages will be REMOVED:  
>   mailman3-suite{ap} 
> 0 packages upgraded, 0 newly installed, 1 to remove and 847 not upgraded.
> Need to get 0 B of archives. After unpacking 99.3 kB will be freed.
> Do you want to continue? [Y/n/?] y
> (Reading database ... 506921 files and directories currently installed.)
> Removing mailman3-suite (0+20170523-9) ...
> You must invoke apache2-maintscript-helper with an unmodified environment when sourcing it
> dpkg: error processing package mailman3-suite (--remove):
>  installed mailman3-suite package post-removal script subprocess returned error exit status 1
> Errors were encountered while processing:
>  mailman3-suite
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> I wouldn't mind testing the package again, but at the moment it's rendering the entire packaging system inoperative. As it happens this is on a server I'm decomissioning, but it's still making life more complicated.

Well spotted. The apache-maintainer-script needs to be sourced at higher
level.

I just uploaded mailman3-suite 0+20170523-10 that fixes this problem.

In the meantime, to fix your local system, you can do the following:

1. Add this snippet to the beginning of
/var/lib/dpkg/info/mailman3-suite.postrm:

if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then
    . /usr/share/apache2/apache2-maintscript-helper
fi

2. Comment out/remove the following line from
/var/lib/dpkg/info/mailman3-suite.postrm just before "apache2_invoke
disconf mailman3.conf":

        . /usr/share/apache2/apache2-maintscript-helper

Afterwards, you should be able to remove/purge mailman3-suite from the
system.

Cheers
 jonas


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 866 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-mailman-hackers/attachments/20180227/d048136b/attachment.sig>


More information about the Pkg-mailman-hackers mailing list