Solved

How to get rid of the debconf errors?

Posted on 2010-08-15
2
595 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 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