ubuntudebianaptdebnon-interactive

Disable prompts while installing a Debian package


How can I totally disable 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 is the x11-common package still prompting? How can I get rid of these prompts?


Solution

  • You don't provide any details about what prompt this is, but I am guessing it is debconf prompting for configuration questions.

    If so, you can set debconf to noninteractive mode. For example, by doing dpkg-reconfigure debconf and then it will use the defaults for everything.