I'm trying to install a .deb file, written by us, on a new Debian Wheezy system. The .deb file was originally written for Lenny, so is fairly old. I've tracked down one point where the installation if failing by trying to install the package with dpkg -debug=3773 : it's trying to add some services using update-rc.d:

update-rc.d r-initialize-config start 12 2 .

This gives the error:

update-rc.d: using dependency based boot sequencing
insserv: Service r-interfaces has to be enabled to start service first-boot
insserv: exiting now!
update-rc.d: error: insserv rejected the script header

The script contains this as the header comments (this is the LSB header?)

# Provides: first-boot
# Required-Start: $local_fs r-interfaces
# Required-Stop:
# Default-Start: 2
# Default-Stop:
# Short-Description:

and the r-interfaces script is present and seems to run correctly.

What are the requirements of programs started by the "Required-Start:" attribute? E.g. I changed r-interfaces to "ls" and got the same problem. r-interfaces is a transient script and does not run as a daemon, so maybe that's the problem. What does Required-Start: need?

  • 1
    Looks like a problem with the LSB headers, not the update-rc.d call. The headers are safe to have in Lenny, they will be ignored. – jordanm Jun 30 '13 at 17:55
  • What exactly are LSB headers, and how would I go about debugging the problem? – fred basset Jun 30 '13 at 18:24
  • 1
    wiki.debian.org/LSBInitScripts – jordanm Jun 30 '13 at 20:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.