package removal leave scripts that fail lacking the binaries

Bug #1742712 reported by Christian Ehrhardt 
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-fan (Ubuntu)
Fix Released
Low
Stefan Bader
Nominated for Artful by Stefan Bader
Nominated for Xenial by Stefan Bader

Bug Description

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

Revision history for this message
Stefan Bader (smb) wrote :

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.

Stefan Bader (smb)
Changed in ubuntu-fan (Ubuntu):
assignee: nobody → Stefan Bader (smb)
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-fan - 0.12.10

---------------
ubuntu-fan (0.12.10) bionic; urgency=medium

  * fan-net: support systemd-networkd controlled interfaces (LP: #1718227)
  * fanctl: Fix net stop internal command (LP: #1744296)
  * fan-net: Harden networkctl usage (LP: #1718227)
  * ifupdown/ubuntu-fan: Test for missing fanctl (LP: #1742712)

 -- Stefan Bader <email address hidden> Fri, 16 Mar 2018 11:47:46 +0100

Changed in ubuntu-fan (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.