Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error debconf: unable to initialize frontend: Dialog #27988

Closed
gamegee opened this issue Nov 2, 2016 · 4 comments

Comments

@gamegee
Copy link

commented Nov 2, 2016

Error message

When I'm building new image with docker, I get an error message:

Get:1 http://deb.debian.org/debian/ jessie/main ruby all 1:2.1.5+deb8u2 [9688 B]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:

Issue

This error message does not stop the build, but is there a way to remove this?
I used ARG to set DEBIAN_FRONTEND to noninteractive, but it looks like it didn't work.

Here is my Docker file:

FROM debian:jessie

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update \
&& apt-get -y install sudo \
&& apt-get -y install apt-utils  \
&& apt-get -y install curl \
&& curl -sL https://deb.nodesource.com/setup_5.x | bash -

RUN apt-get -y install nodejs \
&& apt-get -y install wget \
&& sudo wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh \
&& apt-get -y install git \
&& mkdir -p /usr/src/app \
&& git config --global user.email "hello@yotako.io" \
&& git config --global user.name "The Yotako team"

WORKDIR /usr/src/app

COPY . /usr/src/app

RUN cat /usr/src/app/.heroku_cred_dev | heroku login

RUN npm install --production

ENV NODE_ENV=development

CMD [ "nodejs", "/usr/src/app/bin/www" ]
@cpuguy83

This comment has been minimized.

Copy link
Contributor

commented Nov 2, 2016

Not sure if there is a way to suppress these.
Closing since this is not a Docker issue but rather apt/readline and may be more suitable for something like StackOverflow.

Thanks!

@cpuguy83 cpuguy83 closed this Nov 2, 2016

@ma3310

This comment has been minimized.

Copy link

commented Mar 21, 2017

apt-get install dialog apt-utils

@tomachinz

This comment has been minimized.

Copy link

commented Jan 12, 2018

run headless with -y:

RUN apt-get install dialog apt-utils -y

@dineshrathee12

This comment has been minimized.

Copy link

commented Feb 12, 2019

EXAMPLE With Success:

echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
sudo apt-get install -y -q

It works fine for me.

nturaga added a commit to Bioconductor/bioconductor_full that referenced this issue Feb 27, 2019

This avoids this issue moby/moby#27988
Because it's going to be run on a "dumb" terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.