From: Dan Nicholson Date: Thu, 8 Apr 2021 16:22:21 +0000 (-0600) Subject: travis: Don't ask any debconf questions when installing packages X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~4^2~6^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=764116ef56e12f167bc5a2613d3835173e5301fc;p=ostree.git travis: Don't ask any debconf questions when installing packages Currently the Ubuntu builds are stuck waiting for an answer on what timezone to use. That could be fixed, but generally the way to do these types of installs is to set the DEBIAN_FRONTEND environment variable to `noninteractive` so that debconf just chooses a default. This is what debootstrap does, for instance. I tested installing tzdata on a local focal container this way and it just chooses `Etc/UTC` as the timezone. --- diff --git a/ci/travis-install.sh b/ci/travis-install.sh index 64801741..b40f4c55 100755 --- a/ci/travis-install.sh +++ b/ci/travis-install.sh @@ -82,6 +82,10 @@ esac case "$ci_distro" in (debian|ubuntu) + # Make debconf run non-interactively since its questions can't + # be answered. + export DEBIAN_FRONTEND=noninteractive + # TODO: fetch this list from the Debian packaging git repository? $sudo apt-get -y update $sudo apt-get -y install \