+ -
当前位置:首页 → 问答吧 → 不小心删除sysvinit

不小心删除sysvinit

时间:2009-09-08

来源:互联网

我用apt装chkconfig时,不小心就将sysvinit卸载了,后来每次使用apt-get upgrade都会提示找不到update-rc.d.然后我就找到sysvinit的deb包,将其中的文件复制到系统相应位置.
现在用upgrade时就说
dpkg:处理 rsyslog (--configure)时出错:
子进程 已安装的 post-installation 脚本 返回了错误号 1
正在设置 console-tools (1:0.2.3dbs-66) ...

update-rc.d: not present yet.

You are replacing sysv-rc with file-rc or another -rc package, or
the other way around. The replacement package must first be
unpacked before you can configure other packages.

Exiting with error status 1.


invoke-rc.d: not present yet.

You are replacing sysv-rc with file-rc or another -rc package, or
the other way around. The replacement package must first be
unpacked before you can configure other packages.

Exiting with error status 1.

dpkg:处理 console-tools (--configure)时出错:
子进程 已安装的 post-installation 脚本 返回了错误号 1
在处理时有错误发生:
rsyslog
console-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

作者: kingoftime3   发布时间: 2009-09-08

Probably this is useful to you:

http://www.linuxsir.org/bbs/thread227316.html

作者: d00m3d   发布时间: 2009-09-09

呵呵。sysvinit删除就删除吧,换一个。

今天看以新闻,Debian启动系统维护者们说,现在的Debian Sysvinit启动系统因为其不可靠性,将会逐渐被upstart代替。

因为未来的内核会更加基于事件驱动,所以Debian的开发者们首先想到的是实现一个基于事件的启动系统来替换Debian 6.0中的旧系统。而sysvinit是基于结果,从而变得越来越不可靠。比方说,fsck和mount工具不能找到在/dev的设备,或者网络文件系统不能启动它的服务,因为网络工作接口没有初始化。

就像Fedora和Ubuntu,Debian正在尝试在upstart上设置。在FOSDEM 2009中,Debian提交了一份状况报告,报告中提及它已经组织了启动了一个初始进程替换和扩展的项目。

有关更详细的 upstart 介绍,看看王旭老兄的翻译:

http://blog.chinaunix.net/u/3514/showart.php?id=723261

作者: DebianEdu   发布时间: 2009-09-10

变更求突破,未尝不可,也总比默守成规的要好

作者: d00m3d   发布时间: 2009-09-10

是要更换了,特别是依赖网络的nfs服务,一旦网卡没先起来,总是挂载不上,很是郁闷的。

作者: favoyun   发布时间: 2009-09-10