diff --git a/utils/common.sh b/utils/common.sh index c82ff42f..f058683c 100644 --- a/utils/common.sh +++ b/utils/common.sh @@ -188,9 +188,10 @@ function get_os_information() { # the installer will exit with a message. function required_packages() { echo -ne "➤ Validating installer package requirements... " + PYTHON_VERSION="3.11" case "$DISTRO_NAME" in debian | ubuntu) - [ "$DISTRO_VERSION_ID" -gt 11 ] && PYTHON_VERSION="3.11" || PYTHON_VERSION="3" + [ "$DISTRO_VERSION_ID" -lt 12 ] && PYTHON_VERSION="3" export PYTHON_VERSION 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 &>>"$LOG_FILE"