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

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

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

, ,

Comments:22

Leave a Reply
  1. Reply Серега 12/05/29

    Thank you)

  2. Reply Kevin Fries 12/07/16

    Does not work, it only changes the error message:

    # chkconfig package on
    /sbin/insserv: Permission denied

    • Reply nsc 12/07/20

      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. Reply onks_ 12/07/23

    Works!! thanks a billion

  4. Reply multivak 12/07/26

    Thank you, I was stuck a long time.

  5. Reply Andreas 12/08/02

    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. Reply lpx 12/08/15

    Helped me too, thanks.

  7. Reply Byx 12/08/29

    Thnx a lot, man!

  8. Reply scy 12/09/28

    thanks

  9. Reply littleguy 12/09/30

    It works, thanks!

  10. Reply Bosco Pratama Sirait 12/10/29

    thanks it works for me too…

  11. Reply Kamal 12/11/15

    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

    • Reply nsc 12/11/15

      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

  12. Reply Korean 12/12/05

    Thank you so much!

  13. Reply prasath 13/04/02

    It works.. Thanks a lot..

  14. Reply pollo 13/04/09

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

  15. Reply hamed ghahremani 13/05/07

    thanks

  16. Reply Gopi 13/06/06

    It works..Thank you very much..)

  17. Reply Zulquarnain Khilji 13/06/11

    Thank you very much. my problem solved

  18. Reply konrad 13/08/15

    Cool, it’s help me

  19. Reply Kiki 13/09/07

    Thanks a lot. It’s help me.

  20. Reply DooM 13/09/08

    Thanks !

Leave a Reply

Trackbacks:0

Listed below are links to weblogs that reference
Ubuntu 12.04 64bit /sbin/insserv: No such file or directory from login: root
TOP
%d bloggers like this: