Skip to content

Commit

Permalink
#76 Update libexpat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kwabenantim committed Feb 11, 2025
1 parent 997019a commit 82cabbf
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/system/setup_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ 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

codename="$(. /etc/os-release && echo ${VERSION_CODENAME} | sed 's/\.//')"
repo="deb [signed-by=/usr/share/keyrings/chaste.asc] https://chaste.github.io/ubuntu ${codename}/"
echo "${repo}" > /etc/apt/sources.list.d/chaste.list

apt-get update && \
apt-get install -y --no-install-recommends \
chaste-dependencies \
Expand All @@ -35,8 +37,9 @@ apt-get install -y --no-install-recommends \

# 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
apt-get update && \
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
Expand Down

0 comments on commit 82cabbf

Please sign in to comment.