diff --git a/AmRRON-Setup-Script.sh b/AmRRON-Setup-Script.sh index e90d751..fb94ccc 100755 --- a/AmRRON-Setup-Script.sh +++ b/AmRRON-Setup-Script.sh @@ -1468,8 +1468,14 @@ function ublox_gps_setup() { #Deps from Debian 10 #sudo apt-get -y install gpsd gpsd-clients python-gps chrony || -sudo apt install -y gpsd gpsd-clients gpsd-tools chrony || - { ERRCODE="Failed to install gpsd gpsd-clients python-gps chrony packages"; errors; return; } +if apt-cache show gpsd-tools; then + GPSDEP=gpsd-tools +else + GPSDEP=python-gps +fi + +sudo apt install -y gpsd gpsd-clients $GPSDEP chrony || + { ERRCODE="Failed to install gpsd related packages"; errors; return; } if [[ -f /etc/default/gpsd ]]; then @@ -2101,7 +2107,7 @@ fi sudo python3 -m pip install https://download.electrum.org/$NEWELECTRUM/\ Electrum-${NEWELECTRUM}.tar.gz || - { ERRCODE="Failed to install Electrum"; errors; return; } + { ERRCODE="Failed to install Electrum. Likely due to running older OS without python3 support."; errors; return; } else echo noelectrum >> /tmp/cleanup fi diff --git a/changelogs/CHANGELOG-Setup-Script.md b/changelogs/CHANGELOG-Setup-Script.md index 4bcc77b..493132d 100644 --- a/changelogs/CHANGELOG-Setup-Script.md +++ b/changelogs/CHANGELOG-Setup-Script.md @@ -6,6 +6,7 @@ - Fix Veracrypt links. - fixed missing sudo for snap block - Fixed electrum check for python3 + - fixed gpsd deps check for Deb 10 / Deb 11 systems # Version 0.7.0 - Working - Working updates for current release 2022-09-22 Raspios Bullseye 32bit