From fff81a4a5dff8bc8ee96d4d07b5ee67f39b6aa3c Mon Sep 17 00:00:00 2001 From: jneilliii Date: Sun, 29 Aug 2021 03:11:53 -0400 Subject: [PATCH 1/2] --allow-releaseinfo-change possible fix for recent install errors, #2206, #2207 --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 167c3fc17..64eaa1e3e 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -682,7 +682,7 @@ IFS='/' read -ra version <<< "$releaseURL" echo "Installing OctoDash "${version[7]}, $arch"" echo "Installing Dependencies ..." -sudo apt -qq update +sudo apt -qq update --allow-releaseinfo-change sudo apt -qq install $dependencies -y if [ -d "/home/pi/OctoPrint/venv" ]; then From 9fff467cc922facd3bae027f2835d6f94271cd53 Mon Sep 17 00:00:00 2001 From: UnchartedBull Date: Wed, 15 Sep 2021 13:32:38 +0200 Subject: [PATCH 2/2] show error with possible fix --- scripts/install.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 64eaa1e3e..9980bcd37 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -682,8 +682,18 @@ IFS='/' read -ra version <<< "$releaseURL" echo "Installing OctoDash "${version[7]}, $arch"" echo "Installing Dependencies ..." -sudo apt -qq update --allow-releaseinfo-change -sudo apt -qq install $dependencies -y +{ + sudo apt -qq update + sudo apt -qq install $dependencies -y +} || { + echo "" + echo "Couldn't install dependenices!" + echo "Seems like there is something wrong with the package manager 'apt'" + echo "" + echo "If the error is similar to: 'E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable''" + echo "you can run 'sudo apt update --allow-releaseinfo-change' and then execute the OctoDash installation command again" + exit -1 +} if [ -d "/home/pi/OctoPrint/venv" ]; then DIRECTORY="/home/pi/OctoPrint/venv"