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

Bug#1030232: apt-get install -y should use noninteractive debconf frontend



Package: apt
Version: 2.4.8
Severity: minor
X-Debbugs-Cc: debbugs@kalvdans.no-ip.org

Dear Maintainer,

When I install a package with the -y flag, according to the man page should give me a noninteractive mode. However, it still uses the Dialog frontend. See the following output:

root@8a97f9bba510:/# apt-get install -y exim4
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  exim4
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 7582 B of archives.
After this operation, 27.6 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 exim4 all 4.95-4ubuntu2.2 [7582 B]
Fetched 7582 B in 0s (45.4 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package exim4.
(Reading database ... 100691 files and directories currently installed.)
Preparing to unpack .../exim4_4.95-4ubuntu2.2_all.deb ...
Unpacking exim4 (4.95-4ubuntu2.2) ...
Setting up exim4 (4.95-4ubuntu2.2) ...
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 78.)
debconf: falling back to frontend: Readline
root@8a97f9bba510:/# 

A workaround is to run "DEBIAN_FRONTEND=noninteractive apt-get install exim4" instead.

Reported from Ubuntu 22.04 but the Debian package is affected as well.

-- System Information:
Debian Release: bookworm/sid
  APT prefers jammy-updates
  APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy'), (100, 'jammy-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-53-generic (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
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 apt depends on:
ii  adduser         3.118ubuntu5
ii  gpgv            2.2.27-3ubuntu2.1
ii  libapt-pkg6.0   2.4.8
ii  libc6           2.35-0ubuntu3.1
ii  libgcc-s1       12.1.0-2ubuntu1~22.04
ii  libgnutls30     3.7.3-4ubuntu1.1
ii  libseccomp2     2.5.3-2ubuntu2
ii  libstdc++6      12.1.0-2ubuntu1~22.04
ii  libsystemd0     249.11-0ubuntu3.6
ii  ubuntu-keyring  2021.03.26

Versions of packages apt recommends:
ii  ca-certificates  20211016ubuntu0.22.04.1

Versions of packages apt suggests:
pn  apt-doc         <none>
ii  aptitude        0.8.13-3ubuntu1
ii  dpkg-dev        1.21.1ubuntu2.1
ii  gnupg           2.2.27-3ubuntu2.1
ii  powermgmt-base  1.36

-- no debconf information


Reply to: