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
Select a new front end by setting your env.
I use this all the time in automating package installation with
cfengine
.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
.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.
To disable the prompts globally for reconfiguring all packages with
debconf
, just comment out the second line from/etc/apt/apt.conf.d/70debconf
file.Or if you're provisioning VM, add these commands to your provision script:
You may also try the same way how Travis CI does it:
For some other packages, like
ttf-mscorefonts-installer
(which is dependent onlanguage-pack-en
), the above seems to not work, so try: