Report forwarded
to debian-bugs-dist@lists.debian.org, satwell@disjoint.net, GNU Libc Maintainers <debian-glibc@lists.debian.org>: Bug#1078604; Package tzdata.
(Tue, 13 Aug 2024 13:51:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Steve Atwell <satwell@disjoint.net>:
New Bug report received and forwarded. Copy sent to satwell@disjoint.net, GNU Libc Maintainers <debian-glibc@lists.debian.org>.
(Tue, 13 Aug 2024 13:51:03 GMT) (full text, mbox, link).
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: tzdata: Interactive tzdata debconf failure produces bad /etc/timezone
Date: Tue, 13 Aug 2024 06:49:56 -0700
Package: tzdata
Version: 2024a-0+deb12u1
Severity: minor
X-Debbugs-Cc: satwell@disjoint.net
Dear Maintainer,
When installing the tzdata and debconf tries to ask questions and fails
because stdin is not available, the package writes "/UTC" to
/etc/timezone, which doesn't seem to be valid (note the leading slash).
I would expect it to write either "Etc/UTC" or "UTC".
This can happen, for example, during docker builds. (Example:
https://github.com/docker-library/buildpack-deps/issues/161) It's easy
to fix by setting DEBIAN_FRONTEND=noninteractive during install, but it
seems like tzdata should still be able to write the correct default
value to /etc/timezone in this situation.
Example:
root@76562861bcf7:/# apt-get install tzdata < /dev/null
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
tzdata
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 255 kB of archives.
After this operation, 1410 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian sid/main amd64 tzdata all 2024a-4 [255 kB]
Fetched 255 kB in 0s (1803 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package tzdata.
(Reading database ... 6627 files and directories currently installed.)
Preparing to unpack .../tzdata_2024a-4_all.deb ...
Unpacking tzdata (2024a-4) ...
Setting up tzdata (2024a-4) ...
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 79.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Configuring tzdata
------------------
Please select the geographic area in which you live. Subsequent configuration
questions will narrow this down by presenting a list of cities, representing
the time zones in which they are located.
1. Africa 3. Antarctica 5. Asia 7. Australia 9. Indian 11. Etc
2. America 4. Arctic 6. Atlantic 8. Europe 10. Pacific
Geographic area:
Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 112.
Current default time zone: '/UTC'
Local time is now: Tue Aug 13 13:29:39 UTC 2024.
Universal Time is now: Tue Aug 13 13:29:39 UTC 2024.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
Use of uninitialized value $val in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 84, <GEN6> line 4.
Use of uninitialized value $val in concatenation (.) or string at /usr/share/perl5/Debconf/Format/822.pm line 85, <GEN6> line 4.
root@76562861bcf7:/# cat /etc/timezone
/UTC
-- System Information:
Debian Release: 12.6
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-23-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages tzdata depends on:
ii debconf [debconf-2.0] 1.5.82
tzdata recommends no packages.
tzdata suggests no packages.
-- debconf information excluded
Information forwarded
to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>: Bug#1078604; Package tzdata.
(Sat, 31 Aug 2024 17:54:24 GMT) (full text, mbox, link).
Acknowledgement sent
to Benjamin Drung <bdrung@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>.
(Sat, 31 Aug 2024 17:54:24 GMT) (full text, mbox, link).
On Tue, 2024-08-13 at 06:49 -0700, Steve Atwell wrote:
> Package: tzdata
> Version: 2024a-0+deb12u1
> Severity: minor
> X-Debbugs-Cc: satwell@disjoint.net
>
> Dear Maintainer,
>
> When installing the tzdata and debconf tries to ask questions and fails
> because stdin is not available, the package writes "/UTC" to
> /etc/timezone, which doesn't seem to be valid (note the leading slash).
> I would expect it to write either "Etc/UTC" or "UTC".
>
> This can happen, for example, during docker builds. (Example:
> https://github.com/docker-library/buildpack-deps/issues/161) It's easy
> to fix by setting DEBIAN_FRONTEND=noninteractive during install, but it
> seems like tzdata should still be able to write the correct default
> value to /etc/timezone in this situation.
This is a bug in debconf and already reported as Debian bug #723843 and
https://bugs.launchpad.net/ubuntu/+source/debconf/+bug/1899343
A workaround would be to pre-configure the debconf answers.
--
Benjamin Drung
Debian & Ubuntu Developer
Reply sent
to Aurelien Jarno <aurel32@debian.org>:
You have taken responsibility.
(Sun, 27 Jul 2025 11:59:02 GMT) (full text, mbox, link).
Notification sent
to Steve Atwell <satwell@disjoint.net>:
Bug acknowledged by developer.
(Sun, 27 Jul 2025 11:59:02 GMT) (full text, mbox, link).
Hi,
On 2024-08-31 19:53, Benjamin Drung wrote:
> On Tue, 2024-08-13 at 06:49 -0700, Steve Atwell wrote:
> > Package: tzdata
> > Version: 2024a-0+deb12u1
> > Severity: minor
> > X-Debbugs-Cc: satwell@disjoint.net
> >
> > Dear Maintainer,
> >
> > When installing the tzdata and debconf tries to ask questions and fails
> > because stdin is not available, the package writes "/UTC" to
> > /etc/timezone, which doesn't seem to be valid (note the leading slash).
> > I would expect it to write either "Etc/UTC" or "UTC".
> >
> > This can happen, for example, during docker builds. (Example:
> > https://github.com/docker-library/buildpack-deps/issues/161) It's easy
> > to fix by setting DEBIAN_FRONTEND=noninteractive during install, but it
> > seems like tzdata should still be able to write the correct default
> > value to /etc/timezone in this situation.
>
> This is a bug in debconf and already reported as Debian bug #723843 and
> https://bugs.launchpad.net/ubuntu/+source/debconf/+bug/1899343
This got fixed in debconf 1.5.90. Closing the bug.
Regards
Aurelien
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://aurel32.net
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Mon, 25 Aug 2025 07:24:36 GMT) (full text, mbox, link).
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.