Ubuntu 12.04 64bit /sbin/insserv: No such file or directory

by

in

Small fix if You have an error when You try to turn on startup programs.

for example:

# chkconfig -s ssh on
/sbin/insserv: No such file or directory

Fix is simple, just to add symlink:

# ln -s /usr/lib/insserv/insserv /sbin/insserv

[paypal-donation]


Comments

26 responses to “Ubuntu 12.04 64bit /sbin/insserv: No such file or directory”

  1. Серега Avatar
    Серега

    Thank you)

  2. Kevin Fries Avatar
    Kevin Fries

    Does not work, it only changes the error message:

    # chkconfig package on
    /sbin/insserv: Permission denied

    1. You have to use this command with sudo (to give administrator rights).
      I didn’t use ‘sudo’ because I was root at that server.

  3. Works!! thanks a billion

  4. multivak Avatar
    multivak

    Thank you, I was stuck a long time.

  5. Andreas Avatar

    This also helps if you have problems with updates as noted in
    Bug #1024658 (Can’t exec “insserv”: No such file or directory at /usr/sbin/update-rc.d line 402)
    Just use a different directory for the symlink:
    sudo ln -s /usr/lib/insserv/insserv /usr/sbin/insserv

  6. Helped me too, thanks.

  7. Thnx a lot, man!

  8. littleguy Avatar

    It works, thanks!

  9. Bosco Pratama Sirait Avatar
    Bosco Pratama Sirait

    thanks it works for me too…

  10. I am getting error/warnings:
    chkconfig -s ssh on
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script ‘console-setup’ missing LSB tags and overrides
    insserv: Default-Start undefined, assuming empty start runlevel(s) for script `console-setup’
    insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `console-setup’
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script ‘screen-cleanup’ missing LSB tags and overrides
    insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup’
    insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup’
    The script you are attempting to invoke has been converted to an Upstart

    1. Well, those are warnings because of missing LSB tags.
      You can ignore messages (chkconfig shows that service is on, doesn’t it?), or add tags by Yourself:
      http://wiki.debian.org/LSBInitScripts

      Actually, chkconfig is the way RHEL/CentOS family system adds startup scripts.
      The right way for Ubuntu is with update-rc.d.
      For example:
      update-rc.d ssh defaults

  11. Thank you so much!

  12. prasath Avatar

    It works.. Thanks a lot..

  13. Thanks! It works smooth as silk, solved my problem with a nagios startup

  14. It works..Thank you very much..)

  15. Zulquarnain Khilji Avatar
    Zulquarnain Khilji

    Thank you very much. my problem solved

  16. Cool, it’s help me

  17. Thanks a lot. It’s help me.

  18. Thanks !

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.