标签 Debian7 下的文章

Debian7升级到Debian7.1 出现读写/run/initctl超时的解决办法

vps里运行

apt-get update&&apt-get dist-upgrade,

从Debian7升级到Debian7.1,升级过程的最后,出现如下提示:

sysvinit: creating /run/initctl
sysvinit: restarting...init: timeout opening/writing control channel /run/initctl
.init: timeout opening/writing control channel /run/initctl
.init: timeout opening/writing control channel /run/initctl
.init: timeout opening/writing control channel /run/initctl
.init: timeout opening/writing control channel /run/initctl
.init: timeout opening/writing control channel /run/initctl
.init: timeout opening/writing control channel /run/initctl
.init: timeout opening/writing control channel /run/initctl
 failed.

然后,就悲剧了,系统无法重启和关机了。

运行reboot 或halt 都会出现:

The system is going down for reboot NOW!
shutdown: timeout opening/writing control channel /run/initctl
init: timeout opening/writing control channel /run/initctl

然后,系统继续运行。

搜索一下,发现原来是dist-upgrade后缺省使用了新的sysvinit,在这里有说明。

一个临时的解决办法很简单,重新安装一下upstart即可:

apt-get install upstart

安装过程会自动移除sysvinit,并会提示你输入“Yes, do as I say!”,然后,系统就可以正常重启了。