Solved

How to get rid of the debconf errors?

Posted on 2010-08-15
2
591 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

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Trying to use two loops in a perl script but not getting results need. 10 93
Problem to command 8 98
how to run a command as a nologin user 7 382
linux 13 75
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…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

828 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