debconf: unable to initialize frontend: Dialog问题解决
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:
法一:
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
sudo apt-get install -y -q
由于用的cicd,选择在sh文件中加上述内容解决问题
法二:
修改Dockerfile,添加DEBIAN_FRONTEND=noninteractive
参考
https://github.com/moby/moby/issues/27988