由于insserv,无法使用apt-get安装任何内容

普兰加尔

每当我尝试使用进行安装时,apt-get都会收到涉及的错误消息insserv我尝试安装许多不同的程序包,但所有程序都给出相同的错误。显然,CUPS包正在做/已经做过一些事情,因为每个错误消息都涉及到它。以下是我运行时显示的错误sudo apt-get install wine1.8 winetricks

After this operation, 716 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up util-linux (2.27.1-6ubuntu3.1) ...
insserv: warning: script 'K01cups-browsed' missing LSB tags and overrides
insserv: warning: script 'cups-browsed' missing LSB tags and overrides
insserv: There is a loop at service plymouth if started
insserv: There is a loop between service plymouth and procps if started
insserv:  loop involving service procps at depth 2
insserv:  loop involving service udev at depth 1
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv:  loop involving service speech-dispatcher at depth 1
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service cups-browsed and hwclock if started
insserv:  loop involving service hwclock at depth 1
insserv: There is a loop at service cups-browsed if started
insserv:  loop involving service networking at depth 4
insserv: There is a loop between service plymouth and urandom if started
insserv:  loop involving service urandom at depth 4
insserv:  loop involving service mountdevsubfs at depth 2
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service cups-browsed and dns-clean if started
insserv:  loop involving service dns-clean at depth 1
insserv: Starting cups-browsed depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting cups-browsed depends on plymouth 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 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)

/etc/insserv.conf的内容如下:

#
# All local filesystems are mounted (done during boot phase)
#
$local_fs   +umountfs

#
# Low level networking (ethernet card)
#
$network    +networking

#
# Named is operational
#
$named      +named +dnsmasq +lwresd +bind9 +unbound $network

#
# All remote filesystems are mounted (note in some cases /usr may
# be remote. Most applications that care will probably require
# both $local_fs and $remote_fs)
#
$remote_fs  $local_fs +umountnfs +sendsigs

#
# System logger is operational
#
$syslog     +rsyslog +sysklogd +syslog-ng +dsyslog +inetutils-syslogd

#
# The system time has been set correctly
#
$time       +hwclock

#
# Services which need to be interactive
#
<interactive>   glibc udev console-screen keymap keyboard-setup console-setup cryptdisks cryptdisks-early checkfs-loop

输出为 $ apt-cache policy cups-browsed plymouth dns-clean

cups-browsed:
  Installed: 1.8.3-2ubuntu3
  Candidate: 1.8.3-2ubuntu3
  Version table:
 *** 1.8.3-2ubuntu3 500
        500 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
plymouth:
  Installed: 0.9.2-3ubuntu13
  Candidate: 0.9.2-3ubuntu13.1
  Version table:
     0.9.2-3ubuntu13.1 500
        500 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
 *** 0.9.2-3ubuntu13 500
        500 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
N: Unable to locate package dns-clean

我不知道任何其他对解决此问题可能重要的相关信息,这就是为什么我没有发布它。如果您需要更多信息,请随时询问。

mc平方

首先,问题是您被卡在了启动顺序上。


引导顺序方法是在安装或升级过程中确定的。如果所有已安装init.d脚本的LSB头声明的依赖项中没有循环,并且没有过时的脚本,则系统将转换为基于依赖项的启动顺序。


我们必须检查

  1. 循环依赖:在>时发生

    • 一些脚本中缺少LSB标签,或者LSB标签中有错误(例如缺少Required-Start:Required-Stop:标签)
    • 一些脚本依赖于其他脚本,这些脚本依赖于系统工具$all,而这是不正确的。因为依赖的脚本$all是在启动时最后加载的。由于它最后加载,因此没有任何东西可以依赖它。因此,搞乱了基于依赖项的启动顺序。
  2. 过时的脚本:在以下时间发生

    • 一些软件包已升级到较新的版本,可能没有使用脚本,/etc/init.d/并且维护者可能错过了删除旧脚本的代码。不是我们的错误。

原因肯定是外国的。转到/etc/init.d并查看对应于该文件的文件,cups-browsed并确认文件中带有ProvidesRequired-Start/ Required-Stop(至少为空),Default-Start/的LSB注释Default-Stop如下所示。

### BEGIN INIT INFO
# Provides :          cups-browsed
# Required-Start :
# Required-Stop :
# Default-Start :     2 3 4 5
# Default-Stop  :     0 1 6
# Short-Description : Some info
# Description :       Some more info
### END INIT INFO

如果不存在,则可以选择添加LSB注释,或从/etc/init.d//etc/rc?文件中完全清除程序和脚本希望这会起作用。

随时询问您是否有任何疑问。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

无法使用apt-get安装任何内容。似乎存在未满足依赖关系的错误

来自分类常见问题

Docker构建“无法解析'archive.ubuntu.com'” apt-get无法安装任何内容

来自分类Dev

无法使用Pip安装任何内容

来自分类Dev

Ubuntu 16.04损坏的内核程序包不允许我使用apt-get安装或删除任何内容

来自分类Dev

Ubuntu 16.04损坏的内核程序包不允许我使用apt-get安装或删除任何内容

来自分类Dev

fontconfig错误-无法安装任何内容

来自分类Dev

即使安装了依赖项,也会由于缺少依赖项而无法使用apt安装aptitude

来自分类Dev

无法安装任何更新(apport和insserv问题)

来自分类Dev

Apt-Get错误;无法安装任何东西

来自分类Dev

由于存在“未满足的依赖项”,因此无法再使用“ apt-get install”

来自分类Dev

由于python茉莉花而无法使用apt-get

来自分类Dev

由于linux-image上的dpkg:error,因此无法apt升级或安装任何软件包

来自分类Dev

由于什么时候可以在apt-get安装上使用apt安装?

来自分类Dev

无法使用apt-get安装vim

来自分类Dev

无法在Windows 10上的Microsoft Store中安装任何内容

来自分类Dev

无法从软件中心安装,删除或更新任何内容

来自分类Dev

从启动中删除的文件,现在无法安装任何内容

来自分类Dev

16.04无法从Ubuntu软件中心安装任何内容

来自分类Dev

无法在EC2上安装任何内容?

来自分类Dev

无法使用apt安装任何软件包

来自分类Dev

即使更新后也无法从apt-get或apt下载任何内容?

来自分类Dev

无法使用file_get_contents(),不返回任何内容

来自分类Dev

无法使用file_get_contents(),不返回任何内容

来自分类Dev

由于依赖关系而无法执行apt-get

来自分类Dev

无法使用brew安装任何内容,错误:无法下载资源“ git--html”

来自分类Dev

无法使用 apt 安装或卸载

来自分类Dev

LXC无特权的容器:apt-get无法下载其中的任何内容

来自分类Dev

apt-get不安装任何Linux服务器

来自分类Dev

无法通过更新管理器/ apt-get升级安装任何更新

Related 相关文章

  1. 1

    无法使用apt-get安装任何内容。似乎存在未满足依赖关系的错误

  2. 2

    Docker构建“无法解析'archive.ubuntu.com'” apt-get无法安装任何内容

  3. 3

    无法使用Pip安装任何内容

  4. 4

    Ubuntu 16.04损坏的内核程序包不允许我使用apt-get安装或删除任何内容

  5. 5

    Ubuntu 16.04损坏的内核程序包不允许我使用apt-get安装或删除任何内容

  6. 6

    fontconfig错误-无法安装任何内容

  7. 7

    即使安装了依赖项,也会由于缺少依赖项而无法使用apt安装aptitude

  8. 8

    无法安装任何更新(apport和insserv问题)

  9. 9

    Apt-Get错误;无法安装任何东西

  10. 10

    由于存在“未满足的依赖项”,因此无法再使用“ apt-get install”

  11. 11

    由于python茉莉花而无法使用apt-get

  12. 12

    由于linux-image上的dpkg:error,因此无法apt升级或安装任何软件包

  13. 13

    由于什么时候可以在apt-get安装上使用apt安装?

  14. 14

    无法使用apt-get安装vim

  15. 15

    无法在Windows 10上的Microsoft Store中安装任何内容

  16. 16

    无法从软件中心安装,删除或更新任何内容

  17. 17

    从启动中删除的文件,现在无法安装任何内容

  18. 18

    16.04无法从Ubuntu软件中心安装任何内容

  19. 19

    无法在EC2上安装任何内容?

  20. 20

    无法使用apt安装任何软件包

  21. 21

    即使更新后也无法从apt-get或apt下载任何内容?

  22. 22

    无法使用file_get_contents(),不返回任何内容

  23. 23

    无法使用file_get_contents(),不返回任何内容

  24. 24

    由于依赖关系而无法执行apt-get

  25. 25

    无法使用brew安装任何内容,错误:无法下载资源“ git--html”

  26. 26

    无法使用 apt 安装或卸载

  27. 27

    LXC无特权的容器:apt-get无法下载其中的任何内容

  28. 28

    apt-get不安装任何Linux服务器

  29. 29

    无法通过更新管理器/ apt-get升级安装任何更新

热门标签

归档