Skip to content

Commit

Permalink
ci,build: export DEBIAN_FRONTEND=noninteractive when installing apt p…
Browse files Browse the repository at this point in the history
…ackages

On Ubuntu 20.04 it seems that we're getting this during run-time:
```
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
Configuring tzdata
------------------

Please select the geographic area in which you live. Subsequent configuration
questions will narrow this down by presenting a list of cities, representing
the time zones in which they are located.

  1. Africa      4. Australia  7. Atlantic  10. Pacific  13. Etc
  2. America     5. Arctic     8. Europe    11. SystemV
  3. Antarctica  6. Asia       9. Indian    12. US

Geographic area:
```

It may be that Ubuntu upstream may fix this, but it may be an idea to have
DEBIAN_FRONTEND=noninteractive present in the future as well, to prevent
other packages from popping interactive shells.
Hopefully nothing in the interactive shell is important, but configuring
stuff in docker-builds is tricky anyway, since it requires per-package
knowledge [which is bit of work].

Signed-off-by: Alexandru Ardelean <[email protected]>
  • Loading branch information
commodo committed Apr 2, 2020
1 parent e47caad commit 7e1c0bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CI/travis/before_install_linux
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ handle_ubuntu_docker() {

handle_default() {
sudo apt-get -qq update
sudo apt-get install -y cmake graphviz libaio-dev libavahi-client-dev \
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y cmake graphviz \
libaio-dev libavahi-client-dev \
libavahi-common-dev libusb-1.0-0-dev libxml2-dev rpm tar \
bzip2 gzip flex bison git python-pip
if [ -n "${GH_DOC_TOKEN}" ] ; then
Expand Down

0 comments on commit 7e1c0bc

Please sign in to comment.