From 9512f95182c78438896ce4a458c42a12e2cd974c Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Thu, 21 Oct 2021 12:25:56 -0700 Subject: [PATCH] Update APT package metadata on installs to avoid errors due to staleness. --- install_and_cache_pkgs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install_and_cache_pkgs.sh b/install_and_cache_pkgs.sh index 9d68cf8..6e52a44 100755 --- a/install_and_cache_pkgs.sh +++ b/install_and_cache_pkgs.sh @@ -15,6 +15,8 @@ for package in $packages; do done mkdir -p $cache_dir +echo "* Updating APT package list and get the latest information..." +sudo apt-get update for package in $packages; do cache_filepath=$cache_dir/$package.tar.gz