[Pkg-systemd-maintainers] Bug#715060: piuparts errors: unowned files left after de-installation

Michael Biebl biebl at debian.org
Sat Jul 6 05:14:46 BST 2013


Package: init-system-helpers
Version: 1.4
Severity: normal

This topic has already been brought up, nonetheless I decided to file a
bug so we keep track of this:

Let's take an example:

# apt-get install rsyslog
..
Setting up rsyslog (7.4.1-3) ...
ln -s '/lib/systemd/system/rsyslog.service' '/etc/systemd/system/multi-user.target.wants/rsyslog.service'
ln -s '/lib/systemd/system/rsyslog.service' '/etc/systemd/system/syslog.service'
invoke-rc.d: policy-rc.d denied execution of start.
Processing triggers for libc-bin ...
root at pluto:/# find /etc/systemd/ /var/lib/systemd/
/etc/systemd/
/etc/systemd/system
/etc/systemd/system/multi-user.target.wants
/etc/systemd/system/multi-user.target.wants/rsyslog.service
/etc/systemd/system/syslog.service
/var/lib/systemd/
/var/lib/systemd/deb-systemd-helper-enabled
/var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants
/var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/rsyslog.service
/var/lib/systemd/deb-systemd-helper-enabled/syslog.service
/var/lib/systemd/deb-systemd-helper-enabled/rsyslog.service.dsh-also

# apt-get remove rsyslog
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  init-system-helpers libee0 libestr0 libjson-c2 liblognorm0
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  rsyslog
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 1682 kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 12258 files and directories currently installed.)
Removing rsyslog ...
invoke-rc.d: policy-rc.d denied execution of stop.
rm '/etc/systemd/system/multi-user.target.wants/rsyslog.service'
rm '/etc/systemd/system/syslog.service'
root at pluto:/# find /etc/systemd/ /var/lib/systemd/
/etc/systemd/
/etc/systemd/system
/etc/systemd/system/multi-user.target.wants
/var/lib/systemd/
/var/lib/systemd/deb-systemd-helper-enabled
/var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants
/var/lib/systemd/deb-systemd-helper-enabled/rsyslog.service.dsh-also

# dpkg --purge rsyslog
(Reading database ... 12210 files and directories currently installed.)
Removing rsyslog ...
Purging configuration files for rsyslog ...
root at pluto:/# find /etc/systemd/ /var/lib/systemd/
/etc/systemd/
/etc/systemd/system
/etc/systemd/system/multi-user.target.wants
/var/lib/systemd/
/var/lib/systemd/deb-systemd-helper-enabled
/var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants

# apt-get remove init-system-helpers
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libee0 libestr0 libjson-c2 liblognorm0
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  init-system-helpers
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 81.9 kB disk space will be freed.
Do you want to continue [Y/n]? 
(Reading database ... 12203 files and directories currently installed.)
Removing init-system-helpers ...
dpkg: warning: while removing init-system-helpers, directory '/var/lib/systemd' not empty so not removed
# find /etc/systemd/ /var/lib/systemd/
/etc/systemd/
/etc/systemd/system
/etc/systemd/system/multi-user.target.wants
/var/lib/systemd/
/var/lib/systemd/deb-systemd-helper-enabled
/var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants


A few observations here:
a/ i-s-h should clean up empty directories in /var/lib/systemd/deb-systemd-helper-enabled
b/ i-s-h should clean up empty directories in /etc/systemd/system
c/ the i-s-h package should own the /etc/systemd/system directory. It's a shared ressource
   with systemd, so we need reference counting. If we want to have it removed safely on
   remove



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.9-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages init-system-helpers depends on:
ii  perl  5.14.2-21

init-system-helpers recommends no packages.

init-system-helpers suggests no packages.

-- no debconf information




More information about the Pkg-systemd-maintainers mailing list