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

Bug#421280: tzdata: post-installation script returned error exit status 10



Package: tzdata
Version: 2007e-6
Severity: important

I'm running a couple autobuilders, and since the latest upgrade of
tzdata, none of them will work properly because of the following:

Fetched 797kB in 3s (252kB/s)
Setting up tzdata (2007e-6) ...
dpkg: error processing tzdata (--configure):
 subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
 tzdata
E: Sub-process /usr/bin/dpkg returned an error code (1)
 apt-get failed.
Package installation failed

I logged into the build chroots trying to figure out what was going on:

debconf: delaying package configuration, since apt-utils is not
installed
Setting up tzdata (2007e-6) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog
based frontend cannot be used. at
/usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 75.)
debconf: falling back to frontend: Readline
dpkg: error processing tzdata (--configure):
 subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
 tzdata
E: Sub-process /usr/bin/dpkg returned an error code (1)
sh-3.1# apt-get install --reinstall tzdata
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not
upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up tzdata (2007e-6) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog
based frontend cannot be used. at
/usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 75.)
debconf: falling back to frontend: Readline
dpkg: error processing tzdata (--configure):
 subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
 tzdata
E: Sub-process /usr/bin/dpkg returned an error code (1)
sh-3.1# apt-get remove tzdata
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  tzdata util-linux
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  util-linux tzdata (due to util-linux)
0 upgraded, 0 newly installed, 2 to remove and 8 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 7533kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
dpkg - warning, overriding problem because --force enabled:
 This is an essential package - it should not be removed.
(Reading database ... 9749 files and directories currently installed.)
Removing util-linux ...
Removing tzdata ...
sh-3.1# apt-get install util-linux
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  tzdata
Suggested packages:
  util-linux-locales kbd console-tools dosfstools
The following NEW packages will be installed:
  tzdata util-linux
0 upgraded, 2 newly installed, 0 to remove and 8 not upgraded.
Need to get 0B/841kB of archives.
After unpacking 7533kB of additional disk space will be used.
Do you want to continue [Y/n]?
WARNING: The following packages cannot be authenticated!
  tzdata util-linux
Authentication warning overridden.
debconf: delaying package configuration, since apt-utils is not
installed
Selecting previously deselected package tzdata.
(Reading database ... 7874 files and directories currently installed.)
Unpacking tzdata (from .../tzdata_2007e-6_all.deb) ...
Setting up tzdata (2007e-6) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog
based frontend cannot be used. at
/usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 75.)
debconf: falling back to frontend: Readline
dpkg: error processing tzdata (--configure):
 subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
 tzdata
E: Sub-process /usr/bin/dpkg returned an error code (1)

I eventually tried to install 'dialog' just in case but it didn't help.

Then I edited /var/lib/dpkg/info/tzdata.postinst to add a '-x':

buildd@envy:~$ sudo vi
chroots/chroot-sid/var/lib/dpkg/info/tzdata.postinst
buildd@envy:~$ sudo chroot chroots/chroot-sid/
sh-3.1# dpkg --configure -a
Setting up tzdata (2007e-6) ...
+ set -e
+ LC_ALL=C
+ LANG=C
+ umask 022
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/tzdata.postinst
configure 2007e-3
dpkg: error processing tzdata (--configure):
 subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
 tzdata
sh-3.1# /usr/share/debconf/frontend /var/lib/dpkg/info/tzdata.postinst
configure 2007e-3
sh-3.1# echo $?
10

This bug happens on all my autobuilders, rendering them completely
unusable (alpha, hppa, ia64, ppc).

HTH

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (700, 'testing'), (90, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.20.7-ck1 (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages tzdata depends on:
ii  debconf [debconf-2.0]         1.5.13     Debian configuration management sy

tzdata recommends no packages.

-- debconf information excluded



Reply to: