LMSouq
server-admin Open

Is it possible to answer dialog questions when installing under docker?

AZ
azdle
1 month ago
3 views
Problem Description
Is it possible to somehow answer the questions that are presented as dialogs when installing some packages using apt-get? For instance I'm trying to setup a container containing the `mail-stack-delivery` package with: FROM ubuntu RUN apt-get install -y mail-stack-delivery However that dockerfile generates dozens of errors when built that are along the lines of: debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7, <> line 11.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: From what I understand I just simply can't respond to the dialogs, but is there some way that I can pass a parameter to answer each question in advance? I know that it's just changing some configurations, so I could do it after the fact, but presumably it's better to let the install scripts do it so everything gets set properly.

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base