insserv: loop involving service oracle-xe at depth 2

When installing or upgrading some packages on my server I got:

Preconfiguring packages ...
Setting up initscripts (2.88dsf-31) ...
insserv: script nbclient.08-12-11.18:50:39: service nbclient already provided!
insserv: warning: script 'oracle-xe' missing LSB tags and overrides
insserv: There is a loop between service munin-node and oracle-xe if stopped
insserv: loop involving service oracle-xe at depth 2
insserv: loop involving service munin-node at depth 1
insserv: Stopping oracle-xe depends on munin-node and therefore on system facility `$all' which can not be true!
insserv: script nbclient.08-12-11.18:50:39: service nbclient already provided!
insserv: warning: script 'oracle-xe' missing LSB tags and overrides
insserv: There is a loop between service munin-node and oracle-xe if stopped
insserv: loop involving service oracle-xe at depth 2
insserv: loop involving service munin-node at depth 1
insserv: Stopping oracle-xe depends on munin-node and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing initscripts (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initscripts
E: Sub-process /usr/bin/dpkg returned an error code (1)

Debian uses insserv by default in Wheezy which reads the LSB fields (more info here) and to fix this add these lines in the file /etc/init.d/oracle-xe just after « #!/bin/bash »

### BEGIN INIT INFO
# Provides: scriptname
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO

Laisser un commentaire

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l'aide de votre compte WordPress.com. Déconnexion / Changer )

Image Twitter

Vous commentez à l'aide de votre compte Twitter. Déconnexion / Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion / Changer )

Photo Google+

Vous commentez à l'aide de votre compte Google+. Déconnexion / Changer )

Connexion à %s