Attempt apt-get update twice

This commit is contained in:
Taylor Helsper 2023-10-15 21:05:44 -05:00
parent b31a6416d8
commit 63fee5be5e

View File

@ -104,17 +104,10 @@ if ! skip_base_upgrades ; then
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 66F6C87B98EBCFE2 # I2P (R4SAS)
set -e
# Remove old node repo to prevent issues during apt-update
if [ -f /etc/apt/sources.list.d/nodesource.list ]; then
CURRENT_NODE_VERSION=$(cat /etc/apt/sources.list.d/nodesource.list)
if [[ "$CURRENT_NODE_VERSION" != *"node_${NODE_JS_VERSION}"* ]]; then
echo "" > /etc/apt/sources.list.d/nodesource.list
fi
fi
# Check for updates (might auto-install all updates later)
export DEBIAN_FRONTEND=noninteractive
$TORIFY apt-get update --allow-releaseinfo-change
$TORIFY apt-get update --allow-releaseinfo-change || \
apt-get update --allow-releaseinfo-change
# Freeze any packages we don't want to update
if [ $IS_X86 = 1 ]; then