Christian Grube wrote:
> Hi Michael,
>> Please add the "set -x" to /var/lib/dpkg/info/rsyslog-mysql.postinst as
>> mentioned in my previous email and then run
>> dpkg --configure -a
> dpkg -- configure -a gave me no output.
> A aptitude install rsyslog-mysql  typed again gave me:
> 
> + . /usr/share/debconf/confmodule
> ++ '[' '!' '' ']'
> ++ PERL_DL_NONLAZY=1
> ++ export PERL_DL_NONLAZY
> ++ '[' '' ']'
> ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/rsyslog-mysql.postinst 
> configure ''
> + . /usr/share/debconf/confmodule
> ++ '[' '!' 1 ']'
> ++ '[' -z '' ']'
> ++ exec
> ++ '[' '' ']'
> ++ exec
> ++ DEBCONF_REDIR=1
> ++ export DEBCONF_REDIR
> + . /usr/share/dbconfig-common/dpkg/postinst
> + db_get rsyslog-mysql/db/dbname
> + _db_cmd 'GET rsyslog-mysql/db/dbname'
> + IFS=' '
> + printf '%s\n' 'GET rsyslog-mysql/db/dbname'
> + IFS='
> '
> + read -r _db_internal_line
> + RET='10 rsyslog-mysql/db/dbname doesn'\''t exist'
> + case ${_db_internal_line%%[   ]*} in
> + return 10
> dpkg: Fehler beim Bearbeiten von rsyslog-mysql (--configure):
>  Unterprozess post-installation script gab den Fehlerwert 10 zurück
> Fehler traten auf beim Bearbeiten von:
>  rsyslog-mysql
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> 
>> What exactly did you do before installation, what did you answer during
>> installation etc.
> Before i updated my locatedb with updatedb, and installed a horde-webmail on
> the Server.
> During the Installation I was asked nothing.
> 

I think we are getting closer.
dbconfig-common is used by rsyslog-mysql to setup the db. It will prompt you via
debconf and ask you some basic questions, then setup the db and set some debconf
variables during the config stage.
The postinst stage is run *after* that. In postinst I try to read those debconf
variables, but apparently they are not set, that why postinst is failing.

The real problem now is, why dbconfig-common is not called during the config
stage (i.e. you don't see any debconf prompts)
Do you have some special apt/dpkg/debconf configuration?

I CCed Sean, the maintainer of dbconfig-common. Maybe he has an idea what is
going on there.

Cheers,
Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to