From 10e7a060700a382d06fda66bda1afce7f8cdb1e3 Mon Sep 17 00:00:00 2001 From: goldyfruit Date: Mon, 20 May 2024 17:34:33 -0400 Subject: [PATCH] [utils/common] Add Python repo when Ubuntu > 23.10 detected --- utils/common.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils/common.sh b/utils/common.sh index 1baf3f56..f620f498 100644 --- a/utils/common.sh +++ b/utils/common.sh @@ -207,6 +207,13 @@ function required_packages() { case "$DISTRO_NAME" in debian | ubuntu | raspbian | linuxmint | zorin) [ "$DISTRO_VERSION_ID" == "11" ] && export PYTHON_VERSION="3" + if [ "$(ver "$DISTRO_VERSION_ID")" -ge "$(ver 24.04)" ]; then + { + apt-get update + apt-get install --no-install-recommends -y software-properties-common + add-apt-repository ppa:deadsnakes/ppa + } &>>"$LOG_FILE" + fi apt-get update &>>"$LOG_FILE" apt-get install --no-install-recommends -y "python${PYTHON_VERSION}" "python${PYTHON_VERSION}-dev" python3-pip "python${PYTHON_VERSION}-venv" whiptail expect jq "${extra_packages[@]}" &>>"$LOG_FILE" ;;