Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Suppress the warning: “unable to initialize frontend: Dialog” on Debian based images. #102

Merged
merged 2 commits into from
Jul 29, 2019
Merged

Suppress the warning: “unable to initialize frontend: Dialog” on Debian based images. #102

merged 2 commits into from
Jul 29, 2019

Conversation

mazgi
Copy link
Member

@mazgi mazgi commented Jul 18, 2019

My checklist

  • I read CONTRIBUTING.md
  • Search the issue repository to ensure your report is a new issue
  • Recreate the issue after disabling all extensions
  • Simplify your code around the issue to better isolate the problem

My environments

$ docker --version
Docker version 18.09.2, build 6247962
$ docker images debian:9
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
debian              9                   5a6d49d5e833        9 days ago          101MB
$ docker run -it debian:9 /bin/bash
root@3ef01a935271:/# env | grep -c DEBIAN_FRONTEND 
0
root@3ef01a935271:/# type dialog
bash: type: dialog: not found

The problem

We occurred the following warnings: debconf: unable to initialize frontend: Dialog.

root@e51d8207768e:/# apt-get update -qq
root@e51d8207768e:/# apt-get install --assume-yes --no-install-recommends apt-utils > /dev/null 
debconf: delaying package configuration, since apt-utils is not installed
root@e51d8207768e:/# apt-get install --assume-yes --no-install-recommends locales > /dev/null 
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 76, <> line 2.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7, <> line 2.)
debconf: falling back to frontend: Teletype

Solution

  • Install the dialog package each Debian based image.

And I think we should only unset the DEBIAN_FRONTEND environment variable, that sufficient to switch back to default frontend.

@msftclas
Copy link

msftclas commented Jul 18, 2019

CLA assistant check
All CLA requirements met.

@mazgi
Copy link
Member Author

mazgi commented Jul 18, 2019

Oops... I cannot sign the CLA.
I'll try again after a few minutes.
Screen Shot 2019-07-19 at 8 22 25

@Chuxel Chuxel self-requested a review July 29, 2019 21:56
Copy link
Member

@Chuxel Chuxel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are great suggestions - thanks for the PR. Apologies for the delayed response, I wanted to fire off a full regression and take a look at the results before approving. All passed and LGTM!

@Chuxel Chuxel merged commit 3d4a73e into microsoft:master Jul 29, 2019
@mazgi mazgi deleted the suppress-warn-unable-to-initialize-frontend-dialog branch July 29, 2019 22:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants