diff --git a/scripts/pkgdep/debian.sh b/scripts/pkgdep/debian.sh index 7962dff91..dd2a98fc9 100755 --- a/scripts/pkgdep/debian.sh +++ b/scripts/pkgdep/debian.sh @@ -3,8 +3,14 @@ VERSION_ID_NUM=$(sed 's/\.//g' <<< $VERSION_ID) # Includes Ubuntu, Debian # Minimal install -apt-get install -y gcc g++ make libcunit1-dev libaio-dev libssl-dev libjson-c-dev libcmocka-dev \ - uuid-dev libiscsi-dev python libncurses5-dev libncursesw5-dev python3-pip +apt-get install -y gcc g++ make libcunit1-dev libaio-dev libssl-dev libjson-c-dev libcmocka-dev uuid-dev libiscsi-dev +if [[ $NAME == "Ubuntu" ]] && [[ $VERSION_ID_NUM -ge 2204 ]]; then + # there is no python package in Ubuntu 22.04 + apt-get install -y python3 +else + apt-get install -y python +fi +apt-get install -y libncurses5-dev libncursesw5-dev python3-pip pip3 install ninja if ! pip3 install meson; then # After recent updates pip3 on ubuntu1604 provides meson version which requires python >= 3.6.