From 722983bf6b089b4b0fcf98170f1b77650635400f Mon Sep 17 00:00:00 2001 From: Vasilii Iakliushin Date: Tue, 20 Oct 2020 12:28:05 +0200 Subject: [PATCH] Fix: Could not perform immediate configuration on 'libcrypt1:amd64' https://gitlab.com/gitlab-org/gitlab-build-images/-/jobs/801097436#L1727 Error message: ``` E: Could not configure 'libc6:amd64'. E: Could not perform immediate configuration on 'libcrypt1:amd64'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2) ``` --- scripts/install-www-gitlab-com | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install-www-gitlab-com b/scripts/install-www-gitlab-com index 1243bbe..bde92ce 100755 --- a/scripts/install-www-gitlab-com +++ b/scripts/install-www-gitlab-com @@ -40,6 +40,9 @@ YARN_INSTALL_VERSION=1.21.1-1 YAMLLINT_VERSION=1.24.2 echo "deb http://deb.debian.org/debian testing main" | tee -a /etc/apt/sources.list.d/testing.list apt update + +# Fix for immediate configuration error - https://gitlab.com/gitlab-org/gitlab-build-images/-/merge_requests/332 +apt -t testing install -o APT::Immediate-Configure=false -yq libcrypt1 apt -t testing install -yq yamllint=${YAMLLINT_VERSION}-1 # Install gitlab-runner