From f8fe9f0af9833d89fcf871634f716609b1e59aaa Mon Sep 17 00:00:00 2001 From: root Date: Wed, 6 Mar 2024 19:57:05 -0500 Subject: [PATCH] Refine scripts/install_python2_kalite-venv_u2404.sh --- scripts/install_python2_kalite-venv_u2404.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/install_python2_kalite-venv_u2404.sh b/scripts/install_python2_kalite-venv_u2404.sh index 0841704df..1371b4b05 100755 --- a/scripts/install_python2_kalite-venv_u2404.sh +++ b/scripts/install_python2_kalite-venv_u2404.sh @@ -14,8 +14,7 @@ apt-mark hold python3.11 python3.11-minimal libpython3.11-stdlib libpython3.11-m apt -y --allow-downgrades install python3-platformdirs=2.5.1-1 apt-mark hold python3-platformdirs -apt -y install python2 -apt -y install python2-pip-whl python2-setuptools-whl +apt -y install python2 python2-pip-whl python2-setuptools-whl apt -y --allow-downgrades install python3-pip-whl=22.0.2+dfsg-1 apt-mark hold python3-pip-whl @@ -37,11 +36,11 @@ bin/pip install ka-lite-static --no-python-version-warning --no-cache-dir deactivate #apt -y remove `apt list *python2* | grep installed | awk -F / '{ print $1 }'` -apt-mark unhold `apt-mark showhold` +apt-mark unhold $(apt-mark showhold) || true rm /etc/apt/sources.list.d/python2.list apt -y remove libmpdec3 python3-pip python3-wheel apt update -apt -y upgrade +apt -y upgrade # Why 'apt upgrade' here?