安装 rsync 因子进程错误而停止

安装 rsync 因子进程错误而停止

我尝试在运行 Debian Squeeze 的虚拟服务器上安装 rsync。

拨打电话后apt-get 安装 rsync安装程序停止工作,并出现以下输出:

$ apt-get install rsync
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  rsync
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 359 kB of archives.
After this operation, 721 kB of additional disk space will be used.
Get:1 http://debian.netcup.net/debian/ squeeze/main rsync amd64 3.0.7-2 [359 kB]
Fetched 359 kB in 0s (7480 kB/s)
Selecting previously deselected package rsync.
(Reading database ... 18123 files and directories currently installed.)
Unpacking rsync (from .../rsync_3.0.7-2_amd64.deb) ...
Processing triggers for man-db ...
Setting up rsync (3.0.7-2) ...
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'halt' missing LSB tags and overrides
insserv: There is a loop between service umountfs and halt if stopped
insserv:  loop involving service halt at depth 5
insserv:  loop involving service umountroot at depth 4
insserv: There is a loop between service umountfs and halt if stopped
insserv:  loop involving service umountfs at depth 4
insserv:  loop involving service networking at depth 3
insserv: There is a loop between service halt and umountroot if stopped
insserv:  loop involving service umountnfs at depth 28
insserv: warning: script 'halt' missing LSB tags and overrides
insserv: There is a loop between service umountfs and halt if stopped
insserv:  loop involving service halt at depth 5
insserv:  loop involving service umountroot at depth 4
insserv: There is a loop between service umountfs and halt if stopped
insserv:  loop involving service umountfs at depth 4
insserv:  loop involving service networking at depth 3
insserv: There is a loop between service halt and umountroot if stopped
insserv:  loop involving service umountnfs at depth 28
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing rsync (--configure):
  subprocess installed post-installation script returned error exit status 1
configured to not write apport reports Errors were encountered while processing:
  rsync
E: Sub-process /usr/bin/dpkg returned an error code (1)

在安装之前,apt-get install 每次都能正常工作。我在尝试安装 git-core 之前进行了备份,因此在尝试安装 git 之前重置系统并检查它是否正常工作对我来说没有问题。

但我无法弄清楚问题出在哪里!

答案1

发生错误的原因是 /etc/default/halt 符号链接到 /bin/true。

在早期版本中这是可能的。但直到 Debian 6,InitScripts 才会在脚本文件的标头中查找依赖项。由于 halt 符号链接到一个值,InitScripts 无法解析结果并导致错误。

用原始内容替换 /etc/default/halt 即可解决问题。

相关内容