hp-snmp-agents error: Service snmp has to be enabled to start service hp-snmp-agents
If you get an error like:
Setting up hp-snmp-agents (126.96.36.199.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:
and change the “update-rc.d “ to “update-rc.d -f “, then
apt-get -f install
and you should be back in business.
(copied 1-on-1 from craighoffman)
I’d recommend fixing the dependency in the init script instead. The problem is actually in the file:
One of the Required-Start parameters is incorrect: “snmp” should be changed to “snmpd”. This is the correct dependency for the SNMP daemon. Previously this was simply ignored without dependency based boot support.