From 3b0df3802b333d175ed93597e698049f9db79508 Mon Sep 17 00:00:00 2001 From: "Luigi F. Cruz" Date: Thu, 20 Feb 2020 02:25:54 -0300 Subject: [PATCH] Add `--fix-missing` to `apt-get`. --- builder/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/build.sh b/builder/build.sh index 6885bd9..b8bf71f 100755 --- a/builder/build.sh +++ b/builder/build.sh @@ -20,7 +20,7 @@ EOF PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages-nr")" if [ -n "$PACKAGES" ]; then on_chroot << EOF -apt-get install --no-install-recommends -y $PACKAGES +apt-get install --fix-missing --no-install-recommends -y $PACKAGES EOF fi log "End ${SUB_STAGE_DIR}/${i}-packages-nr" @@ -30,7 +30,7 @@ EOF PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages")" if [ -n "$PACKAGES" ]; then on_chroot << EOF -apt-get install -y $PACKAGES +apt-get install --fix-missing -y $PACKAGES EOF fi log "End ${SUB_STAGE_DIR}/${i}-packages"