Package: ca-certificates
Version: 20050804
Severity: minor
The script debian/postinst creates /etc/ca-certificates.conf.dpkg-old
when installing ca-certificates version 20050804, after installing it,
and removing it without purging.
Demonstrated with this :
# 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
# apt-get remove ca-certificates
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED
ca-certificates
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 553kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 77299 files and directories currently installed.)
Removing ca-certificates ...
Removing hash symlinks in /etc/ssl/certs ...done.
# ls /etc/ca-*
/etc/ca-certificates.conf
# 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 /etc/ca-certificates.conf.dpkg-old
# diff /etc/ca-certificates.conf.dpkg-old /etc/ca-certificates.conf
2c2
< # installed in /etc/ssl/certs.
---
> # installed in /etc/ssl/certs.
4c4
< #
---
> #
8c8
< #
---
> #
#
The attached patch removes some spaces from the postinst script. This
should fix the bug.
diff -ruN orig/ca-certificates-20050804/debian/postinst
ca-certificates-20050804/debian/postinst
--- orig/ca-certificates-20050804/debian/postinst 2004-08-08
12:14:52.000000000 +0200
+++ ca-certificates-20050804/debian/postinst 2006-01-22 12:42:40.000000000
+0100
@@ -104,13 +104,13 @@
# new file
cat > /etc/ca-certificates.conf <<EOF
# This file lists certificates that you wish to use or to ignore to be
-# installed in /etc/ssl/certs.
+# installed in /etc/ssl/certs.
# update-ca-certificates(8) will update /etc/ssl/certs by reading this file.
-#
+#
# This is autogenerated by dpkg-reconfigure ca-certificates.
# certificates shoule be installed under /usr/share/ca-certificates
# and files with extension '.crt' is recognized as available certs.
-#
+#
# line begins with # is comment.
# line begins with ! is certificate filename to be deselected.
#