Skip to content

Commit

Permalink
--allow-releaseinfo-change (#2208)
Browse files Browse the repository at this point in the history
* --allow-releaseinfo-change

possible fix for recent install errors, #2206, #2207

* show error with possible fix

Co-authored-by: UnchartedBull <unchartedbull@gmail.com>
  • Loading branch information
jneilliii and UnchartedBull committed Sep 16, 2021
1 parent 0c9b5fe commit 5598378
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,18 @@ IFS='/' read -ra version <<< "$releaseURL"
echo "Installing OctoDash "${version[7]}, $arch""

echo "Installing Dependencies ..."
sudo apt -qq update
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"
Expand Down

0 comments on commit 5598378

Please sign in to comment.