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:
commit
26211999e2
1 changed files with 10 additions and 5 deletions
|
@ -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
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in a new issue