Bug#348133: [Pkg-openssl-devel] Bug#348133: openssl: doesn't cleanup properly when uninstalling

Kurt Roeckx kurt at roeckx.be
Sun Jan 15 13:17:53 UTC 2006


On Sun, Jan 15, 2006 at 07:09:05AM +0100, Bart Martens wrote:
> Package: openssl
> Version: 0.9.8a-5
> Severity: minor
> 
> The package openssl doesn't cleanup properly when uninstalling.  Please
> add debian/dirs and put etc/ssl/certs in debian/dirs.

root at intrepid:~# ls -l /etc/ssl/
ls: /etc/ssl/: No such file or directory
root at intrepid:~# apt-get install openssl
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  libssl0.9.8
Suggested packages:
  ca-certificates
The following NEW packages will be installed:
  libssl0.9.8 openssl
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/1868kB of archives.
After unpacking 4497kB of additional disk space will be used.
Do you want to continue [Y/n]? y
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously deselected package libssl0.9.8.
(Reading database ... 11592 files and directories currently installed.)
Unpacking libssl0.9.8 (from .../libssl0.9.8_0.9.8a-5_amd64.deb) ...
Selecting previously deselected package openssl.
Unpacking openssl (from .../openssl_0.9.8a-5_amd64.deb) ...
Creating directory /etc/ssl
Setting up libssl0.9.8 (0.9.8a-5) ...

Setting up openssl (0.9.8a-5) ...

root at intrepid:~# ls -l /etc/ssl/
total 20
drwxr-xr-x 2 root root 4096 Jan 15 14:08 certs
-rw-r--r-- 1 root root 9374 Dec 15 02:31 openssl.cnf
drwx------ 2 root root 4096 Jan 15 14:08 private

root at intrepid:~# dpkg --purge libssl0.9.8 openssl
(Reading database ... 11978 files and directories currently
installed.)
Removing openssl ...
Purging configuration files for openssl ...
Removing libssl0.9.8 ...
Purging configuration files for libssl0.9.8 ...
root at intrepid:~# ls -l /etc/ssl/
ls: /etc/ssl/: No such file or directory

Please explain me what is wrong with this.

Note that the /etc/ssl/certs directory is empty, and you'll need
the ca-certificates package to place files in it.

Installing ca-certificates, openssl and libssl0.9.8, and then
removing it:
root at intrepid:~# apt-get remove openssl libssl0.9.8
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  ca-certificates libssl0.9.8 openssl
0 upgraded, 0 newly installed, 3 to remove and 1 not upgraded.
Need to get 0B of archives.
After unpacking 5050kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 12092 files and directories currently installed.)
Removing ca-certificates ...
Removing hash symlinks in /etc/ssl/certs ...done.
Removing openssl ...
Removing libssl0.9.8 ...
root at intrepid:~# dpkg --purge openssl
(Reading database ... 11590 files and directories currently installed.)
Removing openssl ...
Purging configuration files for openssl ...
dpkg - warning: while removing openssl, directory `/etc/ssl/certs' not empty so
not removed.
dpkg - warning: while removing openssl, directory `/etc/ssl' not empty so not removed.
root at intrepid:~# dpkg --purge ca-certificates
(Reading database ... 11587 files and directories currently installed.)
Removing ca-certificates ...
Purging configuration files for ca-certificates ...
root at intrepid:~# ls -l /etc/ssl/
total 8
drwxr-xr-x 2 root root 8192 Jan 15 14:13 certs
root at intrepid:~# ls -l /etc/ssl/certs/
total 0


I don't see how this can be a bug in the openssl package
at all.  Maybe you want to file a bug against
ca-certificates instead.


Kurt





More information about the Pkg-openssl-devel mailing list