How to get rid of the debconf errors?
Posted on 2010-08-15
If I execute apt-get command without login to the console server (for example: ssh xxx.xxx.xxx.xxx "apt-get install-yq some-package") then messages are written to the stderr:
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:
How to get rid of them? Not just filter them with grep or redirect to /dev/null. It is necessary to remove the cause.