Skip to content

Commit dc3072c

Browse files
committed
Update install-python.sh for Ubuntu 24.04+
Running install-python.sh on Ubuntu 24.04 fails during the netselect/ select_fastest step. This can be safely skipped on 24.04, but is still useful up to 22.04, so we check lsb-release for a DISTRIB_RELEASE major version less than 24.04 before entering the step. This also includes a small fix to indentation in the case block (lines were previously indented to 3 spaces instead of 4). Change-Id: I4ffb398d78abcd3cf1bd1ec14a034b21d66ebab3 Signed-off-by: Eric Ball <[email protected]>
1 parent 5407e18 commit dc3072c

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

provision/install-python.sh

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,19 @@ if is_ubuntu; then
7575

7676
case $_ARCH in
7777
x86_64)
78-
NETSELECT_DEB="netselect_0.3.ds1-28+b1_amd64.deb"
79-
echo "NetSelect version to install is ${NETSELECT_DEB}"
80-
select_fastest
81-
;;
78+
source /etc/lsb-release
79+
if [[ ${DISTRIB_RELEASE:0:2} -lt 24 ]]; then
80+
NETSELECT_DEB="netselect_0.3.ds1-28+b1_amd64.deb"
81+
echo "NetSelect version to install is ${NETSELECT_DEB}"
82+
select_fastest
83+
fi
84+
;;
8285
aarch64)
83-
#NETSELECT_DEB="netselect_0.3.ds1-28+b1_arm64.deb"
84-
;;
86+
#NETSELECT_DEB="netselect_0.3.ds1-28+b1_arm64.deb"
87+
;;
8588
*)
86-
echo "Unknown arch ${_ARCH}. Exiting..."
87-
exit 1
89+
echo "Unknown arch ${_ARCH}. Exiting..."
90+
exit 1
8891
esac
8992

9093

0 commit comments

Comments
 (0)