diff --git a/tljh/apt.py b/tljh/apt.py index d2c5fec..85d3f3a 100644 --- a/tljh/apt.py +++ b/tljh/apt.py @@ -43,8 +43,11 @@ def install_packages(packages): # Check if an apt-get update is required if len(os.listdir('/var/lib/apt/lists')) == 0: utils.run_subprocess(['apt-get', 'update', '--yes']) + env = os.environ.copy() + # Stop apt from asking questions! + env['DEBIAN_FRONTEND'] = 'noninteractive' utils.run_subprocess([ 'apt-get', 'install', '--yes' - ] + packages) + ] + packages, env=env)