Package: ca-certificates
Version: 20050804
Severity: minor

The file /etc/ca-certificates.conf.dpkg-old is created in
debian/postinst but is not removed in debian/postrm.
The file /etc/ca-certificates.conf is not owned by ca-certificates,
so dpkg won't try to remove the .dpkg-old file.


# ls /etc/ca-*
ls: /etc/ca-*: No such file or directory
# apt-get install ca-certificates
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed
  ca-certificates
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/93.2kB of archives.
After unpacking 553kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package ca-certificates.
(Reading database ... 77185 files and directories currently installed.)
Unpacking ca-certificates (from .../ca-certificates_20050804_all.deb) ...
Setting up ca-certificates (20050804) ...
Updating certificates in /etc/ssl/certs....done.

# ls /etc/ca-*
/etc/ca-certificates.conf
# dpkg -L ca-certificates | grep ca-certificates.conf
#


The attached patch should fix the bug.

(This seems related to #349346 but it's a different problem.)
diff -ruN orig/ca-certificates-20050804/debian/postrm 
ca-certificates-20050804/debian/postrm
--- orig/ca-certificates-20050804/debian/postrm 2003-04-14 16:15:06.000000000 
+0200
+++ ca-certificates-20050804/debian/postrm      2006-01-22 14:41:37.000000000 
+0100
@@ -30,6 +30,7 @@
     purge)
        rm -f /etc/ssl/certs/ca-certificates.crt
        rm -f /etc/ca-certificates.conf
+       rm -f /etc/ca-certificates.conf.dpkg-old
        if test -e /usr/share/debconf/confmodule; then
          . /usr/share/debconf/confmodule
          db_purge

Reply via email to