diff --git a/scripts/system/setup_ubuntu.sh b/scripts/system/setup_ubuntu.sh index 48590d9..0bc77df 100755 --- a/scripts/system/setup_ubuntu.sh +++ b/scripts/system/setup_ubuntu.sh @@ -2,8 +2,6 @@ export DEBIAN_FRONTEND=noninteractive -codename="$(. /etc/os-release && echo ${VERSION_CODENAME} | sed 's/\.//')" - # System dependencies apt-get update && \ apt-get install -y --no-install-recommends \ @@ -19,6 +17,7 @@ apt-get install -y --no-install-recommends \ wget # Chaste dependencies +codename="$(. /etc/os-release && echo ${VERSION_CODENAME} | sed 's/\.//')" echo "deb [signed-by=/usr/share/keyrings/chaste.asc] https://chaste.github.io/ubuntu ${codename}/" > /etc/apt/sources.list.d/chaste.list wget -O /usr/share/keyrings/chaste.asc https://chaste.github.io/chaste.asc @@ -34,5 +33,11 @@ apt-get install -y --no-install-recommends \ python3-venv \ valgrind +# https://bugs.launchpad.net/ubuntu/+source/expat/+bug/2058415 +if [ "${codename}" = 'jammy' ]; then + apt-get install libexpat1=2.4.7-1 libexpat1-dev=2.4.7-1 + apt-mark hold libexpat1 libexpat1-dev +fi + update-alternatives --install /usr/local/bin/python python /usr/bin/python3 10 update-alternatives --install /usr/local/bin/pip pip /usr/bin/pip3 10