这是indexloc提供的服务,不要输入任何密码

Debian Bug report logs - #538429
dpkg: Incomplete cleanup of empty directories

version graph

Package: dpkg; Maintainer for dpkg is Dpkg Developers <debian-dpkg@lists.debian.org>; Source for dpkg is src:dpkg (PTS, buildd, popcon).

Reported by: Raphael Geissert <atomo64@gmail.com>

Date: Sat, 25 Jul 2009 18:51:02 UTC

Severity: normal

Merged with 57518, 316521, 348133, 625241, 664822

Found in versions dpkg/1.10.28, dpkg/1.15.8.10, dpkg/1.15.3.1, dpkg/1.13.11.0.1, dpkg/1.13.13, dpkg/1.13.16, dpkg/1.10.9

Blocking fix for 684126: debian-policy: clarification needed for handling of directories used by maintainer scripts, 851531: dpkg: warning: unable to delete old directory '/etc/piuparts/scripts-debug-prerm': Directory not empty

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#538429; Package dpkg. (Sat, 25 Jul 2009 18:51:04 GMT) (full text, mbox, link).


Message #3 received at submit@bugs.debian.org (full text, mbox, reply):

From: Raphael Geissert <atomo64@gmail.com>
To: submit@bugs.debian.org
Subject: dpkg: doesn't remove an, empty, directory provided by the package
Date: Sat, 25 Jul 2009 20:34:52 +0200
Package: dpkg
Version: 1.15.3.1
Affects: php5-cli

While looking for some false positives on the results by piuparts I found the 
following:

ERROR: Package purging left files on system:
  /etc/php5      owned by: php5-common, php5-cli, php5-suhosin

But the directory is completely empty:

DEBUG: Starting command: 
['chroot', '/tmp/tmpGu5Iec', 'dpkg', '--purge', 'php5-common']
DUMP:
  (Reading database ... 8221 files and directories currently installed.)
  Removing php5-common ...
  Purging configuration files for php5-common ...
DEBUG: Command ok: 
['chroot', '/tmp/tmpGu5Iec', 'dpkg', '--purge', 'php5-common']

DEBUG: Starting command: 
['chroot', '/tmp/tmpGu5Iec', 'dpkg', '--purge', 'php5-suhosin']
DUMP:
  (Reading database ... 8217 files and directories currently installed.)
  Removing php5-suhosin ...
  Purging configuration files for php5-suhosin ...
  dpkg: warning: while removing php5-suhosin, directory '/etc/php5' not empty 
so not removed.
DEBUG: Command ok: 
['chroot', '/tmp/tmpGu5Iec', 'dpkg', '--purge', 'php5-suhosin']

DEBUG: Starting command: 
['chroot', '/tmp/tmpGu5Iec', 'dpkg', '--purge', 'php5-cli']
DUMP:
  (Reading database ... 8210 files and directories currently installed.)
  Removing php5-cli ...
  Purging configuration files for php5-cli ...
DEBUG: Command ok: ['chroot', '/tmp/tmpGu5Iec', 'dpkg', '--purge', 'php5-cli']

Cheers,
-- 
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net




Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#538429; Package dpkg. (Sat, 25 Jul 2009 19:33:02 GMT) (full text, mbox, link).


Acknowledgement sent to Sven Joachim <svenjoac@gmx.de>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Sat, 25 Jul 2009 19:33:02 GMT) (full text, mbox, link).


Message #8 received at 538429@bugs.debian.org (full text, mbox, reply):

From: Sven Joachim <svenjoac@gmx.de>
To: Raphael Geissert <atomo64@gmail.com>
Cc: 538429@bugs.debian.org
Subject: Re: Bug#538429: dpkg: doesn't remove an, empty, directory provided by the package
Date: Sat, 25 Jul 2009 21:27:37 +0200
[Message part 1 (text/plain, inline)]
On 2009-07-25 20:34 +0200, Raphael Geissert wrote:

> Package: dpkg
> Version: 1.15.3.1
> Affects: php5-cli
>
> While looking for some false positives on the results by piuparts I found the 
> following:
>
> ERROR: Package purging left files on system:
>   /etc/php5      owned by: php5-common, php5-cli, php5-suhosin
>
> But the directory is completely empty:

Not at the time dpkg is removing ph5-cli.

> DEBUG: Starting command: 
> ['chroot', '/tmp/tmpGu5Iec', 'dpkg', '--purge', 'php5-cli']
> DUMP:
>   (Reading database ... 8210 files and directories currently installed.)
>   Removing php5-cli ...
>   Purging configuration files for php5-cli ...
> DEBUG: Command ok: ['chroot', '/tmp/tmpGu5Iec', 'dpkg', '--purge', 'php5-cli']

The php5-cli package uses ucf to manage a configuration file under
/etc/php5 that it removes when the package is purged, see the attached
postrm script.  At that time, dpkg has already cleared the file list.

I'm not sure that anything can be done in dpkg to avoid this, because
ucf operates totally outside dpkg's control.  Note that the problem does
not exist for conffiles, where dpkg keeps the directory containing them
in the package's file list (since version 1.13.20).

Sven

[postrm (text/plain, attachment)]

Merged 454694 538429. Request was from Sven Joachim <svenjoac@gmx.de> to control@bugs.debian.org. (Wed, 05 Aug 2009 13:33:12 GMT) (full text, mbox, link).


Merged 454694 538429. Request was from Holger Levsen <holger@layer-acht.org> to control@bugs.debian.org. (Wed, 05 Aug 2009 13:39:03 GMT) (full text, mbox, link).


Merged 316521 348133 454694 538429. Request was from Sven Joachim <svenjoac@gmx.de> to control@bugs.debian.org. (Wed, 05 Aug 2009 20:33:05 GMT) (full text, mbox, link).


Added indication that bug 538429 blocks 566853 Request was from Niels Thykier <niels@thykier.net> to control@bugs.debian.org. (Thu, 22 Jul 2010 12:36:05 GMT) (full text, mbox, link).


Changed Bug title to 'dpkg: incomplete cleanup of empty directories' from 'dpkg: doesn't remove an, empty, directory provided by the package' Request was from Jakub Wilk <jwilk@debian.org> to control@bugs.debian.org. (Sun, 10 Apr 2011 02:39:14 GMT) (full text, mbox, link).


Forcibly Merged 316521 348133 454694 538429 625241. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Mon, 02 May 2011 23:09:09 GMT) (full text, mbox, link).


Disconnected #454694 from all other report(s). Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Mon, 16 May 2011 03:21:06 GMT) (full text, mbox, link).


Removed indication that bug 538429 blocks 566853 Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Mon, 30 Apr 2012 04:57:04 GMT) (full text, mbox, link).


Added tag(s) patch. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Mon, 30 Apr 2012 04:57:12 GMT) (full text, mbox, link).


Removed tag(s) patch. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Mon, 30 Apr 2012 05:18:04 GMT) (full text, mbox, link).


No longer marked as found in versions 1.10.9. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Mon, 30 Apr 2012 05:18:07 GMT) (full text, mbox, link).


No longer marked as found in versions 1.10.28 and dpkg/1.10.28. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Mon, 30 Apr 2012 05:18:08 GMT) (full text, mbox, link).


Marked as found in versions dpkg/1.10.9. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Mon, 30 Apr 2012 05:18:10 GMT) (full text, mbox, link).


Marked as found in versions dpkg/1.10.28. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Mon, 30 Apr 2012 05:18:11 GMT) (full text, mbox, link).


Merged 316521 348133 538429 625241 664822 Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Mon, 30 Apr 2012 05:18:13 GMT) (full text, mbox, link).


Added indication that bug 538429 blocks 851531 Request was from Andreas Beckmann <anbe@debian.org> to 851531-submit@bugs.debian.org. (Sun, 15 Jan 2017 23:39:11 GMT) (full text, mbox, link).


Added indication that bug 538429 blocks 684126 Request was from Sean Whitton <spwhitton@spwhitton.name> to control@bugs.debian.org. (Sun, 06 Aug 2017 18:39:10 GMT) (full text, mbox, link).


Merged 57518 316521 348133 538429 625241 664822 Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Sat, 02 Mar 2019 21:15:05 GMT) (full text, mbox, link).


Changed Bug title to 'dpkg: Incomplete cleanup of empty directories' from 'dpkg: incomplete cleanup of empty directories'. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Sun, 03 Mar 2019 00:45:05 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Jul 28 14:54:22 2025; Machine Name: berlioz

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.