错误处理包 initramfs-tools

错误处理包 initramfs-tools

我尝试安装 unoconv 但无法让它工作,所以我想完全卸载它。现在我收到有关 initramfs-tools 的错误。

根据 Debian bugtracker,这个“cannot stat '/etc/modprobe.d/*'”错误在两年前就被修复了,所以我不知道该怎么办。只是一个疯狂的猜测,但卸载 initramfs-tools 并不是正确的方法。

$ sudo apt-get purge unoconv
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'unoconv' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.120+deb8u3) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.120+deb8u3) ...
update-initramfs: Generating /boot/initrd.img-4.5.0-0.bpo.2-amd64
cp: cannot stat ‘/etc/modprobe.d/*’: No such file or directory
cp: omitting directory ‘/etc/udev/rules.d/70-persistent-net.rules’
E: /usr/share/initramfs-tools/hooks/udev failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.5.0-0.bpo.2-amd64 with 1.
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

相关内容