From 5806c3aa85413979ade7b123b9f817a3723491dd Mon Sep 17 00:00:00 2001 From: VNiharika1 <65152631+VNiharika1@users.noreply.github.com> Date: Thu, 19 Nov 2020 14:59:15 +0530 Subject: [PATCH] Cache Update (#2066) * Cache Update Some base images of the ubuntu on AWS contains an outdated cache. So, when tries to installs the package we receive an error `unable to locate package`. To install the package, added the line `apt-get update` to update the cache. * Rebase and commit --- images/linux/scripts/base/apt.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/images/linux/scripts/base/apt.sh b/images/linux/scripts/base/apt.sh index 35bc92da0..7494e236b 100644 --- a/images/linux/scripts/base/apt.sh +++ b/images/linux/scripts/base/apt.sh @@ -20,10 +20,6 @@ echo "APT::Get::Assume-Yes \"true\";" > /etc/apt/apt.conf.d/90assumeyes # Uninstall unattended-upgrades apt-get remove unattended-upgrades -# Install aria2 and jq -apt-get install aria2 -apt-get install jq - # Use apt-fast for parallel downloads add-apt-repository -y ppa:apt-fast/stable @@ -35,4 +31,5 @@ echo 'APT sources limited to the actual architectures' cat /etc/apt/sources.list apt-get update -apt-get install apt-fast +# Install aria2 , jq and apt-fast +apt-get install aria2 jq apt-fast