tags 348133 - patch
retitle 348133 dpkg: incomplete cleanup of emtpy directories
reassign 348133 dpkg 1.13.11.0.1
severity 348133 normal
merge 348133 318825
thanks


On Sun, Jan 15, 2006 at 02:17:53PM +0100, Kurt Roeckx wrote:
> On Sun, Jan 15, 2006 at 07:09:05AM +0100, Bart Martens wrote:
> > The package openssl doesn't cleanup properly when uninstalling.  Please
> > add debian/dirs and put etc/ssl/certs in debian/dirs.
> 
> I don't see how this can be a bug in the openssl package
> at all.

You're right.  Thanks for your quick reply.

Apparently piuparts uses dpkg with --remove and --purge in an order that
doesn't cleanup everything.  Bug #318825 seems to cover that problem.

localhost:~# nice piuparts -k -d etch 
/var/cache/apt-cacher/packages/ca-certificates_20050804_all.deb
...
5m29.3s DEBUG: Starting command: chroot /tmp/tmpVrTYkE dpkg --remove openssl
5m29.5s DUMP:   dpkg: dependency problems prevent removal of openssl:
5m29.5s DUMP:    ca-certificates depends on openssl.
5m29.5s DUMP:   dpkg: error processing openssl (--remove):
5m29.5s DUMP:    dependency problems - not removing
5m29.7s DUMP:   Errors were encountered while processing:
5m29.7s DUMP:    openssl
5m29.7s DEBUG: Command failed (status=256), but ignoring error: 'chroot 
/tmp/tmpVrTYkE dpkg --remove openssl'
5m29.7s DEBUG: Starting command: chroot /tmp/tmpVrTYkE dpkg --remove 
ca-certificates
5m29.9s DUMP:   (Reading database ... 8085 files and directories currently 
installed.)
5m29.9s DUMP:   Removing ca-certificates ...
5m30.6s DUMP:   Removing hash symlinks in /etc/ssl/certs ...done.
5m31.4s DEBUG: Command ok: 'chroot /tmp/tmpVrTYkE dpkg --remove ca-certificates'
5m31.4s DEBUG: Starting command: chroot /tmp/tmpVrTYkE dpkg --remove --pending
5m31.6s DUMP:   (Reading database ... 7971 files and directories currently 
installed.)
5m31.6s DUMP:   Removing openssl ...
5m32.1s DEBUG: Command ok: 'chroot /tmp/tmpVrTYkE dpkg --remove --pending'
5m32.1s DEBUG: Starting command: chroot /tmp/tmpVrTYkE dpkg --purge openssl
5m32.3s DUMP:   (Reading database ... 7600 files and directories currently 
installed.)
5m32.3s DUMP:   Removing openssl ...
5m32.3s DUMP:   Purging configuration files for openssl ...
5m32.6s DUMP:   dpkg - warning: while removing openssl, directory 
`/etc/ssl/certs' not empty so not removed.
5m32.6s DUMP:   dpkg - warning: while removing openssl, directory `/etc/ssl' 
not empty so not removed.
5m33.0s DEBUG: Command ok: 'chroot /tmp/tmpVrTYkE dpkg --purge openssl'
5m33.0s DEBUG: Starting command: chroot /tmp/tmpVrTYkE dpkg --remove --pending
5m33.1s DEBUG: Command ok: 'chroot /tmp/tmpVrTYkE dpkg --remove --pending'
5m33.1s DEBUG: Starting command: chroot /tmp/tmpVrTYkE dpkg --purge 
ca-certificates
5m33.3s DUMP:   (Reading database ... 7597 files and directories currently 
installed.)
5m33.3s DUMP:   Removing ca-certificates ...
5m33.3s DUMP:   Purging configuration files for ca-certificates ...
5m34.6s DEBUG: Command ok: 'chroot /tmp/tmpVrTYkE dpkg --purge ca-certificates'
5m34.6s DEBUG: Starting command: chroot /tmp/tmpVrTYkE dpkg --remove --pending
5m34.7s DEBUG: Command ok: 'chroot /tmp/tmpVrTYkE dpkg --remove --pending'
5m34.7s DEBUG: Starting command: chroot /tmp/tmpVrTYkE dpkg --purge --pending
5m34.8s DEBUG: Command ok: 'chroot /tmp/tmpVrTYkE dpkg --purge --pending'
5m34.8s DEBUG: Starting command: chroot /tmp/tmpVrTYkE dpkg --remove --pending
5m35.0s DEBUG: Command ok: 'chroot /tmp/tmpVrTYkE dpkg --remove --pending'
5m36.0s ERROR: Package purging left files on system:
  /etc/ssl
    owned by: ca-certificates, openssl
  /etc/ssl/certs
    owned by: ca-certificates, openssl

5m36.0s ERROR: FAIL: Installation and purging test.
localhost:~# ls -al /tmp/tmpVrTYkE/etc/ssl
total 16
drwxr-xr-x   3 root root 4096 2006-01-15 18:22 .
drwxr-xr-x  37 root root 4096 2006-01-15 18:22 ..
drwxr-xr-x   2 root root 8192 2006-01-15 18:22 certs
localhost:~# ls -al /tmp/tmpVrTYkE/etc/ssl/certs/
total 12
drwxr-xr-x  2 root root 8192 2006-01-15 18:22 .
drwxr-xr-x  3 root root 4096 2006-01-15 18:22 ..
localhost:~# 

My tests without piuparts :

Is OK :
apt-get install openssl ca-certificates && \
dpkg --purge openssl ca-certificates

Is OK :
apt-get install openssl ca-certificates && \
dpkg --remove openssl ca-certificates && \
dpkg --purge ca-certificates openssl

Is not OK :
apt-get install openssl ca-certificates && \
dpkg --remove openssl ca-certificates && \
dpkg --purge openssl ca-certificates




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to