Your message dated Mon, 10 Mar 2025 12:19:25 +0000
with message-id <[email protected]>
and subject line Bug#1061480: fixed in debconf 1.5.91
has caused the Debian Bug report #1061480,
regarding debconf should automatically be noninteractive if input is /dev/null
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1061480: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061480
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debconf
Version: 1.5.84
Severity: normal
X-Debbugs-Cc: [email protected]

I'm building a system for remotely running noninteractive commands. That
system lets people run commands like `apt-get install xyz` to install
packages, but it by design has no specific knowledge of any software
like apt or dpkg (and thus *cannot* set things like
DEBIAN_FRONTEND=noninteractive for the user).

I run commands with stdout/stderr connected to a socket, and stdin
connected to /dev/null, since all commands are non-interactive and can
receive no input. Generally, this results in software noticing that it
cannot get input, and handling that.

In a recent attempt to install a package, tzdata got pulled in as a
dependency, resulting in this:

```
Setting up tzdata (2021a-1+deb11u11) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
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. Arctic  7. Atlantic  9. Indian    11. US
  2. America  4. Australia   6. Asia    8. Europe    10. Pacific  12. Etc
```

And then the command hung, fruitlessly attempting to wait for input that
will never arrive.

debconf should detect if reading from stdin produces EOF (a zero-byte
read, e.g. because it's /dev/null), and automatically switch to a
noninteractive mode, rather than hanging.

(In an ideal world, I'd also say that debconf should do this anytime its
stdin is not a tty and it doesn't explicitly have a non-tty-requiring
frontend set, rather than falling back to "readline" on a non-terminal,
but I understand if this is historical behavior that'd be difficult to
change for compatibility reasons. Dealing with EOF on stdin better would
be the next best thing.)


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64

Kernel: Linux 6.6.11-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

debconf depends on no packages.

Versions of packages debconf recommends:
ii  apt-utils     2.7.10
pn  debconf-i18n  <none>

Versions of packages debconf suggests:
pn  debconf-doc                <none>
pn  debconf-kde-helper         <none>
pn  debconf-utils              <none>
ii  libgtk3-perl               0.038-3
pn  libnet-ldap-perl           <none>
pn  libterm-readline-gnu-perl  <none>
ii  perl                       5.38.2-3
ii  whiptail                   0.52.24-2

-- debconf information excluded

--- End Message ---
--- Begin Message ---
Source: debconf
Source-Version: 1.5.91
Done: Colin Watson <[email protected]>

We believe that the bug you reported is fixed in the latest version of
debconf, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <[email protected]> (supplier of updated debconf package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 10 Mar 2025 12:07:15 +0000
Source: debconf
Architecture: source
Version: 1.5.91
Distribution: unstable
Urgency: medium
Maintainer: Debconf Developers <[email protected]>
Changed-By: Colin Watson <[email protected]>
Closes: 1061480
Changes:
 debconf (1.5.91) unstable; urgency=medium
 .
   * Teletype: Require stdin to be a tty (closes: #1061480).
Checksums-Sha1:
 258e67779a4053a81b60528b1dd4e25b587d2fcf 2035 debconf_1.5.91.dsc
 0cd43ac0c9b8d69755c00876128ca1c969d35997 609964 debconf_1.5.91.tar.xz
Checksums-Sha256:
 1aa3ceaef24ef533cfffe7f9ca750c6325dbaea86a7abca77cb4439ceae930d8 2035 
debconf_1.5.91.dsc
 18f3f43924ccc870be483d7c5f1a9be59e51ae1da403059d654666b5a175bf15 609964 
debconf_1.5.91.tar.xz
Files:
 eb3bd200620603376cd82815f3bd34ef 2035 admin optional debconf_1.5.91.dsc
 d04a65a3250b0a092c17f6421a57855d 609964 admin optional debconf_1.5.91.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmfO1jYACgkQOTWH2X2G
UAu3qRAAsvQ7wOcLgnkHQFELdiHgGnJ/AhyhDOkWTzmMIgLCF1qwArV7LQJQhiZu
8ierUMYwlIoJylKawLINFNA802kH4pt4gUusMLq8AqFROMjcb957SwQD9dnj6lal
Z/9p+qZnK0Iwo4gvyFi8pO6Z2Zm62bBTgZ8pMyhqlAHdvsGVK4HhHtWg1li0Q5UG
NJAT/9JU0Yti5Ul5bQOwITMz9JS+yldR9gU4e1T4mF55zursf5Xyt00uxP+XOBz3
/WMXqVwTQgwllRDEt3f1MXfS9BqYblrNndRigk1Q8nrT92LDWh1QqavFM28gNbdB
vl73U18BZq0vOcin3ejYJAeJJW+pzZ+0a6qyENx7oVWex1k4AM3HZP96PTC2AfPC
GhlQr8fTVQfqnK+TCqcfTkMzvxYARSBKq9Flp1O/PUu9xkL83DI+P5FuuYTA6KqY
BYeFodG1AglpNKIIS8skA9ShErvpQUnX65oLXZxTlV/JfQ0GGKVRdTDJuxQQM68i
4ClQmIDP/JZnMPVUK+a/NgIM7B/WoBPZ70BvRMO193G8Diz+Dw06m4XnKVe1i7m5
6NSuFmxvKEdM/hqxAy3mJqMI59UxlqPE1K8Yb+/2IqbFr5GQsBb4bohjPARWKE9F
Spw5W633IeGVuwxwflX64M+FiJyCeY7KjbK/uT9rVGVxpgRMhwU=
=4/T0
-----END PGP SIGNATURE-----

Attachment: pgpHKDvNKAq2t.pgp
Description: PGP signature


--- End Message ---

Reply via email to