Skip to content

Instantly share code, notes, and snippets.

@markuszeller
Created September 24, 2019 08:17
Show Gist options
  • Save markuszeller/b947746c7dd22a9fda9fa6bebd13e6dd to your computer and use it in GitHub Desktop.
Save markuszeller/b947746c7dd22a9fda9fa6bebd13e6dd to your computer and use it in GitHub Desktop.
Avoid debian prompts

Avoiding prompts

To avoid any prompts from Debian packages like Grub or mySQL, you can temporarily set an environment variable. This ideal for provisioning scripts in Containers like Vagrant/Docker.

export DEBIAN_FRONTEND="noninteractive"

Also make sure to auto confirm apt with the -y parameter

apt -y upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment