package removal leave scripts that fail lacking the binaries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-fan (Ubuntu) |
Fix Released
|
Low
|
Stefan Bader | ||
Bug Description
Today I saw on IRC this reported:
raub@desktop:~$ sudo ifdown --force br0 && sudo brctl delbr br0
/etc/network/
run-parts: /etc/network/
bridge br0 doesn't exist; can't delete it
I checked what that could be and found an interesting case.
When ubuntu-fan is installed all is fine, we have a hook
/etc/
and a binary
/usr/sbin/fanctl
But if a user removed the package, then we get into trouble.
The hook is in /etc and therefore by default considered to be a conffile.
Therefore we only have the hook left which fails by:
/usr/sbin/fanctl: not found
Changed in ubuntu-fan (Ubuntu): | |
assignee: | nobody → Stefan Bader (smb) |
importance: | Undecided → Low |
status: | New → Fix Committed |
That might be the usual problem with packages removed but not using the purge option. (leaving things in rC state). Would not be the first time this causes issues generally speaking. But the ifupdown hook might get improved. Not that it will likely be used post Xenial with systemd-networkd taking over.