我安装了 Ubuntu 14.04,当我添加:
sudo apt-get upgrade
我收到此错误:
root@:~# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up udev (204-5ubuntu20.8) ...
* udev requires hotplug support, not started
...fail!
invoke-rc.d: initscript udev, action "restart" failed.
dpkg: error processing package udev (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
udev
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@:~#
当我添加:
sudo apt-get install curl
我收到此错误:
Setting up udev (204-5ubuntu20.8) ...
* udev requires hotplug support, not started
...fail!
invoke-rc.d: initscript udev, action "restart" failed.
dpkg: error processing package udev (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
udev
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@:~#
有人知道怎么修这个东西吗 ?
谢谢。
答案1
有一个长帖对这个问题进行了“丑陋的修复”:我不知道这还会造成什么破坏。
在终端窗口中,进行/etc/init.d/udev
如下编辑:
sudo nano /etc/init.d/udev
在### END INIT INFO 之后添加:
出口 0
保存并退出。
sudo dpkg --configure -a
sudo apt-get upgrade