Package: cfengine2 Version: 2.1.20-1 Hi, i am upgrading a couple hundret machines (from woody -> sarge -> etch). I purge a backported cfengine2 package before upgrade and install it afterwards. Before installation i am preseeding the cfengine2 questions:
+ debconf-set-selections -v /tmp/cfengine2.preseed
info: Trying to set 'cfengine2/run_cfservd' [boolean] to 'true'
info: Loading answer for 'cfengine2/run_cfservd'
info: Trying to set 'cfengine2/run_cfexecd' [boolean] to 'false'
info: Loading answer for 'cfengine2/run_cfexecd'
info: Trying to set 'cfengine2/run_cfenvd' [boolean] to 'false'
info: Loading answer for 'cfengine2/run_cfenvd'
Once in a while i have the problem that installation fails on etch with
the following message. "Re-Preseeding" does not help, i need to purge
and reinstall the package:
+ DEBIAN_FRONTEND=noninteractive
+ apt-get --force-yes -fuy install cfengine2
Reading package lists...
Building dependency tree...
Suggested packages:
cfengine2-doc
The following NEW packages will be installed:
cfengine2
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1046kB of archives.
After unpacking 2552kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
cfengine2
Get:1 http://source.rfc822.org etch/main cfengine2 2.1.20-1 [1046kB]
Preconfiguring packages ...
Fetched 1046kB in 0s (1406kB/s)
Selecting previously deselected package cfengine2.
(Reading database ... 17443 files and directories currently installed.)
Unpacking cfengine2 (from .../cfengine2_2.1.20-1_i386.deb) ...
Setting up cfengine2 (2.1.20-1) ...
Wacky RET: ''
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
-n, --quiet, --silent
suppress automatic printing of pattern space
-e script, --expression=script
add the script to the commands to be executed
-f script-file, --file=script-file
add the contents of script-file to the commands to be executed
-i[SUFFIX], --in-place[=SUFFIX]
edit files in place (makes backup if extension supplied)
-l N, --line-length=N
specify the desired line-wrap length for the `l' command
--posix
disable all GNU extensions.
-r, --regexp-extended
use extended regular expressions in the script.
-s, --separate
consider files as separate rather than as a single continuous
long stream.
-u, --unbuffered
load minimal amounts of data from the input files and flush
the output buffers more often
--help display this help and exit
--version output version information and exit
If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret. All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.
E-mail bug reports to: [EMAIL PROTECTED] .
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
dpkg: error processing cfengine2 (--configure):
subprocess post-installation script returned error exit status 4
Errors were encountered while processing:
cfengine2
E: Sub-process /usr/bin/dpkg returned an error code (1)
I added a "set -x" to the postinst script and got this:
[EMAIL PROTECTED]:~# dpkg --configure -a
Setting up cfengine2 (2.1.20-1) ...
+ set -e
+ INPUTS=/var/lib/cfengine2/inputs
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/cfengine2.postinst
configure 2.1.20-1flo1
+ set -e
+ INPUTS=/var/lib/cfengine2/inputs
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ db_version 2.0
+ _db_cmd 'VERSION 2.0'
+ IFS=' '
+ printf '%s\n' 'VERSION 2.0'
+ IFS='
'
+ read -r _db_internal_line
+ RET=2.0
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ case "$1" in
+ make_key
+ '[' '!' -f /var/lib/cfengine2/ppkeys/localhost.priv ']'
+ config_daemons
+ CUR=/etc/default/cfengine2
+ test '!' -f /etc/default/cfengine2
++ mktemp /etc/default/cfengine2.XXXXXXXXX
+ NEW=/etc/default/cfengine2.fqGi21095
+ cp -a -f /etc/default/cfengine2 /etc/default/cfengine2.fqGi21095
++ sed_script_config_daemons
++ ALL_DAEMONS='CFSERVD CFEXECD CFENVD'
++ for DAEMON in '$ALL_DAEMONS'
+++ echo CFSERVD
+++ tr A-Z a-z
++ LC_DAEMON=cfservd
++ db_get cfengine2/run_cfservd
++ _db_cmd 'GET cfengine2/run_cfservd'
++ IFS=' '
++ printf '%s\n' 'GET cfengine2/run_cfservd'
++ IFS='
'
++ read -r _db_internal_line
++ RET=
++ case ${_db_internal_line%%[ ]*} in
++ return 0
++ case "$RET" in
++ echo 'Wacky RET: '\'''\'''
Wacky RET: ''
++ return 1
+ sed
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
-n, --quiet, --silent
suppress automatic printing of pattern space
-e script, --expression=script
add the script to the commands to be executed
-f script-file, --file=script-file
add the contents of script-file to the commands to be executed
-i[SUFFIX], --in-place[=SUFFIX]
edit files in place (makes backup if extension supplied)
-l N, --line-length=N
specify the desired line-wrap length for the `l' command
--posix
disable all GNU extensions.
-r, --regexp-extended
use extended regular expressions in the script.
-s, --separate
consider files as separate rather than as a single continuous
long stream.
-u, --unbuffered
load minimal amounts of data from the input files and flush
the output buffers more often
--help display this help and exit
--version output version information and exit
If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret. All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.
E-mail bug reports to: [EMAIL PROTECTED] .
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
dpkg: error processing cfengine2 (--configure):
subprocess post-installation script returned error exit status 4
Errors were encountered while processing:
cfengine2
--
Florian Lohoff [EMAIL PROTECTED] +49-171-2280134
Those who would give up a little freedom to get a little
security shall soon have neither - Benjamin Franklin
signature.asc
Description: Digital signature

