介绍
我刚好systemd-shim
在电脑上安装了该软件包。但是,它返回了无法配置的错误。
所以暂时让它保持原样。但是,每当我想使用 执行任何其他操作时apt
,它都会显示在列表中:1 package not installed
但即使使用命令也无法正确安装--reinstall
。
问题
然后我决定直接使用 删除它apt purge
。但是,这也不起作用。以下是我收到的部分错误:
insserv: Starting .depend.start depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service .depend.start and dns-clean if started
insserv: loop involving service dns-clean at depth 1
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package cgmanager (--purge):
subprocess installed post-removal script returned error exit status 1
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
cgmanager
E: Sub-process /usr/bin/dpkg returned an error code (1)
对于包来说也是如此cgmanager
,显然在配置不完整时包也未完全配置systemd-shim
。
执行时也会出现同样的错误sudo apt install --reinstall mdadm
,这是建议的步骤这个答案:
insserv: Starting .depend.start depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service .depend.start and dns-clean if started
insserv: loop involving service dns-clean at depth 1
insserv: Starting .depend.start 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 mdadm (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
mdadm
E: Sub-process /usr/bin/dpkg returned an error code (1)
我尝试清除apt
缓存,即存储下载包的本地目录,.deb
以便在当前/下次运行时安装它们,但无济于事。
我无法在任何地方找到针对我的情况的解决方案,因此提出这个问题。其他问题(A,乙) 涉及 16.04-->16.10 升级期间出现的问题。但是,我正在使用 16.04,并且不打算在不久的将来升级我的系统。我曾手动尝试安装软件包并遇到上述错误。
我的系统运行正常,没有遇到任何功能错误由此产生,但最好解决它而不是让它留在那里,所以我很感激您能提供的任何帮助。
更新
我运行了该命令sudo dpkg --reconfigure -a
,下面是更多这样的输出:
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Processing triggers for plymouth-theme-ubuntu-text (0.9.2-3ubuntu13.1) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.122ubuntu8.8) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-62-generic
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1.bin for module i915_bpo
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Errors were encountered while processing:
mdadm