debhelper script creates prerm script that causes daemon removal to be impossible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debhelper (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
tftp-hpa (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
For daemons, the debhelper scripts create a prerm script that says something like this:
if [ -x /etc/init.d/daemon ]; then
/etc/
The problem with this is that often times these daemons output nonzero exit codes when you try to stop a daemon that isn't already running. So you apt-get remove daemon and it says it can't do it because the prerm script had an error. This is problematic not only because people don't generally know what the prerm script says and so they don't know to start the daemon so that it can be stopped by the prerm script without an error, but also because sometimes the daemons don't work or break and so you can't possibly start it. Now the way around it generally is to just chmod -x it and that is what I advise in #ubuntu. But there are a lot of people who come in there with this problem and it really shouldn't be there at all.
Either the debhelper script should be modified or not used for daemons in this way.
I came into #ubuntu with problems regarding vmware-player, and the chmod -x helped. Too bad you can't vote for bugs, like on bugs.kde.org, since that's something I would otherwise have definitely done for this bug.