Exit immediately if any command exist with non-zero
When using apt-get/debconf define the environment upfront

This script will be run headless, so make the frontend non-interactive
and only ask us about critical prompts.