搜尋此網誌

2013年8月6日 星期二

安裝sysstat失敗...update-rc.d: error: insserv rejected the script header

錯誤訊息一堆...想移也移不掉...

insserv: Starting noip2 depends on minissdpd and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv:  loop involving service noip2 at depth 1
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing sysstat (--purge):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 sysstat
E: Sub-process /usr/bin/dpkg returned an error code (1)

查了一下google
原來是少了header...
#vi /etc/init.d/noip2



加入
### BEGIN INIT INFO
# Provides:          noip2
# Required-Start:    $syslog
# Required-Stop:     $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: noip2 service
# Description:       noip2 service
### END INIT INFO


之後移除再安裝就不會有問題啦...

沒有留言:

張貼留言