回答:
設定するDEBIAN_FRONTENDにnoninteractive:
DEBIAN_FRONTEND=noninteractive apt-get ...
これもに適用可能でありdpkg --reconfigure、dpkg-configureなど
noninteractive
      This  is  the anti-frontend. It never interacts with you at all,
      and makes the default answers be  used  for  all  questions.  It
      might  mail  error messages to root, but that's it; otherwise it
      is completely silent and unobtrusive,  a  perfect  frontend  for
      automatic installs. If you are using this front-end, and require
      non-default answers to questions, you will need to  preseed  the
      debconf  database;  see  the section below on Unattended Package
      Installation for more details.
設定する場合はnoninteractive、をdebconf使用して質問に答えることを検討してくださいdebconf-set-selections。
man 7 debconfubuntu 16.04で使用 するにはdebconf-doc、最初にインストールする必要があります、例えばsudo apt-get install debconf-doc