Public bug reported:

Today I saw on IRC this reported:

raub@desktop:~$ sudo ifdown --force br0 && sudo brctl delbr br0
/etc/network/if-down.d/ubuntu-fan: 29: /etc/network/if-down.d/ubuntu-fan: 
/usr/sbin/fanctl: not found
run-parts: /etc/network/if-down.d/ubuntu-fan exited with return code 127
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/network/if-down.d/ubuntu-fan
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

** Affects: ubuntu-fan (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1742712

Title:
  package removal leave scripts that fail lacking the binaries

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-fan/+bug/1742712/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to