Ubuntu insserv 拒绝了脚本头

Ubuntu insserv 拒绝了脚本头

我在尝试安装或清除任何软件包时不断收到此错误 -

insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header

完整日志如下-

Removing clamav-freshclam (0.98.7+dfsg-0ubuntu0.15.04.1) ...
Purging configuration files for clamav-freshclam (0.98.7+dfsg-0ubuntu0.15.04.1) ...
insserv: warning: script 'S99selinux' missing LSB tags and overrides
insserv: warning: script 'selinux' missing LSB tags and overrides
insserv: Starting selinux depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service selinux and rc.local if started
insserv:  loop involving service rc.local at depth 6
insserv:  loop involving service selinux at depth 2
insserv: Starting selinux depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service selinux and rc.local if started
insserv: Starting selinux depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on rc.local 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 package clamav-freshclam (--purge):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
clamav-daemon
 clamav-freshclam
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

我删除了文件linux系统位于/etc/init.d此后再也没有出现任何问题。

它显示在错误中,就像问题中那样 -

insserv: Starting selinux depends on rc.local and therefore on system facility `$all' which can not be true!

相关内容