Docker build — “dpkg: error processing package ( — configure):
end of file on stdin at conffile prompt”

Jerry Ho
Jerry Ho
Published in
1 min readAug 25, 2018

The solutions online were a little bit incomplete and sometimes outdated.

It happens whenever there’s an interactive part of your apt-get — whether it’s from apt-get itself or from dpkg.

Solution is simple:

RUN apt-get install -y $PACKAGENAME --option=Dpkg::Options::=--force-confdef

You can check here http://man7.org/linux/man-pages/man1/dpkg.1.html#OPTIONS for more detail about the behavior of dpkg --force.

--

--

Jerry Ho
Jerry Ho

Published in Jerry Ho

A cryptographer, rigorous defender of civil liberties on blockchain. Trilingual in Mandarin, Japanese and English, I embrace the idea of self-sovereign identity.

Jerry Ho
Jerry Ho

Written by Jerry Ho

A cryptographer, rigorous defender of civil liberties on blockchain. Trilingual in Mandarin, Japanese and English, I firmly believe in self-sovereign identity.