Solved

How to get rid of the debconf errors?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
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 …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

867 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now