Bug#427226: tzdata: fails to install if /etc/timezone is configured to "right/*" timezones
Package: tzdata
Version: 2007f-6
Severity: important
This bug has affected tzdata for some time now... It actually fails to install and needs manual intervention in the
"/var/lib/dpkg/info/tzdata.postinst" file to finish the configuration.
The usual output is this:
======================
Unpacking replacement tzdata ...
Setting up tzdata (2007f-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)
A package failed to install. Trying to recover:
Setting up tzdata (2007f-6) ...
dpkg: error processing tzdata (--configure):
subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
tzdata
======================
I've tracked the problem to this:
======================
root@Nomad:~# DEBCONF_DEBUG=developer dpkg --configure -a
Setting up tzdata (2007f-6) ...
debconf (developer): frontend started
debconf (developer): frontend running, package name is tzdata
debconf (developer): starting /var/lib/dpkg/info/tzdata.config configure 2007f-6
debconf (developer): <-- VERSION 2.0
debconf (developer): --> 0 2.0
debconf (developer): <-- CAPB backup
debconf (developer): --> 0 multiselect escape backup
debconf (developer): <-- FSET tzdata/Areas seen true
debconf (developer): --> 0 true
debconf (developer): <-- FSET tzdata/Zones/right/Europe seen true
debconf (developer): --> 10 tzdata/Zones/right/Europe doesn't exist
dpkg: error processing tzdata (--configure):
subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
tzdata
=======================
Apparently it hangs on the fact that "/etc/timezone" contains "right/Europe/Bucharest" instead of
the default version. Is there another "debian-approved" way of setting a "right" timezone besides editing that file and manually
copying "/usr/share/zoneinfo/right/X" ? The debconf for tzdata obviously does not support this...
At the least, the postinst script should not hang and block all package installs when it sees this, printing a warning to the user
and leaving the settings as they are would be a lot better.
Thanks and best regards,
Mihnea
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.20
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.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: