Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macagua/ee13dd36d87ee00c22e30d5d7ae1ae1a to your computer and use it in GitHub Desktop.
Save macagua/ee13dd36d87ee00c22e30d5d7ae1ae1a to your computer and use it in GitHub Desktop.
debconf: unable to initialize frontend: Dialog

For remove this message

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: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 

Change the following:

RUN apt-get update -qq && \
    apt-get upgrade -qq -y && \
    DEBIAN_FRONTEND=noninteractive apt-get -qq install {YOUR_PACKAGES}

For this:

# Set debconf to run non-interactively
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
    && apt-get -qq install {YOUR_PACKAGES}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment