From 2a8c9ebe3812bb8fb5bd6a350ec53f6a6e402919 Mon Sep 17 00:00:00 2001 From: Zsolt Ero Date: Tue, 9 May 2017 11:39:43 +0200 Subject: [PATCH] apt-get fixes (#406) * apt-fixes * DEBIAN_FRONTEND teletype at the end --- image/Dockerfile | 2 ++ image/prepare.sh | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/image/Dockerfile b/image/Dockerfile index 0eea9b2..cd3178b 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -9,6 +9,8 @@ RUN /bd_build/prepare.sh && \ /bd_build/fix_pam_bug.sh && \ /bd_build/cleanup.sh +ENV DEBIAN_FRONTEND teletype + ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en ENV LC_ALL en_US.UTF-8 diff --git a/image/prepare.sh b/image/prepare.sh index 90d6a50..c2926a5 100755 --- a/image/prepare.sh +++ b/image/prepare.sh @@ -28,6 +28,9 @@ ln -sf /bin/true /sbin/initctl dpkg-divert --local --rename --add /usr/bin/ischroot ln -sf /bin/true /usr/bin/ischroot +# apt-utils fix for Ubuntu 16.04 +$minimal_apt_get_install apt-utils + ## Install HTTPS support for APT. $minimal_apt_get_install apt-transport-https ca-certificates @@ -35,7 +38,7 @@ $minimal_apt_get_install apt-transport-https ca-certificates $minimal_apt_get_install software-properties-common ## Upgrade all packages. -apt-get dist-upgrade -y --no-install-recommends +apt-get dist-upgrade -y --no-install-recommends -o Dpkg::Options::="--force-confold" ## Fix locale. $minimal_apt_get_install language-pack-en