mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
cleanup
This commit is contained in:
parent
191ba39129
commit
fbb614b1c6
1 changed files with 12 additions and 51 deletions
|
@ -3,6 +3,16 @@
|
||||||
# https://packages.debian.org/bullseye/libpython2.7-stdlib
|
# https://packages.debian.org/bullseye/libpython2.7-stdlib
|
||||||
# https://packages.ubuntu.com/search?keywords=libpython2.7-stdlib&searchon=names&suite=all§ion=all
|
# https://packages.ubuntu.com/search?keywords=libpython2.7-stdlib&searchon=names&suite=all§ion=all
|
||||||
# https://packages.ubuntu.com/jammy-updates/libpython2.7-stdlib
|
# https://packages.ubuntu.com/jammy-updates/libpython2.7-stdlib
|
||||||
|
|
||||||
|
# payload to be installed:
|
||||||
|
# libpython2-stdlib
|
||||||
|
# libpython2.7-minimal
|
||||||
|
# libpython2.7-stdlib
|
||||||
|
# python2-minimal
|
||||||
|
# python2.7-minimal
|
||||||
|
# python2.7
|
||||||
|
# python2
|
||||||
|
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
ARCH=$(dpkg --print-architecture)
|
ARCH=$(dpkg --print-architecture)
|
||||||
|
|
||||||
|
@ -15,18 +25,6 @@ apt -y install virtualenv
|
||||||
cd /tmp
|
cd /tmp
|
||||||
case $ARCH in
|
case $ARCH in
|
||||||
"amd64")
|
"amd64")
|
||||||
#wget http://mirrors.edge.kernel.org/ubuntu/pool/universe/p/python2.7/libpython2.7-minimal_2.7.18-13ubuntu2_amd64.deb
|
|
||||||
#apt install ./libpython2.7-minimal_2.7.18-13ubuntu2_amd64.deb
|
|
||||||
|
|
||||||
#wget http://mirrors.edge.kernel.org/ubuntu/pool/universe/p/python2.7/libpython2.7-stdlib_2.7.18-13ubuntu2_amd64.deb
|
|
||||||
#apt install ./libpython2.7-stdlib_2.7.18-13ubuntu2_amd64.deb
|
|
||||||
|
|
||||||
#wget http://mirrors.edge.kernel.org/ubuntu/pool/universe/p/python2.7/python2.7-minimal_2.7.18-13ubuntu2_amd64.deb
|
|
||||||
#apt install ./python2.7-minimal_2.7.18-13ubuntu2_amd64.deb
|
|
||||||
|
|
||||||
#wget http://mirrors.kernel.org/ubuntu/pool/universe/p/python2.7/python2.7_2.7.18-13ubuntu2_amd64.deb
|
|
||||||
#apt install ./python2.7_2.7.18-13ubuntu2_amd64.deb
|
|
||||||
#rm *.deb
|
|
||||||
# works on U23.04 x86_64 VM
|
# works on U23.04 x86_64 VM
|
||||||
cat << EOF > /etc/apt/sources.list.d/python2.list
|
cat << EOF > /etc/apt/sources.list.d/python2.list
|
||||||
deb [trusted=yes] http://archive.ubuntu.com/ubuntu jammy main universe
|
deb [trusted=yes] http://archive.ubuntu.com/ubuntu jammy main universe
|
||||||
|
@ -35,18 +33,6 @@ EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"arm64")
|
"arm64")
|
||||||
#wget http://ftp.debian.org/debian/pool/main/p/python2.7/libpython2.7-minimal_2.7.18-8_arm64.deb
|
|
||||||
#apt install ./libpython2.7-minimal_2.7.18-8_arm64.deb
|
|
||||||
|
|
||||||
#wget http://ftp.debian.org/debian/pool/main/p/python2.7/libpython2.7-stdlib_2.7.18-8_arm64.deb
|
|
||||||
#apt install ./libpython2.7-stdlib_2.7.18-8_arm64.deb
|
|
||||||
|
|
||||||
#wget http://ftp.debian.org/debian/pool/main/p/python2.7/python2.7-minimal_2.7.18-8_arm64.deb
|
|
||||||
#apt install ./python2.7-minimal_2.7.18-8_arm64.deb
|
|
||||||
|
|
||||||
#wget http://ftp.debian.org/debian/pool/main/p/python2.7/python2.7_2.7.18-8_arm64.deb
|
|
||||||
#apt install ./python2.7_2.7.18-8_arm64.deb
|
|
||||||
#rm *.deb
|
|
||||||
# gave 404 errors on U23.04 x86_64 VM need to circle back to U23.04 arm64 and confirm
|
# gave 404 errors on U23.04 x86_64 VM need to circle back to U23.04 arm64 and confirm
|
||||||
cat << EOF > /etc/apt/sources.list.d/python2.list
|
cat << EOF > /etc/apt/sources.list.d/python2.list
|
||||||
deb [trusted=yes] http://ports.ubuntu.com/ jammy main universe
|
deb [trusted=yes] http://ports.ubuntu.com/ jammy main universe
|
||||||
|
@ -54,36 +40,11 @@ deb [trusted=yes] http://ports.ubuntu.com/ jammy-updates main universe
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# trusted is used for Debian and RasPiOS as the keys would be missing for Ubuntu
|
|
||||||
# "arm64"|"amd64")
|
|
||||||
# cat << EOF > /etc/apt/sources.list.d/python2.list
|
|
||||||
# keys for Debian future work maybe
|
|
||||||
#deb [signed-by=/usr/share/keyrings/ubuntu-keyring-2018-archive.gpg] http://ports.ubuntu.com/ jammy main universe
|
|
||||||
#deb [signed-by=/usr/share/keyrings/ubuntu-keyring-2018-archive.gpg] http://ports.ubuntu.com/ jammy-updates main universe
|
|
||||||
#EOF
|
|
||||||
# ;;
|
|
||||||
|
|
||||||
"armhf")
|
"armhf")
|
||||||
#wget http://raspbian.raspberrypi.org/raspbian/pool/main/libf/libffi/libffi7_3.3-6_armhf.deb
|
# armhf compile flags differ between RasPiOS and Ubuntu
|
||||||
#apt install ./libffi7_3.3-6_armhf.deb
|
|
||||||
|
|
||||||
#wget http://raspbian.raspberrypi.org/raspbian/pool/main/p/python2.7/libpython2.7-minimal_2.7.18-13.2_armhf.deb
|
|
||||||
#apt install ./libpython2.7-minimal_2.7.18-13.2_armhf.deb
|
|
||||||
|
|
||||||
#wget http://raspbian.raspberrypi.org/raspbian/pool/main/p/python2.7/libpython2.7-stdlib_2.7.18-13.2_armhf.deb
|
|
||||||
#apt install ./libpython2.7-stdlib_2.7.18-13.2_armhf.deb
|
|
||||||
|
|
||||||
#wget http://raspbian.raspberrypi.org/raspbian/pool/main/p/python2.7/python2.7-minimal_2.7.18-13.2_armhf.deb
|
|
||||||
#apt install ./python2.7-minimal_2.7.18-13.2_armhf.deb
|
|
||||||
|
|
||||||
#wget http://raspbian.raspberrypi.org/raspbian/pool/main/p/python2.7/python2.7_2.7.18-13.2_armhf.deb
|
|
||||||
#apt install ./python2.7_2.7.18-13.2_armhf.deb
|
|
||||||
#rm *.deb
|
|
||||||
|
|
||||||
# armhf compile flags differ between RasPiOS and Ubuntu
|
|
||||||
if ! [ -f /etc/rpi-issue ]; then
|
if ! [ -f /etc/rpi-issue ]; then
|
||||||
|
# these might change
|
||||||
cat << EOF > /etc/apt/sources.list.d/python2.list
|
cat << EOF > /etc/apt/sources.list.d/python2.list
|
||||||
# these might change
|
|
||||||
deb http://ports.ubuntu.com/ jammy main universe
|
deb http://ports.ubuntu.com/ jammy main universe
|
||||||
deb http://ports.ubuntu.com/ jammy-updates main universe
|
deb http://ports.ubuntu.com/ jammy-updates main universe
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in a new issue