From 3939fdec5b66fa5520b427861d6cc79751b25cdd Mon Sep 17 00:00:00 2001 From: Timofey Turenko Date: Fri, 28 Jun 2019 00:15:28 +0300 Subject: [PATCH] make apt non-interactive in install_build_deps.sh In Ubuntu Bionic there is need to update libssl which causes system services restart and apt asks user to allow this restart. It cases build script to hang and build fails due to timeout. Additional dpkg options and DEBIAN_FRONTEND=noninteractive solves the problem --- BUILD/install_build_deps.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BUILD/install_build_deps.sh b/BUILD/install_build_deps.sh index 55342045c..7c1ffb592 100755 --- a/BUILD/install_build_deps.sh +++ b/BUILD/install_build_deps.sh @@ -14,9 +14,14 @@ if [ $? == 0 ] then # DEB-based distro install_libdir=/usr/lib + export DEBIAN_FRONTEND=noninteractive sudo apt-get update - sudo apt-get install -y --force-yes dpkg-dev git wget \ + sudo dpkg-reconfigure libc6 + sudo -E apt-get -q -o Dpkg::Options::=--force-confold \ + -o Dpkg::Options::=--force-confdef \ + -y --force-yes \ + install dpkg-dev git wget \ build-essential libssl-dev ncurses-dev bison flex \ perl libtool libpcre3-dev tcl tcl-dev uuid \ uuid-dev libsqlite3-dev liblzma-dev libpam0g-dev pkg-config \