Solved

How to get rid of the debconf errors?

Posted on 2010-08-15
2
587 Views
Last Modified: 2012-05-10
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.
0
Comment
Question by:vizh
2 Comments
 
LVL 11

Expert Comment

by:Pieter Jordaan
ID: 33441660

You can try nohup (nohup - run a command immune to hangups, with output to a non-tty)

nohup apt-get install-yq some-package

the output will go to the currentfolder/nohup.out
0
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 33444291
Typically. /etc/profile et al will skip all TTY stuff when there is no $PS1 (prompt string) as is the case with a command executed by ssh. You could try:

ssh xxx.xxx.xxx.xxx "TERM=vt100 apt-get install-yq some-package"

which should work acceptably under most terminal emulations.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question