当我尝试做一个简单的事情时
sudo apt-get upgrade
或者涉及安装包的东西
sudo apt-get install <mypackage>
我不断收到相同的错误消息:
[truncated ...]
Do you want to continue? [Y/n] y
Reading changelogs... Done
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up udev (215-17+deb8u5) ...
addgroup: The group `input' already exists as a system group. Exiting.
update-initramfs: deferring update (trigger activated)
insserv: Service mountkernfs has to be enabled to start service udev
insserv: exiting now!
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
Processing triggers for initramfs-tools (0.120+deb8u2) ...
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
W: Possible missing firmware /lib/firmware/tigon/tg3_tso5.bin for module tg3
W: Possible missing firmware /lib/firmware/tigon/tg3_tso.bin for module tg3
W: Possible missing firmware /lib/firmware/tigon/tg3.bin for module tg3
Errors were encountered while processing:
udev
E: Sub-process /usr/bin/dpkg returned an error code (1)
我尝试了很多方法来修复这个问题,无论是 sudo apt-get install --reinstall udev 还是尝试进入 synaptic,尝试删除残留的配置软件...
到目前为止,没有任何效果;我也尝试下载udev包,然后
dpkg -i --force-install /path/to/udev
但无论如何,我总是回到同样的问题,又名 udev 问题。
我还尝试启用 moutkernfs,但这样做告诉我它被屏蔽了。 “不”问题,我取消屏蔽它,然后尝试启用它,但它仍然说它已被屏蔽。
我能做些什么 ?
编辑:这是按照要求的 systemctl 输出
systemctl status mountkernfs
● mountkernfs.service
Loaded: masked (/dev/null)
Active: inactive (dead)
答案1
insserv
认为已禁用,这基本上意味着目录中mountkernfs
没有链接。结果它拒绝启用(这取决于).../etc/init.d/mountkernfs.sh
/etc/rc?.d
udev
mountkernfs
要解决这个问题,请运行
insserv mountkernfs.sh
这将恢复默认链接,在/etc/rcS.d
. (-v
如果需要,该选项会提供更多详细信息。)然后insserv
会认为mountkernfs
已启用,因此udev
也可以激活。
至于为什么事情会变成这样,我也不知道……