我试图在运行在Debian Squeeze上的vserver上安装rsync。
在调用apt-get install 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之前,重置我的系统并检查它是否工作正常没有问题。
但我无法弄清楚问题所在!
由于/ etc / default / halt被符号链接到/ bin / true,所以发生错误。
这在早期版本中是可行的。 但是直到Debian 6 InitScripts在脚本文件的头文件中查找依赖关系。 由于暂停符号链接到一个值InitScripts无法parsing结果并导致错误。
用原始内容replace/ etc / default / halt解决了这个问题。