Force apt to not bring up an ncurses menu.

PiperOrigin-RevId: 432347975
This commit is contained in:
Adin Scannell
2022-03-03 20:24:07 -08:00
committed by gVisor bot
parent 15898a341f
commit c8b0aadfa9
+8 -1
View File
@@ -3,7 +3,14 @@
function install_pkgs() {
export DEBIAN_FRONTEND=noninteractive
while true; do
if sudo -E apt-get update && sudo -E apt-get install -y "$@"; then
if sudo -E apt-get update && \
sudo -E apt-get install -y \
-o Dpkg::Options::=--force-confold \
-o Dpkg::Options::=--force-confdef \
--allow-downgrades \
--allow-remove-essential \
--allow-change-held-packages \
"$@"; then
break
fi
done