How can i disable totally the prompts that appear while installing a Debian package, i've used all the options that i've found but there are some packages that are still prompting.

I'm using this command:

apt-get -y --allow-unauthenticated --force-yes -o DPkg::Options::="--force-overwrite" -o DPkg::Options::="--force-confdef" install x11-common

Why the x11-common package is still prompting? how can i get rid of these prompts?

Thanks in advance

--Victor

Edit: just to clarify, the prompts are not "yes/no" prompts, are open questions in a coloured screen (typical two color screen) but i want to set the default option of these questions

link|improve this question
feedback

7 Answers

Select a new front end by setting your env.

DEBIAN_FRONTEND=noninteractive apt-get -y install x11-common

I use this all the time in automating package installation with cfengine.

link|improve this answer
+1 This is the right answer – lynxman Aug 17 '11 at 9:47
feedback

Not having manually install x11-common, I am not sure what questions you are being asked. But if they are coming from debconf, then you should be able to pre-answer the questions with debconf-set-selections.

link|improve this answer
This is the solution, thanks. I've get the properties with debconf-get-selections and set them previously with the debconf-set-selections and no more prompts appeared – VictorTuenti Dec 9 '10 at 18:33
feedback

You need to dpkg-reconfigure debconf and tell it to "Ignore questions with a priority less than: Critical".

This doesn't get you out of answering critical questions.

link|improve this answer
feedback

Not very elegant but you could try using the builtin yes command. yes | apt-get install [package]

http://linux.about.com/library/cmd/blcmdl1_yes.htm.

link|improve this answer
Well, actually are not like "yes/no" prompts, are the typical two color screen (i don't know how to describe it, BIOS interface looks like ;) ). Therefore the yes command is not useful to me – VictorTuenti Dec 9 '10 at 17:58
feedback

Take a look at gnu expect: http://directory.fsf.org/project/expect/

link|improve this answer
feedback

In Debian, what you are looking for is called preseeding. Here is a link to the wiki page http://wiki.debian.org/DebianInstaller/Preseed

link|improve this answer
feedback

This is for Ubuntu, but will work perfectly on a debian system: https://help.ubuntu.com/8.04/installation-guide/i386/preseed-creating.html

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.