系统升级后,cron出错,导致不能正常apt-get

系统错误报告和讨论
回复
头像
zshmail
帖子: 270
注册时间: 2006-07-03 9:12
送出感谢: 0
接收感谢: 0
联系:

系统升级后,cron出错,导致不能正常apt-get

#1

帖子 zshmail » 2008-03-18 23:48

系统用的是7.10server版,apt-get upgrade后,使用apt-get install 任意软件都提示cron出错,提示如下:

# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up cron (3.0pl1-100ubuntu1) ...
usage: update-rc.d [-n] [-f] <basename> remove
update-rc.d [-n] <basename> defaults [NN | SS KK]
update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
-n: not really
-f: force
dpkg: error processing cron (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
cron
E: Sub-process /usr/bin/dpkg returned an error code (1)

=============================================================
后卸载了cron后,apt-get正常了,但影响了其它软件,比如ntp,samba等要用到cron的所有软件都不能用了。
然后我下载了cron的deb包,想通过dpkg强制安装,但也是如上提示,不能安装。

经搜索跟我一样问题的人很多,但都没有修复的办法,最终都是重装系统。
回复

回到 “Ubuntu错误报告”