forked from public/airgap
1
0
Fork 0

Merge branch 'gkelly-apt-allow-downgrades'

This commit is contained in:
Lance Vick 2021-06-30 19:41:31 -07:00
commit 7a343c9530
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ apt-get install -y apt-transport-https ca-certificates
mv /etc/apt/sources.list{.new,} mv /etc/apt/sources.list{.new,}
mv /etc/apt/packages.list{.new,} mv /etc/apt/packages.list{.new,}
apt-get update apt-get update
until apt-get install --download-only --reinstall -y $(cat /etc/apt/packages.list); do until apt-get install --download-only --reinstall --allow-downgrades -y $(cat /etc/apt/packages.list); do
echo "apt install failed. Likely throttled. Retrying in 10 mins..."; echo "apt install failed. Likely throttled. Retrying in 10 mins...";
sleep 600; sleep 600;
done; done;
@ -22,6 +22,6 @@ done;
diff /etc/apt/package-hashes{,-compare}.txt diff /etc/apt/package-hashes{,-compare}.txt
apt-get install -y $(cat /etc/apt/packages.list) apt-get install --allow-downgrades -y $(cat /etc/apt/packages.list)
rm -rf /var/ache/apt/archives/* /var/lib/apt/lists/* /tmp/* /var/tmp/*; rm -rf /var/ache/apt/archives/* /var/lib/apt/lists/* /tmp/* /var/tmp/*;