On Tue, 2024-08-13 at 06:49 -0700, Steve Atwell wrote:
> Package: tzdata
> Version: 2024a-0+deb12u1
> Severity: minor
> X-Debbugs-Cc: satw...@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 via email to