[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#358543: I suspect some debconf problem



Hello,

I also encounter the 'exit 10' problem on a sid machine. All other
packages are up to date as far as possible (only one TeX related package
also has a problem - should be unrelated). I rm -fr'ed /etc/apache
before starting, then (re-) installed apache-common, then apache.

To debug what goes wrong in postinst, I unpacked it and added  'set -x' to the
top of the file:

# /usr/bin/dpkg --unpack apache_1.3.34-2_i386.deb 
# /usr/bin/vi /var/lib/dpkg/info/apache.postinst # here: adding set -x
# /usr/bin/dpkg --configure apache                   
Setting up apache (1.3.34-2) ...
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/apache.postinst configure ''
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ . /usr/share/apache/postinst.common
+ '[' configure '!=' configure ']'
+ HIDE=
+ '[' '' '!=' '' ']'
+ UPGRADE=false
+ /usr/sbin/apache-modconf apache internal
+ '[' false '!=' true ']'
+ add_webmaster_alias
+ '[' -e /etc/aliases ']'
+ grep -qi '^webmaster:' /etc/aliases
+ do_all apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ '[' '!' -e /etc/apache/modules.conf ']'
++ printf '\x07'
+ export $'IFS=\a'
+ IFS=$'\a'
++ /usr/share/apache/listconffiles /etc/apache/httpd.conf.dpkg-inst.queue
+ CONFS=$'/etc/apache/modules.conf\a'
++ printf '\x07'
+ export $'CONFS=/etc/apache/httpd.conf.dpkg-inst.queue\a/etc/apache/modules.conf\a'
+ CONFS=$'/etc/apache/httpd.conf.dpkg-inst.queue\a/etc/apache/modules.conf\a'
+ prepare_ucf apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ for i in '$CONFS'
+ '[' '!' -e /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue ']'
+ for i in '$CONFS'
+ '[' '!' -e /etc/apache/modules.conf.dpkg-inst.queue ']'
+ do_debconf_configs apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ for i in '$CONFS'
+ i=/etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
+ '[' '!' '' ']'
++ pget /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue servername
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*servername/i}'
++ tail -n 1
++ awk '{print $2}'
+ SERNAME=
+ SERNAMERB=
+ '[' '!' '' ']'
++ pget /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue serveradmin
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*serveradmin/i}'
++ tail -n 1
++ awk '{print $2}'
+ SERADMIN=webmaster@localhost
+ SERADMINRB=webmaster@localhost
+ '[' '!' '' ']'
++ pget /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue documentroot
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*documentroot/i}'
++ tail -n 1
++ awk '{print $2}'
+ DOCROOT=/var/www
+ DOCROOTRB=/var/www
+ '[' apache '!=' apache-ssl ']'
+ '[' '!' '' ']'
++ pget /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue port
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*port/i}'
++ tail -n 1
++ awk '{print $2}'
+ PORT=80
+ PORTRB=80
+ for i in '$CONFS'
+ i=/etc/apache/modules.conf.dpkg-inst.queue
+ '[' '!' '' ']'
++ pget /etc/apache/modules.conf.dpkg-inst.queue servername
++ perl -e ' OUTER: while (<>) {next OUTER if /^\s*#/;next OUTER if /^$/;if ( (/<virtualhost/i &&  ! /#.*<virtualhost/i)
 || /<virtualhost.*#.*<virtualhost/i ){ INNER: while (<>) { next INNER until /<\/virtualhost/i }};print if /^\s*servername/i}'
++ tail -n 1
++ awk '{print $2}'
+ SERNAME=
+ SERNAMERB=
+ '[' '!' webmaster@localhost ']'
+ '[' '!' /var/www ']'
+ '[' apache '!=' apache-ssl ']'
+ '[' '!' 80 ']'
+ '[' '!' '' ']'
+ db_set apache/server-name localhost
+ _db_cmd 'SET apache/server-name' localhost
+ printf '%s\n' 'SET apache/server-namelocalhost'
+ IFS='
'
+ read -r _db_internal_line
+ RET='10 apache/server-namelocalhost doesn'\''t exist'
+ case ${_db_internal_line%%[   ]*} in
+ return 10
dpkg: error processing apache (--configure):
 subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
 apache



I also forcibly purged apache before starting to remove any debconf
cruft form 'status', and I also find the servername key after installing
the package, so I'm very much confused at this point about what the
problem might be. Hopefully, the trace above can help you tracking this
down.




Best,
--Toni++



Reply to: