update-rc.d:error:insserv拒绝了脚本头dpkg:erreur de traitement du paquet util-linux( – configure):

我尝试安装升级或一些包,我收到错误

E: Sub-process /usr/bin/dpkg returned an error code (1) update-rc.d: error: insserv rejected the script header dpkg: erreur de traitement du paquet util-linux (--configure) : le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1 Des erreurs ont été rencontrées pendant l'exécution : util-linux E: Sub-process /usr/bin/dpkg returned an error code (1) 

请帮帮我,我正在使用ubuntu 14.10 ..谢谢

我认为/etc/init.d中的util-linux init脚本缺少LSB信息

作为临时解决方法,您可以找到该脚本并添加类似于顶部的内容

 #!/bin/sh -e ### BEGIN INIT INFO # Provides: # Required-Start: # Required-Stop: # Default-Start: # Default-Stop: # Short-Description: ### END INIT INFO 

但这不是一个完整的解决方案。 每当您安装将init脚本添加到/etc/init.d的应用程序时,您将不断收到此类错误消息

我遇到了类似的问题,我通过在此链接的最后一篇文章中应用解决方案修复了它https://bugs.launchpad.net/ubuntu/+source/insserv/+bug/467000

请注意,这并不意味着它适用于您的情况。 它可能会打破你的系统

有关LSB信息,请查看https://wiki.debian.org/LSBInitScripts

如果您粘贴更多信息,那将会很有帮助。 我安装任何东西时都遇到了这个问题。

这是问题,

 Extracting templates from packages: 100% Setting up util-linux (2.27.1-6ubuntu3.5) ... insserv: warning: script 'S15solrd' missing LSB tags and overrides insserv: warning: script 'solrd' missing LSB tags and overrides insserv: Starting solrd depends on rc.local and therefore on system facility `$all' which can not be true! insserv: Starting solrd depends on rc.local and therefore on system facility `$all' which can not be true! insserv: Starting solrd depends on rc.local and therefore on system facility `$all' which can not be true! insserv: Starting solrd depends on rc.local and therefore on system facility `$all' which can not be true! insserv: Starting solrd depends on rc.local and therefore on system facility `$all' which can not be true! insserv: There is a loop between service solrd and rc.local if started insserv: loop involving service rc.local at depth 12 insserv: loop involving service solrd at depth 1 insserv: exiting now without changing boot order! update-rc.d: error: insserv rejected the script header dpkg: error processing package util-linux (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: util-linux E: Sub-process /usr/bin/dpkg returned an error code (1) 

从输出我猜我没有配置solrd正确。 所以我删除了与rc.local或rc中的solrd相关的所有内容