我不能在普通的ubuntu 14.04上安装udev

kac*_*rro 9 ubuntu dpkg udev

我有简单的Ubuntu 14.04服务器(64位)安装.

使用时:

sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

打印此错误:

....
Hit http://security.ubuntu.com trusty-security/universe Translation-en
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
Run Code Online (Sandbox Code Playgroud)

删除tmp.i /var/lib/dpkg/updates# sudo rm tmp.iapt-get update 后就行了但是...

当我尝试'sudo apt-get upgrade'时:

Fetched 534 kB in 4s (112 kB/s)              
Reading package lists... Done
root@vps****:/# 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.9) ...
 * 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)
Run Code Online (Sandbox Code Playgroud)

我到目前为止在网上找不到任何解决方案,尝试了很多方法但没有任何效果......

kac*_*rro 23

原因可能是OVH服务器上的所有Ubuntu 14.04安装都出现问题.我已经联系过技术支持,他们没有任何答案可能有助于"帮助自己".

收到此错误后:

nano /etc/init.d/udev
Run Code Online (Sandbox Code Playgroud)

在### END INIT INFO之后添加:

exit 0         
Run Code Online (Sandbox Code Playgroud)

保存并退出.

dpkg --configure -a         
apt-get upgrade         
Run Code Online (Sandbox Code Playgroud)

再次编辑文件,然后删除exit 0,保存并退出,然后安装后续软件包正常工作,重新启动后系统看起来很好,没有出现那个糟糕的错误消息.

该线程的临时解决方案:http://forum.ovh.co.uk/showthread.php?8480-udev-requires-hotplug-support-not-started/page2&s=2144010031f992268c5690726da09284


小智 5

对于那些跟在我后面的人,我必须编辑/usr/sbin/invoke-rc.d以在第一条评论之后添加一个退出0以获得udev配置.

nano -w /usr/sbin/invoke-rc.d

...
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
exit 0
Run Code Online (Sandbox Code Playgroud)

然后运行:

dpkg --configure -a
Run Code Online (Sandbox Code Playgroud)

然后从invoke-rc.d中删除出口0