Solved

How to get rid of the debconf errors?

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
tallylog file 2 2,600
Optimize bash script 20 449
automating commands in linux on start up 2 44
„dd“ vs „ddrescue“ 28 199
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

747 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

11 Experts available now in Live!

Get 1:1 Help Now