A fix for Ubuntu 16.04
With Ehcp 0.38.5 and later (on Ubuntu 16.04), init scripts in /etc/init.d may cause some apt update commands to fail. So, please move ehcp and ehcp_daemon.py that is in /etc/init.d to some other location, until this is fixed.
After this move, apt -f install command would fix the apt system.