依赖问题和 insserv 错误大量出现

依赖问题和 insserv 错误大量出现

我正在运行 Ubuntu 16.04.1,dist-upgrade 因依赖性问题而失败。我尝试使用 sudo dpkg --configure -a 修复它,但这似乎让一切变得更糟 - 我得到了下面复制的错误。我现在不知道该怎么办了 - 任何建议都非常感谢!

Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
9 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up udev (229-4ubuntu11) ...
addgroup: The group `input' already exists as a system group. Exiting.
update-initramfs: deferring update (trigger activated)
insserv: warning: script 'K16mdns' missing LSB tags and overrides
insserv: warning: script 'mdns' missing LSB tags and overrides
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 mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop at service plymouth if started
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop at service mdns if started
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service mdns and hwclock if started
insserv:  loop involving service hwclock at depth 1
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
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 mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv:  loop involving service checkroot at depth 4
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns 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 udev (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up lightdm (1.18.3-0ubuntu1) ...
insserv: warning: script 'K16mdns' missing LSB tags and overrides
insserv: warning: script 'mdns' missing LSB tags and overrides
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 mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop at service plymouth if started
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop at service mdns if started
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service mdns and hwclock if started
insserv:  loop involving service hwclock at depth 1
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
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 mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv:  loop involving service checkroot at depth 4
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: Starting mdns 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 lightdm (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of initramfs-tools-core:
 initramfs-tools-core depends on udev; however:
  Package udev is not configured yet.

dpkg: error processing package initramfs-tools-core (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of initramfs-tools:
 initramfs-tools depends on initramfs-tools-core (= 0.122ubuntu8.3); however:
  Package initramfs-tools-core is not configured yet.

dpkg: error processing package initramfs-tools (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-4.4.0-43-generic:
 linux-image-4.4.0-43-generic depends on initramfs-tools | linux-initramfs-tool; however:
  Package initramfs-tools is not configured yet.
  Package linux-initramfs-tool is not installed.
  Package initramfs-tools which provides linux-initramfs-tool is not configured yet.

dpkg: error processing package linux-image-4.4.0-43-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-43-generic:
 linux-image-extra-4.4.0-43-generic depends on linux-image-4.4.0-43-generic; however:
  Package linux-image-4.4.0-43-generic is not configured yet.

dpkg: error processing package linux-image-extra-4.4.0-43-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-4.4.0-43-generic; however:
  Package linux-image-4.4.0-43-generic is not configured yet.
 linux-image-generic depends on linux-image-extra-4.4.0-43-generic; however:
  Package linux-image-extra-4.4.0-43-generic is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 4.4.0.43.45); however:
  Package linux-image-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of xserver-xorg-core:
 xserver-xorg-core depends on udev (>= 149); however:
  Package udev is not configured yet.

dpkg: error processing package xserver-xorg-core (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 udev
 lightdm
 initramfs-tools-core
 initramfs-tools
 linux-image-4.4.0-43-generic
 linux-image-extra-4.4.0-43-generic
 linux-image-generic
 linux-generic
 xserver-xorg-core

答案1

我一般性地回答你:当你看到这样的死锁时你可以尝试几种方法,但所有方法都可能导致问题,所以你可能应该只暂时使用它们。

1)尝试删除有问题的软件包。就你的情况而言,是 mdns 和 plymouth。我不知道 mdns(如果没有人依赖它,你可能很幸运地删除了它,但你可能会失去一些功能,所以稍后再重新安装它);通过删除 plymouth,你会丢失启动动画和其他东西,你可能不想这样做。

2)尝试检查 /etc/init.d/ 文件并尝试从依赖项(文件顶部的注释块)中删除“$all”,尤其是从Required-行。* 在这种情况下,我会检查 /etc/init.d/mdns 并从开头部分删除“$all”。这将导致 mdns 稍后启动,根据有根据的猜测,这不会破坏您的系统(但可能性很低,仍然不能保证)。通常,“$all”是不合理的,可能是包装错误。升级甚至可能为您修复它。

您可以通过手动运行“insserv -n”进行测试。

相关内容