If you get an error like:
Setting up hp-snmp-agents (8.5.0.1.1-2) ...
insserv: Service snmp has to be enabled to start service hp-snmp-agents
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing hp-snmp-agents (--configure):
subprocess installed post-installation script returned error exit status 1
Edit the file:
/var/lib/dpkg/info/hp-snmp-agents.postinst
and change the “update-rc.d …” to “update-rc.d -f …”
apt-get -f install and you should be back in business.