Bug #5705
Debian package does not get removed fully
Status:
Accepted
Priority:
Normal
Assignee:
-
Category:
Packaging
Target version:
-
Start date:
2019-08-12
Due date:
% Done:
0%
Estimated time:
Found in version:
4.2.8
Affected Versions:
Description
Running piuparts on the .deb package shows that purging tvheadend leaves files behind. Usually, the idea is that if you purge a package, all trace of it is gone and the system is in the same state as it was before the package was installed.
4.2.8:
2m0.9s ERROR: FAIL: Package purging left files on system: /etc/rc0.d/K01tvheadend -> ../init.d/tvheadend not owned /etc/rc1.d/K01tvheadend -> ../init.d/tvheadend not owned /etc/rc2.d/S01tvheadend -> ../init.d/tvheadend not owned /etc/rc3.d/S01tvheadend -> ../init.d/tvheadend not owned /etc/rc4.d/S01tvheadend -> ../init.d/tvheadend not owned /etc/rc5.d/S01tvheadend -> ../init.d/tvheadend not owned /etc/rc6.d/K01tvheadend -> ../init.d/tvheadend not owned /home/hts/ not owned /home/hts/.hts/ not owned
4.3:
1m34.6s ERROR: FAIL: Package purging left files on system: /etc/rc0.d/K01tvheadend -> ../init.d/tvheadend not owned /etc/rc1.d/K01tvheadend -> ../init.d/tvheadend not owned /etc/rc2.d/S01tvheadend -> ../init.d/tvheadend not owned /etc/rc3.d/S01tvheadend -> ../init.d/tvheadend not owned /etc/rc4.d/S01tvheadend -> ../init.d/tvheadend not owned /etc/rc5.d/S01tvheadend -> ../init.d/tvheadend not owned /etc/rc6.d/K01tvheadend -> ../init.d/tvheadend not owned /etc/systemd/system/multi-user.target.wants/tvheadend.service -> /lib/systemd/system/tvheadend.service not owned /home/hts/ not owned /home/hts/.hts/ not owned /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/tvheadend.service not owned /var/lib/systemd/deb-systemd-helper-enabled/tvheadend.service.dsh-also not owned
I don't know about the /home files, but the init.d and systemd files seem to be there because the postrm script is missing a #DEBHELPER# placeholder.