From 27e0da87730fb3bb8845c68ea014b1f791149268 Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Tue, 28 Feb 2023 10:33:59 -0800 Subject: [PATCH] ignore expired releases for apt installs --- scripts/packages-install | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/scripts/packages-install b/scripts/packages-install index 13b6acf..756ea05 100755 --- a/scripts/packages-install +++ b/scripts/packages-install @@ -5,10 +5,16 @@ ARCH=$(uname -m) cp /config/toolchain/* /etc/apt/ -apt-get update +apt-get update -o Acquire::Check-Valid-Until=false apt-get install debian-archive-keyring -until apt-get install --download-only --reinstall --allow-downgrades -y $(cat /etc/apt/packages-${ARCH}.list); do +until apt-get install \ + --download-only \ + --reinstall \ + --allow-downgrades \ + -o Acquire::Check-Valid-Until=false \ + -y $(cat /etc/apt/packages-${ARCH}.list); +do echo "apt install failed. Likely throttled. Retrying in 10 mins..."; sleep 600; done; @@ -22,5 +28,7 @@ done; diff /etc/apt/package-hashes-${ARCH}{,-compare}.txt -apt-get install --allow-downgrades -y $(cat /etc/apt/packages-${ARCH}.list) +apt-get install \ + --allow-downgrades \ + -y $(cat /etc/apt/packages-${ARCH}.list) rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* /tmp/* /var/tmp/*;