
我安裝 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