on upgrade from eoan to focal, update-manager puts debconf prompts to the terminal instead of using the gnome frontend

Bug #1871530 reported by Steve Langasek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
Medium
Unassigned
Focal
Fix Released
Medium
Unassigned

Bug Description

When upgrading a system from eoan to focal, I opened the terminal within the release upgrader because I like to watch the progress of the package installations. To my surprise, a debconf prompt popped up in the terminal.

update-manager should always be running in a configuration that uses the gnome frontend, and the release upgrader should be inheriting this setting.

The libgtk3-perl package is installed. However, the environment passed to dpkg shows DEBIAN_FRONTEND=dialog is set instead.

19319 pts/7 Ds+ 0:01 /usr/bin/dpkg --force-overwrite --status-fd 58 --no-triggers --unpack --auto-deconfigure --recursive /tmp/apt-dpkg-install-MhF2Le SHELL=/bin/bash LANG=en_US.UTF-8 LANGUAGE=en LC_MONETARY=en_US.UTF-8 LC_NUMERIC=en_US.UTF-8 LC_TIME=C.UTF-8 TERM=xterm-256color COLORTERM=truecolor DISPLAY=:1 XAUTHORITY=/run/user/1000/gdm/Xauthority PATH=/usr/sbin:/usr/bin:/sbin:/bin LOGNAME=root USER=root HOME=/root PKEXEC_UID=1000 LC_PAPER=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 LC_NAME=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 LC_MEASUREMENT=en_US.UTF-8 RELEASE_UPGRADE_IN_PROGRESS=1 PYCENTRAL_FORCE_OVERWRITE=1 RELEASE_UPGRADE_MODE=desktop VTE_PTY_KEEP_FD=11 APT_LISTCHANGES_FRONTEND=none DEBIAN_FRONTEND=dialog VTE_VERSION=5802 DPKG_UNTRANSLATED_MESSAGES=1 DPKG_COLORS=never DPKG_FRONTEND_LOCKED=true

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: ubuntu-release-upgrader-core 1:19.10.15.4
ProcVersionSignature: Ubuntu 5.3.0-46.38-generic 5.3.18
Uname: Linux 5.3.0-46-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu8.8
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Tue Apr 7 20:53:19 2020
InstallationDate: Installed on 2019-12-23 (106 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: ubuntu-release-upgrader
UpgradeStatus: Upgraded to eoan on 2020-04-08 (0 days ago)
VarLogDistupgradeTermlog:

Related branches

Revision history for this message
Steve Langasek (vorlon) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

Found in ./DistUpgradeViewGtk3.py:

        # if no libgtk2-perl is installed show the terminal
        frontend= os.environ.get("DEBIAN_FRONTEND") or "gnome"
        if frontend == "gnome" and self._cache:
            if (not "libgtk2-perl" in self._cache or
                not self._cache["libgtk2-perl"].is_installed):
                frontend = "dialog"
                self.expander.set_expanded(True)
        self.env = ["VTE_PTY_KEEP_FD=%s"% self.writefd,
                    "APT_LISTCHANGES_FRONTEND=none"]
        if "DEBIAN_FRONTEND" not in os.environ:
            self.env.append("DEBIAN_FRONTEND=%s" % frontend)

libgtk2-perl is obsolete and no longer installed by default on the desktop. This needs updated for libgtk3-perl.

Changed in ubuntu-release-upgrader (Ubuntu Focal):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-release-upgrader - 1:20.04.18

---------------
ubuntu-release-upgrader (1:20.04.18) focal; urgency=medium

  [ Steve Langasek ]
  * Use libgtk3-perl, not libgtk2-perl, to decide whether to use the gnome
    debconf frontend; debconf migrated to GTK+3 in version 1.5.66, before
    bionic was released. LP: #1871530.

  [ Brian Murray ]
  * data/mirrors.cfg, utils/update_mirrors.py: Add in ddebs.ubuntu.com as an
    official package source.

 -- Brian Murray <email address hidden> Wed, 08 Apr 2020 08:59:23 -0700

Changed in ubuntu-release-upgrader (Ubuntu Focal):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.