![无法清除或重新安装“systemd-shim”和“cgmanager”](https://linux22.com/image/105068/%E6%97%A0%E6%B3%95%E6%B8%85%E9%99%A4%E6%88%96%E9%87%8D%E6%96%B0%E5%AE%89%E8%A3%85%E2%80%9Csystemd-shim%E2%80%9D%E5%92%8C%E2%80%9Ccgmanager%E2%80%9D.png)
介绍
首先,这是我使用的:乌班图16.04
我碰巧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
更新[2017-02-22]mdadm.postinst
以下是文件 的内容:粘贴链接。
另外,这里是输出dpkg -C
:
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
keyboard-configuration system-wide keyboard preferences
mdadm tool to administer Linux MD arrays (software RAID)