1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

Merge pull request #3638 from holta/python2-on-armhf-raspios12

install_python2.sh: ports.ubuntu.com apt sources for "32-bit" RasPiOS 12 — regardless whether booting 32-bit or 64-bit "armhf" kernels
This commit is contained in:
A Holt 2023-09-11 01:20:32 -04:00 committed by GitHub
commit 26211999e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,8 @@ ARCH=$(dpkg --print-architecture)
# libpython2.7-stdlib from ubuntu-22.04 used in amd64|arm64|armhf is compiled against libssl3 and libffi8
# `apt info libpython2.7-stdlib`
cd /tmp
#cd /tmp
case $ARCH in
"amd64")
# works on U23.04 x86_64 VM
@ -58,12 +59,16 @@ EOF
"armhf")
# armhf compile flags differ between RasPiOS and Ubuntu
if ! [ -f /etc/rpi-issue ]; then
# these might change
if [ -f /etc/rpi-issue ] && ! grep -q 11 /etc/issue; then # RasPiOS 12+ / Bookworm+
cat << EOF > /etc/apt/sources.list.d/python2.list
deb http://ports.ubuntu.com/ jammy main universe
deb http://ports.ubuntu.com/ jammy-updates main universe
deb [trusted=yes] http://ports.ubuntu.com/ jammy main universe
deb [trusted=yes] http://ports.ubuntu.com/ jammy-updates main universe
EOF
# elif ! [ -f /etc/rpi-issue ]; then # Ubuntu/Debian on armhf not supported
# cat << EOF > /etc/apt/sources.list.d/python2.list
# deb http://ports.ubuntu.com/ jammy main universe
# deb http://ports.ubuntu.com/ jammy-updates main universe
# EOF
fi
;;