From aae29498f89b31068f91c01ebd6e7326b614a714 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Thu, 17 Jul 2025 11:28:32 +0200 Subject: [PATCH] Fix python3.12-venv install on Ubuntu 24.04 LTS --- install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install b/install index e43fc92..2ebe1d6 100755 --- a/install +++ b/install @@ -206,6 +206,7 @@ wo_dir_init() { wo_install_dep() { local wo_linux_distro wo_linux_distro=$(lsb_release -is) + wo_python_venv=$(apt-cache policy python3.12-venv 2>&1 | grep -q Installed) if [ "$wo_linux_distro" == "Ubuntu" ]; then # install dependencies add-apt-repository ppa:git-core/ppa -y @@ -213,6 +214,10 @@ wo_install_dep() { build-essential curl gzip python3-pip python3-apt python3-venv gcc python3-dev sqlite3 git tar software-properties-common pigz \ gnupg2 cron ccze rsync apt-transport-https tree haveged ufw unattended-upgrades tzdata ntp zstd idn \ python3-distutils-extra libapt-pkg-dev bash-completion >/dev/null 2>&1 + if $wo_python_venv; then + apt install -yy python3.12-venv >/dev/null 2>&1 + fi + else # install dependencies apt-get --option=Dpkg::options::=--force-confmiss --option=Dpkg::options::=--force-confold --assume-yes install \