[Pkg-dns-devel] Bug#882999: bind9: fails to purge: rmdir: failed to remove '/var/lib/bind': No such file or directory

Bernhard Schmidt berni at debian.org
Thu Dec 7 15:42:09 UTC 2017


On Tue, Nov 28, 2017 at 04:48:06PM +0100, Andreas Beckmann wrote:

Hi,

> during a test with piuparts I noticed your package failed to purge.
> According to policy 7.2 you cannot rely on the depends being available
> during purge, only the essential packages are available for sure.
> 
> Filing this as important because a.) it's a clear policy violation (to
> not clean up at purge) b.) having a piuparts clean archive is a release
> goal since lenny and c.) this package being piuparts buggy blocks
> packages depending on it from being tested by piuparts (and thus
> possibly the detection of more severe problems).
> 
> From the attached log (scroll to the bottom...):
> 
>   Purging configuration files for bind9 (1:9.10.6+dfsg-5) ...
>   rmdir: failed to remove '/var/lib/bind': No such file or directory
>   dpkg: error processing package bind9 (--purge):
>    installed bind9 package post-removal script subprocess returned error exit status 1
> 
> This was observed while testing the dms-wsgi package, nut just bind9
> itself. So a certain package combination seems to trigger it.

This is caused by dms-core.postinst removing the data directory of a
foreign package (bind9), which IME is an absolute no-go.

https://sources.debian.org/src/dms/1.0.8-1.2/debian/dms-core.postrm/#L43

Cloning, reassigning and bumping severity.

Bernhard



More information about the pkg-dns-devel mailing list