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

Bug#233864: man-db error on debian-installer beta3



On April 14, cjwatson@debian.org said:

 > Any chance you can get to this point again, then, from the console on
 > Alt-F2, run 'nano /target/var/lib/dpkg/info/man-db.postinst', put the
 > command 'set -x' on the second line, run 'chroot /target dpkg
 > --configure man-db', and send the output to this bug report?

sure.  There was a ton of spew, though.

this is from a different machine of the same vintage ("mau"),
which also seems to have a defunct motherboard battery.

since the hwclock epoch date on these systems seems to be 1904-01-01,
the logs are also reporting "implausibly old timestamp" all over the
place.

i've tried to capture the output of the requested command to a file,
which i've attached below.  i grabbed that output with the command:

chroot /target dpkg --configure man-db 2> /save/man-db.err

(/save was a separate partition which i mounted to be able to grab
output without having it be rewritten when i reinstalled later)

there was also a debconf step where it asked me if i wanted man-db to
run setuid, which i answered no.

Then i used date and hwclock to reset the system clock time, restarted
the installation process, and everything proceeded as normal (despite
the autopartitioner's problem setting up yaboot's 800K Apple_Bootstrap
partition, but that's another bug)

+ '[' configure = configure ']'
+ oldcatdir=/var/catman
+ catdir=/var/cache/man
+ maybesetuid=man mandb
+ conffile=/etc/manpath.config
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/man-db.postinst configure ''
+ '[' configure = configure ']'
+ oldcatdir=/var/catman
+ catdir=/var/cache/man
+ maybesetuid=man mandb
+ conffile=/etc/manpath.config
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
++ _old_opts=configure 
++ set -- capb CAPB
++ eval 'db_capb () {
		echo "CAPB $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- set SET
++ eval 'db_set () {
		echo "SET $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- reset RESET
++ eval 'db_reset () {
		echo "RESET $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- title TITLE
++ eval 'db_title () {
		echo "TITLE $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- input INPUT
++ eval 'db_input () {
		echo "INPUT $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- beginblock BEGINBLOCK
++ eval 'db_beginblock () {
		echo "BEGINBLOCK $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- endblock ENDBLOCK
++ eval 'db_endblock () {
		echo "ENDBLOCK $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- go GO
++ eval 'db_go () {
		echo "GO $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- get GET
++ eval 'db_get () {
		echo "GET $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- register REGISTER
++ eval 'db_register () {
		echo "REGISTER $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- unregister UNREGISTER
++ eval 'db_unregister () {
		echo "UNREGISTER $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- subst SUBST
++ eval 'db_subst () {
		echo "SUBST $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- previous_module PREVIOUS_MODULE
++ eval 'db_previous_module () {
		echo "PREVIOUS_MODULE $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- fset FSET
++ eval 'db_fset () {
		echo "FSET $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- fget FGET
++ eval 'db_fget () {
		echo "FGET $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- purge PURGE
++ eval 'db_purge () {
		echo "PURGE $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- metaget METAGET
++ eval 'db_metaget () {
		echo "METAGET $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- version VERSION
++ eval 'db_version () {
		echo "VERSION $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- clear CLEAR
++ eval 'db_clear () {
		echo "CLEAR $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- settitle SETTITLE
++ eval 'db_settitle () {
		echo "SETTITLE $@" >&3
		# Set to newline to get whole line.
		local IFS='\''
'\''
		local _LINE
		read -r _LINE
		# Disgusting, but it'\''s the only good way to split the line,
		# preserving all other whitespace.
		RET="${_LINE#[! 	][ 	]}"
		return ${_LINE%%[ 	]*}
	      }'
++ set -- configure
++ unset _old_opts
+ db_version 2.0
+ echo 'VERSION 2.0'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=2.0
+ return 0
+ db_get man-db/install-setuid
+ echo 'GET man-db/install-setuid'
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=false
+ return 0
+ dpkg --compare-versions '' eq 2.3.18-4
+ dpkg --compare-versions '' eq 2.3.18-4
+ '[' false = true ']'
+ owner=root:root
+ mode=0755
+ '[' '!' -x /usr/sbin/dpkg-statoverride ']'
+ dpkg-statoverride --list /usr/lib/man-db/man
+ chown root:root /usr/lib/man-db/man
+ chmod 0755 /usr/lib/man-db/man
+ ln -sf ../lib/man-db/man /usr/bin/man
+ '[' '!' -x /usr/sbin/dpkg-statoverride ']'
+ dpkg-statoverride --list /usr/lib/man-db/mandb
+ chown root:root /usr/lib/man-db/mandb
+ chmod 0755 /usr/lib/man-db/mandb
+ ln -sf ../lib/man-db/mandb /usr/bin/mandb
+ '[' -e /etc/cron.daily/man.moved-by-preinst ']'
+ '[' -e /etc/cron.weekly/catman.moved-by-preinst ']'
+ dpkg --compare-versions '' lt 2.3.18
+ '[' -d /var/cache/man/local -a '!' -d /var/cache/man/oldlocal ']'
+ '[' -d /var/cache/man ']'
+ dpkg --compare-versions '' lt 2.3.20-4
+ chown -R man /var/cache/man
+ build_db=0
+ '[' '!' -f /var/cache/man/index.db ']'
+ '[' '!' -f /var/cache/man/index.bt ']'
+ db_fget man-db/build-database seen
+ echo 'FGET man-db/build-database' seen
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=false
+ return 0
+ '[' false = false ']'
+ build_db=1
+ '[' 1 -eq 1 ']'
++ echo ''
++ tr '[:upper:]' '[:lower:]'
+ frontend=
+ '[' '' = noninteractive ']'
+ echo 'Building database of manual pages in the background.'
Building database of manual pages in the background.
+ start-stop-daemon --start --pidfile /dev/null --background --startas /usr/bin/mandb --oknodo --chuid man -- --create --quiet

Warning: Fake start-stop-daemon called, doing nothing
+ '[' configure = configure ']'
+ which install-docs
+ db_fset man-db/rebuild-database seen_in_2.4.2-1_upgrade false
+ echo 'FSET man-db/rebuild-database' seen_in_2.4.2-1_upgrade false
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=false
+ return 0
+ db_stop
+ echo STOP
+ exit 0

Reply to: