Bug#456613: cyrus-common-2.3: unable to remove package

Benjamin Seidenberg benjamin at debian.org
Sun Dec 16 23:24:10 UTC 2007


severity 456613 important
thanks


Ouch!

I plan to batch up a lot of cyrus work in the next few days. Thanks for
the report and the patch. That's pretty bad... *shakes head*.

Benjamin


Jamie L. Penman-Smithson wrote:
> package: cyrus-common-2.3
> version: 2.3.8-1
> severity: normal
> tags: patch
>
> Whilst removing cyrus-common-2.3 (due to #437838) the remove fails due
> to an error in postrm:
>
> (Reading database ... 43032 files and directories currently installed.)
> Removing cyrus-admin-2.3 ...
> Removing cyrus-clients-2.3 ...
> Removing cyrus-pop3d-2.3 ...
> Removing cyrus-imapd-2.3 ...
> Removing cyrus-common-2.3 ...
> Stopping Cyrus IMAPd: .
> /var/lib/dpkg/info/cyrus-common-2.3.postrm: line 58: syntax error near
> unexpected token `do'
> dpkg: error processing cyrus-common-2.3 (--remove):
>  subprocess post-removal script returned error exit status 2
> Removing libcyrus-imap-perl23 ...
> Errors were encountered while processing:
>  cyrus-common-2.3
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> A package failed to install.  Trying to recover:
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Reading extended state information
> Initializing package states... Done
> Writing extended state information... Done
> Reading task descriptions... Done
> Building tag database... Done
>
> The following patch fixes this issue:
>
> --- /var/lib/dpkg/info/cyrus-common-2.3.postrm  2007-06-22
> 14:33:57.000000000 +0100
> +++ /home/jamie/cyrus-common-2.3.postrm 2007-12-16 22:55:43.000000000
> +0000
> @@ -55,7 +55,7 @@
>
>                         db_get cyrus-common-2.3/removespools
>                         [ "${RET}" = "true" ] && {
> -                                        /var/spool/sieve /etc/sieve ; do
> +                               for i in /var/spool/sieve /etc/sieve ; do
>                                         find "$i" -type f -exec rm -f
> '{}' \; || true
>                                         find "$i" -type d -depth -not
> -name 'lost+found' -exec rmdir '{}' \; || true
>                                 done
>
> ----8<----
>
> Thanks,
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Pkg-Cyrus-imapd-Debian-devel mailing list
> Pkg-Cyrus-imapd-Debian-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-cyrus-imapd-debian-devel


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-cyrus-imapd-debian-devel/attachments/20071216/5b9838a1/attachment.pgp 


More information about the Pkg-Cyrus-imapd-Debian-devel mailing list