From d6cb897eb499c12e88be90d35d2cf071e4f84445 Mon Sep 17 00:00:00 2001 From: Luigi Cruz Date: Sat, 22 Feb 2020 02:34:10 -0300 Subject: [PATCH] Try to fix apt error. --- builder/build.sh | 10 ++++++---- builder/stage0/00-configure-apt/files/sources.list | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/builder/build.sh b/builder/build.sh index 73c1fe3..e2369af 100755 --- a/builder/build.sh +++ b/builder/build.sh @@ -20,8 +20,9 @@ EOF PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages-nr")" if [ -n "$PACKAGES" ]; then on_chroot << EOF -apt-get -o APT::Acquire::Retries=3 --fix-missing install --no-install-recommends -y $PACKAGES -apt-get -o APT::Acquire::Retries=3 --fix-missing install --no-install-recommends -y $PACKAGES +apt-get -o APT::Acquire::Retries=3 --ignore-missing --fix-missing install --no-install-recommends -y $PACKAGES +apt-get -o APT::Acquire::Retries=3 --ignore-missing --fix-missing install --no-install-recommends -y $PACKAGES +apt-get -o APT::Acquire::Retries=3 --ignore-missing --fix-missing install --no-install-recommends -y $PACKAGES EOF fi log "End ${SUB_STAGE_DIR}/${i}-packages-nr" @@ -31,8 +32,9 @@ EOF PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages")" if [ -n "$PACKAGES" ]; then on_chroot << EOF -apt-get -o APT::Acquire::Retries=3 --fix-missing install -y $PACKAGES -apt-get -o APT::Acquire::Retries=3 --fix-missing install -y $PACKAGES +apt-get -o APT::Acquire::Retries=3 --ignore-missing --fix-missing install -y $PACKAGES +apt-get -o APT::Acquire::Retries=3 --ignore-missing --fix-missing install -y $PACKAGES +apt-get -o APT::Acquire::Retries=3 --ignore-missing --fix-missing install -y $PACKAGES EOF fi log "End ${SUB_STAGE_DIR}/${i}-packages" diff --git a/builder/stage0/00-configure-apt/files/sources.list b/builder/stage0/00-configure-apt/files/sources.list index 61820ac..9cb5c06 100644 --- a/builder/stage0/00-configure-apt/files/sources.list +++ b/builder/stage0/00-configure-apt/files/sources.list @@ -1,3 +1,3 @@ -deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi +deb http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster main contrib non-free rpi # Uncomment line below then 'apt-get update' to enable 'apt-get source' #deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi