[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#47267: Purging bind 9 does remove conffiles belonging to bind 9



I have been able to reproduce this bug on my own machine.
In the following procedure, step 4 incorrectly removes
conffiles that have been taken over by bind9.

1. Install bind
2. Remove bind
3. Install bind9
4. Purge bind

A full console log is attached.

jdthood@thanatos:/var/cache/apt/archives$ clear
 
jdthood@thanatos:/var/cache/apt/archives$ ll bind*
-rw-r--r--    1 root     root       892206 2003-06-10 16:47 bind_1%3a8.4.1-1_i386.deb
-rw-r--r--    1 root     root       891222 2003-07-02 18:02 bind_1%3a8.4.1-2_i386.deb
-rw-r--r--    1 root     root       245116 2003-03-16 02:47 bind9_1%3a9.2.2-2_i386.deb
-rw-r--r--    1 root     root       150860 2003-03-16 02:47 bind9-doc_1%3a9.2.2-2_all.deb
-rw-r--r--    1 root     root      1300250 2003-06-10 16:47 bind-doc_1%3a8.4.1-1_all.deb
-rw-r--r--    1 root     root      1300286 2003-07-02 18:02 bind-doc_1%3a8.4.1-2_all.deb
jdthood@thanatos:/var/cache/apt/archives$ sudo dpkg -i bind_1%3a8.4.1-2_i386.deb
                                                                                                           
jdthood@thanatos:/var/cache/apt/archives$ sudo dpkg --purge bind9
(Reading database ... 107323 files and directories currently installed.)
Removing bind9 ...
Stopping domain name service: named.
dpkg - warning: while removing bind9, directory `/var/run/bind' not empty so not removed.
dpkg - warning: while removing bind9, directory `/etc/bind' not empty so not removed.
Purging configuration files for bind9 ...
jdthood@thanatos:/var/cache/apt/archives$ sudo dpkg -i bind_1%3a8.4.1-2_i386.deb
Selecting previously deselected package bind.
(Reading database ... 107284 files and directories currently installed.)
Unpacking bind (from bind_1%3a8.4.1-2_i386.deb) ...
Setting up bind (8.4.1-2) ...
Starting domain name service: named.
                                                                                                           
jdthood@thanatos:/var/cache/apt/archives$ sudo dpkg --remove bind
(Reading database ... 107330 files and directories currently installed.)
Removing bind ...
Stopping domain name service: named.
dpkg - warning: while removing bind, directory `/etc/bind' not empty so not removed.
jdthood@thanatos:/var/cache/apt/archives$ sudo dpkg -i bind9_1%3a9.2.2-2_i386.deb
Selecting previously deselected package bind9.
(Reading database ... 107294 files and directories currently installed.)
Unpacking bind9 (from bind9_1%3a9.2.2-2_i386.deb) ...
Setting up bind9 (9.2.2-2) ...
Installing new version of config file /etc/bind/named.conf ...
Installing new version of config file /etc/bind/named.conf.local ...
Installing new version of config file /etc/bind/named.conf.options ...
Installing new version of config file /etc/bind/db.root ...
Starting domain name service: named.
                                                                                                           
jdthood@thanatos:/var/cache/apt/archives$ dpkg -s bind
Package: bind
Status: deinstall ok config-files
Priority: extra
Section: net
Installed-Size: 1774
Maintainer: LaMont Jones <lamont@debian.org>
Version: 1:8.4.1-2
Config-Version: 1:8.4.1-2
Depends: libc6 (>= 2.3.1-1), netbase
Suggests: dnsutils, bind-doc
Conffiles:
 /etc/init.d/bind 10bd42a78cb619cfb8e3597cb0d24c65
 /etc/bind/named.conf 99a9de38602f46eee8700790b7f25afc
 /etc/bind/named.conf.local 494b8dbad29195ea684b70c20ea05bf9
 /etc/bind/named.conf.options d844f107b8d632f7c1de01e5738fb1af
 /etc/bind/db.0 8aba258068c8c60a7ade3952a285f57d
 /etc/bind/db.127 64f5cf50e8d8192109dad43b779e5e36
 /etc/bind/db.255 8aba258068c8c60a7ade3952a285f57d
 /etc/bind/db.local 4d038e5af0aa465bdfce60a0d2a7c816
 /etc/bind/db.root d2cdd451435eda5b1447c956c5a939f7
Description: Internet Domain Name Server
 The Berkeley Internet Name Domain (BIND) implements an Internet domain
 name server.  BIND is the most widely-used name server software on the
 Internet, and is supported by the Internet Software Consortium, www.isc.org.
 
jdthood@thanatos:/var/cache/apt/archives$ dpkg -s bind9
Package: bind9
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 508
Maintainer: LaMont Jones <lamont@debian.org>
Version: 1:9.2.2-2
Replaces: bind, dnsutils (<< 1:9.1.0-3)
Depends: libc6 (>= 2.3.1-1), libdns8, libisc4, libisccc0, libisccfg0, liblwres1, libssl0.9.7, netbase, adduser
Suggests: dnsutils, bind9-doc
Conflicts: bind
Conffiles:
 /etc/init.d/bind9 4dd0c70dce3c20dda62f879ff3eb5b0c
 /etc/bind/named.conf 254230570a543e869ac34025f4442964
 /etc/bind/named.conf.local fb15a27656eafd86ff870effabc72f1e
 /etc/bind/named.conf.options 013560cec51756b93fe4a98c6aebd4a4
 /etc/bind/db.0 8aba258068c8c60a7ade3952a285f57d
 /etc/bind/db.127 64f5cf50e8d8192109dad43b779e5e36
 /etc/bind/db.255 8aba258068c8c60a7ade3952a285f57d
 /etc/bind/db.local 4d038e5af0aa465bdfce60a0d2a7c816
 /etc/bind/db.root 445429aba9e2818d284a92128effacd0
 /etc/bind/db.empty 561a010aa3fbe84f5c5635d5c68626d0
Description: Internet Domain Name Server
 The Berkeley Internet Name Domain (BIND) implements an Internet domain
 name server.  BIND is the most widely-used name server software on the
 Internet, and is supported by the Internet Software Consortium, www.isc.org.
 .
 This package provides the server and related configuration files.
 
jdthood@thanatos:/var/cache/apt/archives$ ll /var/lib/dpkg/info/bind*
-rw-r--r--    1 root     root          200 2002-11-16 23:37 /var/lib/dpkg/info/bind9.conffiles
-rw-r--r--    1 root     root         1144 2003-07-05 18:22 /var/lib/dpkg/info/bind9-doc.list
-rw-r--r--    1 root     root         1818 2003-03-16 02:00 /var/lib/dpkg/info/bind9-doc.md5sums
-rw-r--r--    1 root     root          269 2002-08-06 21:57 /var/lib/dpkg/info/bind9-host.list
-rw-r--r--    1 root     root          330 2002-07-02 12:30 /var/lib/dpkg/info/bind9-host.md5sums
-rwxr-xr-x    1 root     root          269 2002-07-02 12:29 /var/lib/dpkg/info/bind9-host.postinst*
-rwxr-xr-x    1 root     root          202 2002-07-02 12:29 /var/lib/dpkg/info/bind9-host.prerm*
-rw-r--r--    1 root     root         1211 2003-07-05 18:57 /var/lib/dpkg/info/bind9.list
-rw-r--r--    1 root     root         2146 2003-03-16 02:01 /var/lib/dpkg/info/bind9.md5sums
-rwxr-xr-x    1 root     root         1986 2003-03-16 02:01 /var/lib/dpkg/info/bind9.postinst*
-rwxr-xr-x    1 root     root          272 2003-03-16 02:01 /var/lib/dpkg/info/bind9.postrm*
-rwxr-xr-x    1 root     root          528 2003-03-16 02:01 /var/lib/dpkg/info/bind9.preinst*
-rwxr-xr-x    1 root     root          230 2003-03-16 02:01 /var/lib/dpkg/info/bind9.prerm*
-rw-r--r--    1 root     root         4030 2003-07-03 08:21 /var/lib/dpkg/info/bind-doc.list
-rw-r--r--    1 root     root         7161 2003-06-28 20:58 /var/lib/dpkg/info/bind-doc.md5sums
-rw-r--r--    1 root     root           27 2003-07-05 18:57 /var/lib/dpkg/info/bind.list
-rwxr-xr-x    1 root     root           87 2003-06-28 20:58 /var/lib/dpkg/info/bind.postrm*
jdthood@thanatos:/var/cache/apt/archives$ cat /var/lib/dpkg/info/bind.list
/etc/bind
/etc/init.d/bind
jdthood@thanatos:/var/cache/apt/archives$ cat /var/lib/dpkg/info/bind.postrm
#!/bin/sh -e
 
if [ "$1" = "purge" ] ; then
    update-rc.d bind remove >/dev/null
fi
 
 
jdthood@thanatos:/var/cache/apt/archives$ cat /var/lib/dpkg/info/bind9.list
/.
/etc
/etc/bind
/etc/bind/db.0
/etc/bind/db.255
/etc/bind/db.empty
/etc/bind/db.127
/etc/bind/db.local
/etc/bind/db.root
/etc/bind/named.conf
/etc/bind/named.conf.local
/etc/bind/named.conf.options
/etc/init.d
/etc/init.d/bind9
/usr
/usr/sbin
/usr/sbin/named
/usr/sbin/rndc
/usr/sbin/rndc-confgen
/usr/sbin/dnssec-keygen
/usr/sbin/dnssec-makekeyset
/usr/sbin/dnssec-signkey
/usr/sbin/dnssec-signzone
/usr/sbin/named-checkconf
/usr/sbin/named-checkzone
/usr/share
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/rndc.8.gz
/usr/share/man/man8/rndc-confgen.8.gz
/usr/share/man/man8/dnssec-makekeyset.8.gz
/usr/share/man/man8/dnssec-signkey.8.gz
/usr/share/man/man8/dnssec-signzone.8.gz
/usr/share/man/man8/named-checkconf.8.gz
/usr/share/man/man8/named.8.gz
/usr/share/man/man8/named-checkzone.8.gz
/usr/share/man/man8/dnssec-keygen.8.gz
/usr/share/man/man5
/usr/share/man/man5/rndc.conf.5.gz
/usr/share/doc
/usr/share/doc/bind9
/usr/share/doc/bind9/README.Debian.gz
/usr/share/doc/bind9/changelog.Debian.gz
/usr/share/doc/bind9/copyright
/usr/share/doc/bind9/changelog.gz
/usr/share/doc/bind9/FAQ.gz
/usr/share/doc/bind9/README.gz
/var
/var/cache
/var/cache/bind
/var/run
/var/run/bind
/var/run/bind/run
jdthood@thanatos:/var/cache/apt/archives$ cat /var/lib/dpkg/info/bind9.conffiles
/etc/init.d/bind9
/etc/bind/named.conf
/etc/bind/named.conf.local
/etc/bind/named.conf.options
/etc/bind/db.0
/etc/bind/db.127
/etc/bind/db.255
/etc/bind/db.local
/etc/bind/db.root
/etc/bind/db.empty
jdthood@thanatos:/var/cache/apt/archives$ ll /etc/bind
total 52
drwxr-sr-x    2 root     bind         4096 2003-07-05 18:57 ./
drwxr-xr-x  148 root     root         8192 2003-07-05 18:57 ../
-rw-r--r--    1 root     root          237 2003-06-28 20:58 db.0
-rw-r--r--    1 root     root          271 2003-06-28 20:58 db.127
-rw-r--r--    1 root     root          237 2003-06-28 20:58 db.255
-rw-r--r--    1 root     root          354 2003-03-16 02:00 db.empty
-rw-r--r--    1 root     root          256 2003-06-28 20:58 db.local
-rw-r--r--    1 root     root         2771 2003-03-16 02:00 db.root
-rw-r--r--    1 root     bind          907 2003-03-16 02:00 named.conf
-rw-r--r--    1 root     bind          165 2003-03-16 02:00 named.conf.local
-rw-r--r--    1 root     bind          672 2003-03-16 02:00 named.conf.options
-rw-r-----    1 bind     bind           77 2003-07-05 18:57 rndc.key
jdthood@thanatos:/var/cache/apt/archives$ sudo dpkg --purge bind
(Reading database ... 107324 files and directories currently installed.)
Removing bind ...
Purging configuration files for bind ...
jdthood@thanatos:/var/cache/apt/archives$ ll /etc/bind
total 36
drwxr-sr-x    2 root     bind         4096 2003-07-05 18:59 ./
drwxr-xr-x  148 root     root         8192 2003-07-05 18:57 ../
-rw-r--r--    1 root     root          271 2003-06-28 20:58 db.127
-rw-r--r--    1 root     root          354 2003-03-16 02:00 db.empty
-rw-r--r--    1 root     root          256 2003-06-28 20:58 db.local
-rw-r--r--    1 root     bind          907 2003-03-16 02:00 named.conf
-rw-r--r--    1 root     bind          672 2003-03-16 02:00 named.conf.options
-rw-r-----    1 bind     bind           77 2003-07-05 18:57 rndc.key
jdthood@thanatos:/var/cache/apt/archives$ ll /var/lib/dpkg/info/bind*
-rw-r--r--    1 root     root          200 2002-11-16 23:37 /var/lib/dpkg/info/bind9.conffiles
-rw-r--r--    1 root     root         1144 2003-07-05 18:22 /var/lib/dpkg/info/bind9-doc.list
-rw-r--r--    1 root     root         1818 2003-03-16 02:00 /var/lib/dpkg/info/bind9-doc.md5sums
-rw-r--r--    1 root     root          269 2002-08-06 21:57 /var/lib/dpkg/info/bind9-host.list
-rw-r--r--    1 root     root          330 2002-07-02 12:30 /var/lib/dpkg/info/bind9-host.md5sums
-rwxr-xr-x    1 root     root          269 2002-07-02 12:29 /var/lib/dpkg/info/bind9-host.postinst*
-rwxr-xr-x    1 root     root          202 2002-07-02 12:29 /var/lib/dpkg/info/bind9-host.prerm*
-rw-r--r--    1 root     root         1211 2003-07-05 18:57 /var/lib/dpkg/info/bind9.list
-rw-r--r--    1 root     root         2146 2003-03-16 02:01 /var/lib/dpkg/info/bind9.md5sums
-rwxr-xr-x    1 root     root         1986 2003-03-16 02:01 /var/lib/dpkg/info/bind9.postinst*
-rwxr-xr-x    1 root     root          272 2003-03-16 02:01 /var/lib/dpkg/info/bind9.postrm*
-rwxr-xr-x    1 root     root          528 2003-03-16 02:01 /var/lib/dpkg/info/bind9.preinst*
-rwxr-xr-x    1 root     root          230 2003-03-16 02:01 /var/lib/dpkg/info/bind9.prerm*
-rw-r--r--    1 root     root         4030 2003-07-03 08:21 /var/lib/dpkg/info/bind-doc.list
-rw-r--r--    1 root     root         7161 2003-06-28 20:58 /var/lib/dpkg/info/bind-doc.md5sums
jdthood@thanatos:/var/cache/apt/archives$ cat /var/lib/dpkg/info/bind9.conffiles
/etc/init.d/bind9
/etc/bind/named.conf
/etc/bind/named.conf.local
/etc/bind/named.conf.options
/etc/bind/db.0
/etc/bind/db.127
/etc/bind/db.255
/etc/bind/db.local
/etc/bind/db.root
/etc/bind/db.empty

Reply to: