每次我尝试通过 VPS(Ubuntu Server 15.04)上的 SSH 执行命令时,都会收到这个奇怪的输出,这不允许我安装任何东西。有什么建议吗?
Job for systemd-udevd.service failed. See "systemctl status systemd-udevd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript udev, action "restart" failed.
dpkg: error processing package udev (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of systemd:
systemd depends on udev; however:
Package udev is not configured yet.
dpkg: error processing package systemd (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
udev
systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
- 打开
/var/lib/dpkg/info/udev.postinst
进行编辑。然后注释invoke-rc.d udev restart
行。保存并关闭。 跑步
dpkg --configure -a
我之前也遇到过类似的情况:apt-get purge 如何工作?为什么它不能一次性删除损坏的软件包?