diff --git a/.buildkite/scripts/common.sh b/.buildkite/scripts/common.sh index 126a5b71860f..adb8bef6eb2a 100755 --- a/.buildkite/scripts/common.sh +++ b/.buildkite/scripts/common.sh @@ -300,7 +300,9 @@ with_python() { sudo apt-get install -y software-properties-common sudo add-apt-repository -y ppa:deadsnakes/ppa sudo apt update - sudo apt install -y python3.11 python3.11-venv python3.11-apt + sudo apt upgrade + sudo apt install -y python3.11 python3.11-venv + sudo apt install -y python3.11-apt export PATH="/usr/bin/python3.11:${PATH}" sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 sudo update-alternatives --set python3 /usr/bin/python3.11