Skip to content

Commit

Permalink
#76 Add libexpat fix for jammy
Browse files Browse the repository at this point in the history
  • Loading branch information
kwabenantim committed Feb 11, 2025
1 parent 5f62998 commit 997019a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/system/setup_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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

Expand All @@ -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

0 comments on commit 997019a

Please sign in to comment.