Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notes and dependencies [for Python 2 on new OS's on {amd64, arm64, armhf}. Tested on Debian 12 & Ubuntu 23.04] #3535

Merged
merged 15 commits into from Apr 12, 2023

Conversation

jvonau
Copy link
Contributor

@jvonau jvonau commented Apr 11, 2023

Fixes bug:

Pulled the trigger a little fast on #3534 guess I should of tagged it as WIP or Draft

Description of changes proposed in this pull request:

notes and dependencies

@holta holta added this to the 8.1 milestone Apr 11, 2023
@holta
Copy link
Member

holta commented Apr 11, 2023

@jvonau if possible, clarify the purpose of both lines apt -y install libffi8 libssl3 ?

(In the latter case [libssl3] I assume it's already installed on most all newer OS's, like Debian 12 and Ubuntu 23.04 / 23.10 OS's, so presumably that's about providing additional code safety?)

On this general topic of dependencies & notes to inform future upkeep, 2 packages are also installed at the top of install_python2.sh as discussed here:

Related:

@jvonau
Copy link
Contributor Author

jvonau commented Apr 11, 2023

@jvonau if possible, clarify the purpose of both lines apt -y install libffi8 libssl3 ?

(In the latter case [libssl3] I assume it's already installed on most all newer OS's, like Debian 12 and Ubuntu 23.04 / 23.10 OS's, so presumably that's about providing additional code safety?)

Both 'should be' installed out of the box but I don't like to leave things to chance when introducing a repo that might provide the same deb but an older version. Apt should deal with that correctly but one never knows when mixing and matching older programs that have been discontinued.

@jvonau
Copy link
Contributor Author

jvonau commented Apr 11, 2023

@holta
Copy link
Member

holta commented Apr 11, 2023

https://packages.debian.org/search?keywords=media-types&searchon=names&suite=stable&section=all https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=media-types

Note the differences in the version numbers, Debian is at 4.0.0 and Ubuntu starts at 7.0.0 for 22.04

I assume we're talking about Debian 12 Bookworm which apparently includes media-types 10.0.0: (for now)

https://packages.debian.org/bookworm/media-types

(Is one or the other tested?)

@holta
Copy link
Member

holta commented Apr 11, 2023

https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=media-types

Above search query... currently yields these results... just for the record:

image

Copy link
Member

@holta holta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome 💪

("Dependency Hell" may be eternal ~ but notes clarifying past+current assumptions take away a lot of the pain...)

@jvonau
Copy link
Contributor Author

jvonau commented Apr 11, 2023

https://packages.debian.org/search?keywords=media-types&searchon=names&suite=all&section=all

You have searched for packages that names contain media-types in all suites, all sections, and all architectures. Found 1 matching packages.
Exact hits
Package media-types

    [bullseye (stable)](https://packages.debian.org/bullseye/media-types) (net): List of standard media types and their usual file extension
    4.0.0: all
    [bookworm (testing)](https://packages.debian.org/bookworm/media-types) (net): List of standard media types and their usual file extension
    10.0.0: all
    [sid (unstable)](https://packages.debian.org/sid/media-types) (net): List of standard media types and their usual file extension
    10.0.0: all

https://packages.debian.org/search?keywords=media-types&searchon=names&suite=stable&section=all https://packages.ubuntu.com/search?suite=all&arch=any&searchon=names&keywords=media-types
Note the differences in the version numbers, Debian is at 4.0.0 and Ubuntu starts at 7.0.0 for 22.04

I assume we're talking about Debian 12 Bookworm which apparently includes media-types 10.0.0: (for now)

https://packages.debian.org/bookworm/media-types

(Is one or the other tested?)

#3534 (comment)

media-types/lunar,now 10.0.0 all [installed,automatic]

Seeing 'automatic' means the package was pulled in as a dependence of 'mime-support'

@holta
Copy link
Member

holta commented Apr 11, 2023

@jvonau if possible, clarify the purpose of both lines apt -y install libffi8 libssl3 ?
(In the latter case [libssl3] I assume it's already installed on most all newer OS's, like Debian 12 and Ubuntu 23.04 / 23.10 OS's, so presumably that's about providing additional code safety?)

Both 'should be' installed out of the box but I don't like to leave things to chance

In this spirit, should apt -y install libffi8 libssl3 (or at least apt -y install libssl3) be included for RasPiOS 12?

e.g. just prior to Line 79?

@holta
Copy link
Member

holta commented Apr 11, 2023

In this spirit, should apt -y install libffi8 libssl3 (or at least apt -y install libssl3) be included for RasPiOS 12?

e.g. just prior to Line 79?

(Or perhaps appended onto Line 10, if libssl3 is a requirement across-the-board ?)

@jvonau
Copy link
Contributor Author

jvonau commented Apr 11, 2023

@jvonau if possible, clarify the purpose of both lines apt -y install libffi8 libssl3 ?
(In the latter case [libssl3] I assume it's already installed on most all newer OS's, like Debian 12 and Ubuntu 23.04 / 23.10 OS's, so presumably that's about providing additional code safety?)

Both 'should be' installed out of the box but I don't like to leave things to chance

In this spirit, should apt -y install libffi8 libssl3 (or at least apt -y install libssl3) be included for RasPiOS 12?

e.g. just prior to Line 79?

No, all 'newer OSs' would be using the ubuntu jammy repos except for RasPiOS-12-armhf because of #3530 (comment) and noted on line 76

@jvonau
Copy link
Contributor Author

jvonau commented Apr 11, 2023

Side note: http://raspbian.raspberrypi.org/ has a new file snapshotindex.txt suggesting there will be a new bookworm release sooner or later when you look at the bottom of the file

@jvonau
Copy link
Contributor Author

jvonau commented Apr 11, 2023

For a data point from a raspbian-11-32bit install machine can you post the output of apt info libpython2.7-stdlib maybe the switch to libssl3 is already present?

@holta
Copy link
Member

holta commented Apr 11, 2023

For a data point from a raspbian-11-32bit install machine can you post the output of apt info libpython2.7-stdlib maybe the switch to libssl3 is already present?

The ancient RasPiOS 10 (Buster) is all I could find for the moment... not sure this really helps... but FYI:

root@box:~# uname -a
Linux box.lan 5.10.63+ #1496 Wed Dec 1 15:57:05 GMT 2021 armv6l GNU/Linux

root@box:~# cat /etc/debian_version
10.11

root@box:~# apt info libpython2.7-stdlib
Package: libpython2.7-stdlib
Version: 2.7.16-2+deb10u1
Priority: optional
Section: python
Source: python2.7
Maintainer: Matthias Klose <doko@debian.org>
Installed-Size: 8,650 kB
Provides: python-argparse, python2.7-argparse, python2.7-celementtree, python2.7-cjkcodecs, python2.7-ctypes, python2.7-elementtree, python2.7-profiler, python2.7-wsgiref
Depends: libpython2.7-minimal (= 2.7.16-2+deb10u1), libssl1.1 (>= 1.1.1), mime-support, libbz2-1.0, libc6 (>= 2.28), libdb5.3, libexpat1 (>= 2.1~beta3), libffi6 (>= 3.0.4), libncursesw6 (>= 6), libreadline7 (>= 7.0~beta), libsqlite3-0 (>= 3.5.9), libtinfo6 (>= 6)
Breaks: cython (<< 0.26-2.1), epigrass (<= 2.4.7-1), invesalius-bin (<= 3.1.1-1), macs (<= 2.1.1.20160309-1), printrun (<= 0~20150310-5), pycorrfit (<= 1.0.0+dfsg-1), pyscanfcs (<= 0.2.3-3), python-acora (<= 2.0-2+b1), python-adios (<= 1.12.0-3), python-astroml-addons (<= 0.2.2-4), python-astropy (<= 2.0.1-2), python-astroscrappy (<= 1.0.5-1+b1), python-bcolz (<= 1.1.0+ds1-4+b1), python-breezy (<= 3.0.0~bzr6772-1), python-bzrlib (<= 2.7.0+bzr6622-7), python-cartopy (<= 0.14.2+dfsg1-2+b1), python-cogent (<= 1.9-11), python-cutadapt (<= 1.13-1+b1), python-cypari2 (<= 1.0.0-3), python-dipy-lib (<= 0.12.0-1), python-djvu (<= 0.8-2), python-fabio (<= 0.4.0+dfsg-2+b1), python-falcon (<= 1.0.0-2+b1), python-fiona (<= 1.7.9-1), python-fpylll (<= 0.2.4+ds-3), python-grib (<= 2.0.2-2), python-gssapi (<= 1.2.0-1+b1), python-h5py (<= 2.7.0-1+b1), python-healpy (<= 1.10.3-2+b1), python-htseq (<= 0.6.1p1-4), python-imobiledevice (<= 1.2.0+dfsg-3.1), python-kivy (<= 1.9.1-1+b1), python-libdiscid (<= 1.0-1+b1), python-liblo (<= 0.10.0-3+b1), python-llfuse (<= 1.2+dfsg-1+b1), python-lxml (<< 3.8.0-2), python-meliae (<= 0.4.0+bzr199-3), python-netcdf4 (<= 1.2.9-1+b1), python-nipy-lib (<= 0.4.1-1), python-numpy (<< 1:1.12.1-3.1), python-pandas-lib (<= 0.20.3-1), python-petsc4py (<= 3.7.0-3+b1), python-pybloomfiltermmap (<= 0.3.15-0.1+b1), python-pyfai (<= 0.13.0+dfsg-1+b1), python-pygame-sdl2 (<= 6.99.12.4-1), python-pygpu (<= 0.6.9-2), python-pymca5 (<= 5.1.3+dfsg-1+b1), python-pymssql (<= 2.1.3+dfsg-1+b1), python-pyresample (<= 1.5.0-3+b1), python-pysam (<= 0.11.2.2+ds-3), python-pysph (<= 0~20160514.git91867dc-4), python-pywt (<= 0.5.1-1.1+b1), python-rasterio (<= 0.36.0-2+b2), python-renpy (<= 6.99.12.4+dfsg-1), python-scipy (<< 0.18.1-2.1), python-sfepy (<= 2016.2-2), python-sfml (<= 2.2~git20150611.196c88+dfsg-4), python-shapely (<= 1.6.1-1), python-skimage-lib (<= 0.12.3-9+b1), python-sklearn-lib (<= 0.19.0-1), python-specutils (<= 0.2.2-1+b1), python-statsmodels-lib (<= 0.8.0-3), python-stemmer (<= 1.3.0+dfsg-1+b7), python-tables-lib (<= 3.3.0-5+b1), python-tinycss (<= 0.4-1+b1), python-tk (<< 2.7.14~rc1-1~), python-urllib3 (<< 1.9.1-3), python-wheezy.template (<= 0.1.167-1.1+b1), python-yt (<= 3.3.3-2+b1), sagemath (<= 8.0-5), xpra (<= 0.17.6+dfsg-1)
Replaces: libpython2.7-testsuite (<< 2.7.13-4), python2.7 (<< 2.7.5-0~)
Download-Size: 1,844 kB
APT-Manual-Installed: no
APT-Sources: http://mirror.us.leaseweb.net/raspbian/raspbian buster/main armhf Packages
Description: Interactive high-level object-oriented language (standard library, version 2.7)
 Python is a high-level, interactive, object-oriented language. Its 2.7 version
 includes an extensive class library with lots of goodies for
 network programming, system administration, sounds and graphics.
 .
 This package contains Python 2.7's standard library. It is normally not
 used on its own, but as a dependency of python2.7.

@jvonau
Copy link
Contributor Author

jvonau commented Apr 11, 2023

booted an older 32-bit install

jerryv@box:~ $ apt info libpython2.7-stdlib
Package: libpython2.7-stdlib
Version: 2.7.18-8
Priority: optional
Section: python
Source: python2.7
Maintainer: Matthias Klose <doko@debian.org>
Installed-Size: 8,537 kB
Provides: python-argparse, python2.7-argparse, python2.7-celementtree, python2.7-cjkcodecs, python2.7-ctypes, python2.7-elementtree, python2.7-profiler, python2.7-wsgiref
Depends: libpython2.7-minimal (= 2.7.18-8), libssl1.1 (>= 1.1.1), mime-support, libbz2-1.0, libc6 (>= 2.28), libcrypt1 (>= 1:4.1.0), libdb5.3, libexpat1 (>= 2.1~beta3), libffi7 (>= 3.3~20180313), libncursesw6 (>= 6), libnsl2 (>= 1.0), libreadline8 (>= 7.0~beta), libsqlite3-0 (>= 3.5.9), libtinfo6 (>= 6), libtirpc3 (>= 1.0.2)
Breaks: libgcj-common (<< 1:7), libpython-dbg (<< 2.7.18), libpython-dev (<< 2.7.18), libpython-stdlib (<< 2.7.18), libvolk1-bin (<< 2), pysycache (<< 3.1-4~), python (<< 2.7.18), python-catkin-pkg (<< 0.4.14-2~), python-chardet (<< 3.0.4-6~), python-dbg (<< 2.7.18), python-dev (<< 2.7.18), python-extras (<< 1.0.0-4~), python-fixtures (<< 3.0.0-3~), python-genpy (<< 0.6.9-2~), python-iso8601 (<< 0.1.12-2~), python-linecache2 (<< 1.0.0-4~), python-minimal (<< 2.7.18), python-pbr (<< 5.4.5), python-pyasn1 (<< 0.4.2-4~), python-pygame (<< 1.9.6+dfsg-3~), python-pyicu (<< 2.2-3~), python-rospkg (<< 1.1.10-2~), python-std-msgs (<< 0.5.12-2~), python-testtools (<< 2.3.0-7~), python-traceback2 (<< 1.4.0-6~), python-traitlets (<< 4.3.3-3~), python-urllib3 (<< 1.25.8-2~), python-yaml (<< 5.3.1-2~)
Replaces: libpython2.7-testsuite (<< 2.7.13-4), python2.7 (<< 2.7.5-0~)
Download-Size: 1,802 kB
APT-Sources: http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
Description: Interactive high-level object-oriented language (standard library, version 2.7)
 Python is a high-level, interactive, object-oriented language. Its 2.7 version
 includes an extensive class library with lots of goodies for
 network programming, system administration, sounds and graphics.
 .
 This package contains Python 2.7's standard library. It is normally not
 used on its own, but as a dependency of python2.7.

still on libssl1.1

@jvonau
Copy link
Contributor Author

jvonau commented Apr 11, 2023

#3526 (comment) bookworm is using libssl3

@holta
Copy link
Member

holta commented Apr 11, 2023

Is this sufficiently tested?

(Or better to wait a couple days as suggested at the bottom of... ?)

@jvonau
Copy link
Contributor Author

jvonau commented Apr 11, 2023

Should be the correct logic on armhf where it looks like the distro is going to support python2 from the observed behavior. The 64bit version can be revised once what the repos might really look like if needed later but just using the ubuntu repo just works for now and with Debian 12 x86_64 correct?

@holta
Copy link
Member

holta commented Apr 11, 2023

The 64bit version can be revised once what the repos might really look like if needed later but just using the ubuntu repo just works for now and with Debian 12 x86_64 correct?

Installing this PR onto a Debian 12 VM (curl iiab.io/fast.txt | bash -s 3535) failed:

TASK [kalite : Use pip to pin setuptools to 44 in /usr/local/kalite/venv] *******************************************************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "cmd": ["/usr/bin/virtualenv", "-ppython2.7", "/usr/local/kalite/venv"], "msg": "stdout: RuntimeError: failed to find interpreter for Builtin discover of python_spec='python2.7'\n"}

iiab-diagnostics:

http://sprunge.us/2JL9fG?en

@jvonau
Copy link
Contributor Author

jvonau commented Apr 12, 2023

apt list *python2* as a start. Can you preform the same steps from #3527 (comment). Was working with the explicit listed dependencies used in 3527 and not the repo. I think it might be a key issue but need to see the log

@holta
Copy link
Member

holta commented Apr 12, 2023

apt list *python2* as a start

root@box:~# apt list *python2*
Listing... Done
root@box:~# wc /var/log/apt/history.log
   85  1394 19692 /var/log/apt/history.log
root@box:~# cat /var/log/apt/history.log

Start-Date: 2023-04-11  18:24:23
Commandline: apt dist-upgrade -y
Upgrade: libext2fs2:amd64 (1.46.6-1, 1.47.0-2), python3-minimal:amd64 (3.11.2-1, 3.11.2-1+b1), python3:amd64 (3.11.2-1, 3.11.2-1+b1), libcom-err2:amd64 (1.46.6-1, 1.47.0-2), libpython3-stdlib:amd64 (3.11.2-1, 3.11.2-1+b1), logsave:amd64 (1.46.6-1, 1.47.0-2), libss2:amd64 (1.46.6-1, 1.47.0-2), e2fsprogs:amd64 (1.46.6-1, 1.47.0-2)
End-Date: 2023-04-11  18:24:38

Start-Date: 2023-04-11  18:24:45
Commandline: apt install emacs -y
Install: emacs:amd64 (1:28.2+1-13), fontconfig:amd64 (2.14.1-4, automatic), libm17n-0:amd64 (1.8.0-6, automatic), libcups2:amd64 (2.4.2-2, automatic), libmailutils9:amd64 (1:3.15-4, automatic), libgomp1:amd64 (12.2.0-14, automatic), manpages-dev:amd64 (6.03-1, automatic), libltdl7:amd64 (2.4.7-5, automatic), libgdk-pixbuf2.0-bin:amd64 (2.42.10+dfsg-1+b1, automatic), libidn12:amd64 (1.41-1, automatic), libdatrie1:amd64 (0.2.13-2+b1, automatic), libthai0:amd64 (0.1.29-1, automatic), libctf-nobfd0:amd64 (2.40-2, automatic), libtsan2:amd64 (12.2.0-14, automatic), xkb-data:amd64 (2.35.1-1, automatic), libxrender1:amd64 (1:0.9.10-1.1, automatic), dbus-user-session:amd64 (1.14.6-1, automatic), hicolor-icon-theme:amd64 (0.17-2, automatic), gsasl-common:amd64 (2.2.0-1, automatic), libpango-1.0-0:amd64 (1.50.12+ds-1, automatic), libgccjit0:amd64 (12.2.0-14, automatic), libntlm0:amd64 (1.6-4, automatic), libwayland-cursor0:amd64 (1.21.0-1, automatic), libaom3:amd64 (3.6.0-1, automatic), libavahi-common-data:amd64 (0.8-9, automatic), libheif1:amd64 (1.15.1-1, automatic), libcolord2:amd64 (1.4.6-2.2, automatic), libx265-199:amd64 (3.5-2+b1, automatic), libcairo2:amd64 (1.16.0-7, automatic), libxcursor1:amd64 (1:1.2.1-1, automatic), libbinutils:amd64 (2.40-2, automatic), mysql-common:amd64 (5.8+1.1.0, automatic), at-spi2-core:amd64 (2.46.0-5, automatic), libdeflate0:amd64 (1.14-1, automatic), libatk-bridge2.0-0:amd64 (2.46.0-5, automatic), libgif7:amd64 (5.2.1-2.5, automatic), x11-common:amd64 (1:7.7+23, automatic), alsa-ucm-conf:amd64 (1.2.8-1, automatic), libdav1d6:amd64 (1.0.0-2, automatic), libjansson4:amd64 (2.14-2, automatic), libfribidi0:amd64 (1.0.8-2.1, automatic), adwaita-icon-theme:amd64 (43-1, automatic), mailutils:amd64 (1:3.15-4, automatic), libtiff6:amd64 (4.5.0-5, automatic), libpixman-1-0:amd64 (0.42.2-1, automatic), emacs-gtk:amd64 (1:28.2+1-13, automatic), binutils-x86-64-linux-gnu:amd64 (2.40-2, automatic), libxau6:amd64 (1:1.0.9-1, automatic), emacsen-common:amd64 (3.0.5, automatic), libxcb1:amd64 (1.15-1, automatic), install-info:amd64 (6.8-6+b1, automatic), librsvg2-common:amd64 (2.54.5+dfsg-1, automatic), libxcomposite1:amd64 (1:0.4.5-1, automatic), libsvtav1enc1:amd64 (1.4.1+dfsg-1, automatic), libxft2:amd64 (2.3.6-1, automatic), libxdamage1:amd64 (1:1.1.6-1, automatic), exim4-config:amd64 (4.96-14, automatic), libgdk-pixbuf-2.0-0:amd64 (2.42.10+dfsg-1+b1, automatic), libmpfr6:amd64 (4.2.0-1, automatic), libcairo-gobject2:amd64 (1.16.0-7, automatic), liblerc4:amd64 (4.0.0+ds-2, automatic), libmpc3:amd64 (1.3.1-1, automatic), libgraphite2-3:amd64 (1.3.14-1, automatic), libdconf1:amd64 (0.40.0-4, automatic), libxpm4:amd64 (1:3.5.12-1.1, automatic), libfontconfig1:amd64 (2.14.1-4, automatic), libasound2:amd64 (1.2.8-1+b1, automatic), libgav1-1:amd64 (0.18.0-1+b1, automatic), shared-mime-info:amd64 (2.2-1, automatic), exim4-base:amd64 (4.96-14, automatic), libxrandr2:amd64 (2:1.5.2-2+b1, automatic), fontconfig-config:amd64 (2.14.1-4, automatic), libx11-data:amd64 (2:1.8.4-2, automatic), libgsasl18:amd64 (2.2.0-1, automatic), libasan8:amd64 (12.2.0-14, automatic), libpangocairo-1.0-0:amd64 (1.50.12+ds-1, automatic), libxkbcommon0:amd64 (1.5.0-1, automatic), libnsl-dev:amd64 (1.3.0-2, automatic), libxtst6:amd64 (2:1.2.3-1.1, automatic), libatk1.0-0:amd64 (2.46.0-5, automatic), libpython3.11:amd64 (3.11.2-6, automatic), libxcb-render0:amd64 (1.15-1, automatic), rpcsvc-proto:amd64 (1.4.3-1, automatic), libjpeg62-turbo:amd64 (1:2.1.5-2, automatic), gsettings-desktop-schemas:amd64 (43.0-1, automatic), libatspi2.0-0:amd64 (2.46.0-5, automatic), libctf0:amd64 (2.40-2, automatic), libice6:amd64 (2:1.0.10-1, automatic), libpangoft2-1.0-0:amd64 (1.50.12+ds-1, automatic), mailutils-common:amd64 (1:3.15-4, automatic), libyuv0:amd64 (0.0~git20230123.b2528b0-1, automatic), libevent-2.1-7:amd64 (2.1.12-stable-8, automatic), libwebp7:amd64 (1.2.4-0.1, automatic), libunbound8:amd64 (1.17.1-1, automatic), libcrypt-dev:amd64 (1:4.4.33-2, automatic), libasound2-data:amd64 (1.2.8-1, automatic), mariadb-common:amd64 (1:10.11.2-1, automatic), libthai-data:amd64 (0.1.29-1, automatic), libavahi-common3:amd64 (0.8-9, automatic), binutils-common:amd64 (2.40-2, automatic), alsa-topology-conf:amd64 (1.2.5.1-2, automatic), librsvg2-2:amd64 (2.54.5+dfsg-1, automatic), libabsl20220623:amd64 (20220623.1-1, automatic), libitm1:amd64 (12.2.0-14, automatic), libgssglue1:amd64 (0.7-1.1, automatic), guile-3.0-libs:amd64 (3.0.8-2, automatic), fonts-noto-color-emoji:amd64 (2.038-1, automatic), libavif15:amd64 (0.11.1-1, automatic), libxinerama1:amd64 (2:1.1.4-3, automatic), libjbig0:amd64 (2.1-6.1, automatic), libwayland-egl1:amd64 (1.21.0-1, automatic), libc-dev-bin:amd64 (2.36-8, automatic), m17n-db:amd64 (1.8.0-5, automatic), emacs-el:amd64 (1:28.2+1-13, automatic), libgtk-3-0:amd64 (3.24.37-2, automatic), dconf-gsettings-backend:amd64 (0.40.0-4, automatic), libmariadb3:amd64 (1:10.11.2-1, automatic), libc-devtools:amd64 (2.36-8, automatic), libotf1:amd64 (0.9.16-4, automatic), exim4-daemon-light:amd64 (4.96-14, automatic), gtk-update-icon-cache:amd64 (3.24.37-2, automatic), libgprofng0:amd64 (2.40-2, automatic), libxext6:amd64 (2:1.3.4-1+b1, automatic), libgtk-3-common:amd64 (3.24.37-2, automatic), libisl23:amd64 (0.25-1, automatic), libc6-dev:amd64 (2.36-8, automatic), libharfbuzz0b:amd64 (6.0.0+dfsg-3, automatic), libquadmath0:amd64 (12.2.0-14, automatic), fonts-dejavu-core:amd64 (2.37-6, automatic), libgtk-3-bin:amd64 (3.24.37-2, automatic), libubsan1:amd64 (12.2.0-14, automatic), liblsan0:amd64 (12.2.0-14, automatic), libxcb-shm0:amd64 (1.15-1, automatic), dconf-service:amd64 (0.40.0-4, automatic), libgc1:amd64 (1:8.2.2-3, automatic), libgd3:amd64 (2.3.3-9, automatic), libx11-6:amd64 (2:1.8.4-2, automatic), libwayland-client0:amd64 (1.21.0-1, automatic), liblcms2-2:amd64 (2.14-2, automatic), emacs-common:amd64 (1:28.2+1-13, automatic), libde265-0:amd64 (1.0.11-1, automatic), libepoxy0:amd64 (1.5.10-1, automatic), libpq5:amd64 (15.2-2, automatic), at-spi2-common:amd64 (2.46.0-5, automatic), libavahi-client3:amd64 (0.8-9, automatic), libgnutls-dane0:amd64 (3.7.9-1, automatic), libsm6:amd64 (2:1.2.3-1, automatic), libtirpc-dev:amd64 (1.3.3+ds-1, automatic), librav1e0:amd64 (0.5.1-6, automatic), binutils:amd64 (2.40-2, automatic), libxfixes3:amd64 (1:6.0.0-2, automatic), libxdmcp6:amd64 (1:1.1.2-3, automatic), libatomic1:amd64 (12.2.0-14, automatic), libncurses6:amd64 (6.4-2, automatic), libxi6:amd64 (2:1.8-1+b1, automatic), emacs-bin-common:amd64 (1:28.2+1-13, automatic), libxt6:amd64 (1:1.2.1-1.1, automatic), libgcc-12-dev:amd64 (12.2.0-14, automatic), linux-libc-dev:amd64 (6.1.20-1, automatic), libgdk-pixbuf2.0-common:amd64 (2.42.10+dfsg-1, automatic)
End-Date: 2023-04-11  18:26:01

Start-Date: 2023-04-11  18:28:43
Commandline: /usr/bin/apt -y install git
Install: git:amd64 (1:2.39.2-1.1), patch:amd64 (2.7.6-7, automatic), liberror-perl:amd64 (0.17029-2, automatic), git-man:amd64 (1:2.39.2-1.1, automatic)
End-Date: 2023-04-11  18:28:46

Start-Date: 2023-04-11  18:28:50
Commandline: /usr/bin/apt -y install jq
Install: libonig5:amd64 (6.9.8-1, automatic), jq:amd64 (1.6-2.1), libjq1:amd64 (1.6-2.1, automatic)
End-Date: 2023-04-11  18:28:52

Start-Date: 2023-04-11  18:28:55
Commandline: /usr/bin/apt -y install python3-venv
Install: python3-setuptools-whl:amd64 (66.1.1-1, automatic), python3-lib2to3:amd64 (3.11.2-2, automatic), python3-venv:amd64 (3.11.2-1+b1), python3-pip-whl:amd64 (23.0.1+dfsg-1, automatic), python3.11-venv:amd64 (3.11.2-6, automatic), python3-distutils:amd64 (3.11.2-2, automatic)
End-Date: 2023-04-11  18:28:57

Start-Date: 2023-04-11  18:30:05
Commandline: /usr/bin/apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install ncat=7.93+dfsg1-1 nmap=7.93+dfsg1-1 openvpn=2.6.0-1
Install: openvpn:amd64 (2.6.0-1), easy-rsa:amd64 (3.1.0-0.2, automatic), libnl-3-200:amd64 (3.7.0-0.2+b1, automatic), libnl-genl-3-200:amd64 (3.7.0-0.2+b1, automatic), libpcre3:amd64 (2:8.39-15, automatic), liblzo2-2:amd64 (2.10-2, automatic), nmap-common:amd64 (7.93+dfsg1-1, automatic), libblas3:amd64 (3.11.0-2, automatic), liblua5.3-0:amd64 (5.3.6-2, automatic), lua-lpeg:amd64 (1.0.2-2, automatic), libccid:amd64 (1.5.2-1, automatic), libpcsclite1:amd64 (1.9.9-1, automatic), libusb-1.0-0:amd64 (2:1.0.26-1, automatic), pcscd:amd64 (1.9.9-1, automatic), libpkcs11-helper1:amd64 (1.29.0-1, automatic), ncat:amd64 (7.93+dfsg1-1), nmap:amd64 (7.93+dfsg1-1), opensc:amd64 (0.23.0-0.2, automatic), opensc-pkcs11:amd64 (0.23.0-0.2, automatic), liblinear4:amd64 (2.3.0+dfsg-5, automatic)
End-Date: 2023-04-11  18:30:14

Start-Date: 2023-04-11  18:30:25
Commandline: apt-get install -y apt-transport-https jq
Install: apt-transport-https:amd64 (2.6.0)
End-Date: 2023-04-11  18:30:25

Start-Date: 2023-04-11  18:30:26
Commandline: apt-get install -y /tmp/remoteit.deb
Install: remoteit:amd64 (4.17.8)
End-Date: 2023-04-11  18:30:30

Start-Date: 2023-04-11  18:30:37
Commandline: /usr/bin/apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install lynx=2.9.0dev.12-1
Install: bzip2:amd64 (1.0.8-5+b1, automatic), lynx:amd64 (2.9.0dev.12-1), mailcap:amd64 (3.70+nmu1, automatic), lynx-common:amd64 (2.9.0dev.12-1, automatic)
End-Date: 2023-04-11  18:30:39

Start-Date: 2023-04-11  18:30:45
Commandline: /usr/bin/apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install dnsmasq=2.89-1
Install: dnsmasq:amd64 (2.89-1), libnftables1:amd64 (1.0.6-2, automatic), dnsmasq-base:amd64 (2.89-1, automatic), dns-root-data:amd64 (2023010101, automatic)
End-Date: 2023-04-11  18:30:48

Start-Date: 2023-04-11  18:30:53
Commandline: /usr/bin/apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install avahi-daemon=0.8-9 hostapd=2:2.10-12 iptables-persistent=1.0.19 iw=5.19-1 libnss-mdns=0.15.1-3 netmask=2.4.4-3 net-tools=2.10-0.1 networkd-dispatcher=2.2.3-1 rfkill=2.38.1-5+b1 wireless-tools=30~pre9-14 wpasupplicant=2:2.10-12
Install: networkd-dispatcher:amd64 (2.2.3-1), python3-gi:amd64 (3.42.2-3+b1, automatic), netmask:amd64 (2.4.4-3), wpasupplicant:amd64 (2:2.10-12), libnl-route-3-200:amd64 (3.7.0-0.2+b1, automatic), gir1.2-glib-2.0:amd64 (1.74.0-3, automatic), libavahi-core7:amd64 (0.8-9, automatic), wireless-tools:amd64 (30~pre9-14), avahi-daemon:amd64 (0.8-9), wireless-regdb:amd64 (2022.06.06-1, automatic), iptables-persistent:amd64 (1.0.19), libgirepository-1.0-1:amd64 (1.74.0-3, automatic), net-tools:amd64 (2.10-0.1), netfilter-persistent:amd64 (1.0.19, automatic), libiw30:amd64 (30~pre9-14, automatic), rfkill:amd64 (2.38.1-5+b1), libdaemon0:amd64 (0.14-7.1, automatic), iw:amd64 (5.19-1), hostapd:amd64 (2:2.10-12), libnss-mdns:amd64 (0.15.1-3)
End-Date: 2023-04-11  18:31:03

Start-Date: 2023-04-11  18:31:12
Commandline: /usr/bin/apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install parted=3.5-3
Install: dmidecode:amd64 (3.4-1, automatic), parted:amd64 (3.5-3), libparted2:amd64 (3.5-3, automatic)
End-Date: 2023-04-11  18:31:14

Start-Date: 2023-04-11  18:31:22
Commandline: /usr/bin/apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install acpid=1:2.0.33-2+b1 cron=3.0pl1-162 gawk=1:5.2.1-2 htop=3.2.2-2 i2c-tools=4.3-2+b3 logrotate=3.21.0-1 plocate=1.1.18-1 pandoc=2.17.1.1-1.1 pastebinit=1.6.2-1 rsync=3.2.7-1 sqlite3=3.40.1-2 unzip=6.0-28 usbutils=1:014-1
Install: pastebinit:amd64 (1.6.2-1), acpid:amd64 (1:2.0.33-2+b1), libx86-1:amd64 (1.1+ds1-12, automatic), i2c-tools:amd64 (4.3-2+b3), python3-distro:amd64 (1.8.0-1, automatic), libsigsegv2:amd64 (2.14-1, automatic), pandoc-data:amd64 (2.17.1.1-1.1, automatic), libi2c0:amd64 (4.3-2+b3, automatic), logrotate:amd64 (3.21.0-1), gawk:amd64 (1:5.2.1-2), usbutils:amd64 (1:014-1), plocate:amd64 (1.1.18-1), rsync:amd64 (3.2.7-1), htop:amd64 (3.2.2-2), cron-daemon-common:amd64 (3.0pl1-162, automatic), cron:amd64 (3.0pl1-162), unzip:amd64 (6.0-28), acpi-support-base:amd64 (0.143-5.1, automatic), sqlite3:amd64 (3.40.1-2), read-edid:amd64 (3.0.2-1.1, automatic), pandoc:amd64 (2.17.1.1-1.1)
End-Date: 2023-04-11  18:31:35

Start-Date: 2023-04-11  18:31:41
Commandline: /usr/bin/apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install mariadb-server=1:10.11.2-1 mariadb-client=1:10.11.2-1 php8.2-mysql=8.2.4-1 python3-pymysql=1.0.2-2
Install: libtimedate-perl:amd64 (2.3300-2, automatic), libhtml-tagset-perl:amd64 (3.20-6, automatic), mariadb-plugin-provider-bzip2:amd64 (1:10.11.2-1, automatic), mariadb-server:amd64 (1:10.11.2-1), php8.2-mysql:amd64 (8.2.4-1), libdbi-perl:amd64 (1.643-4, automatic), libfcgi-perl:amd64 (0.82+ds-2, automatic), mariadb-client-core:amd64 (1:10.11.2-1, automatic), libdbd-mariadb-perl:amd64 (1.22-1+b1, automatic), galera-4:amd64 (26.4.13-1, automatic), php-common:amd64 (2:93, automatic), libencode-locale-perl:amd64 (1.05-3, automatic), mariadb-plugin-provider-lzma:amd64 (1:10.11.2-1, automatic), mariadb-server-core:amd64 (1:10.11.2-1, automatic), liblwp-mediatypes-perl:amd64 (6.04-2, automatic), libregexp-ipv6-perl:amd64 (0.03-3, automatic), libhtml-template-perl:amd64 (2.97-2, automatic), liburi-perl:amd64 (5.17-1, automatic), lsof:amd64 (4.95.0-1, automatic), libfcgi0ldbl:amd64 (2.4.2-2, automatic), libio-html-perl:amd64 (1.004-3, automatic), libsnappy1v5:amd64 (1.1.9-3, automatic), libdaxctl1:amd64 (76.1-1, automatic), libterm-readkey-perl:amd64 (2.38-2+b1, automatic), libhttp-date-perl:amd64 (6.05-2, automatic), mariadb-plugin-provider-snappy:amd64 (1:10.11.2-1, automatic), libhtml-parser-perl:amd64 (3.81-1, automatic), libcgi-fast-perl:amd64 (1:2.15-1, automatic), libconfig-inifiles-perl:amd64 (3.000003-2, automatic), libndctl6:amd64 (76.1-1, automatic), mariadb-client:amd64 (1:10.11.2-1), libclone-perl:amd64 (0.46-1, automatic), mariadb-plugin-provider-lz4:amd64 (1:10.11.2-1, automatic), mariadb-plugin-provider-lzo:amd64 (1:10.11.2-1, automatic), python3-pymysql:amd64 (1.0.2-2), pv:amd64 (1.6.20-1, automatic), libhttp-message-perl:amd64 (6.44-1, automatic), libfcgi-bin:amd64 (2.4.2-2, automatic), libcgi-pm-perl:amd64 (4.55-1, automatic), php8.2-common:amd64 (8.2.4-1, automatic), libpmem1:amd64 (1.12.1-2, automatic)
End-Date: 2023-04-11  18:32:08

Start-Date: 2023-04-11  18:32:17
Commandline: /usr/bin/apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install libnginx-mod-http-subs-filter=1:0.6.4-4 nginx-extras=1.22.1-9 php8.2-fpm=8.2.4-1 uwsgi=2.0.21-5 uwsgi-plugin-python3=2.0.21-5
Install: libnginx-mod-http-image-filter:amd64 (1.22.1-9, automatic), libyajl2:amd64 (2.1.0-3, automatic), libnginx-mod-stream-geoip2:amd64 (1:3.4-3, automatic), libnginx-mod-http-uploadprogress:amd64 (1:0.9.2-3, automatic), libnginx-mod-http-geoip2:amd64 (1:3.4-3, automatic), libluajit2-5.1-2:amd64 (2.1-20230119-1, automatic), libnginx-mod-http-lua:amd64 (1:0.10.23-1, automatic), uwsgi-core:amd64 (2.0.21-5, automatic), libnginx-mod-http-ndk:amd64 (1:0.3.2-3, automatic), libpgm-5.3-0:amd64 (5.3.128~dfsg-2, automatic), libnginx-mod-http-fancyindex:amd64 (1:0.5.2-3, automatic), nginx:amd64 (1.22.1-9, automatic), nginx-common:amd64 (1.22.1-9, automatic), libnginx-mod-stream-geoip:amd64 (1.22.1-9, automatic), libnorm1:amd64 (1.5.9+dfsg-2, automatic), libnginx-mod-http-geoip:amd64 (1.22.1-9, automatic), libnginx-mod-http-cache-purge:amd64 (1:2.3-4, automatic), libnginx-mod-http-auth-pam:amd64 (1:1.5.3-3, automatic), php8.2-opcache:amd64 (8.2.4-1, automatic), libnginx-mod-http-xslt-filter:amd64 (1.22.1-9, automatic), uwsgi:amd64 (2.0.21-5), php8.2-readline:amd64 (8.2.4-1, automatic), libnginx-mod-nchan:amd64 (1:1.3.6+dfsg-2, automatic), libnginx-mod-http-subs-filter:amd64 (1:0.6.4-4), libnginx-mod-http-dav-ext:amd64 (1:3.0.0-3, automatic), libgeoip1:amd64 (1.6.12-10, automatic), uwsgi-plugin-python3:amd64 (2.0.21-5), geoip-database:amd64 (20230203-1, automatic), libnginx-mod-mail:amd64 (1.22.1-9, automatic), libxslt1.1:amd64 (1.1.35-1, automatic), lua-resty-lrucache:amd64 (0.13-10, automatic), libzmq5:amd64 (4.3.4-6, automatic), libnginx-mod-http-echo:amd64 (1:0.63-4, automatic), libnginx-mod-http-perl:amd64 (1.22.1-9, automatic), libnginx-mod-http-upstream-fair:amd64 (1:0.0~git20120408.a18b409-3, automatic), libnginx-mod-http-headers-more-filter:amd64 (1:0.34-3, automatic), php8.2-cli:amd64 (8.2.4-1, automatic), libnginx-mod-stream:amd64 (1.22.1-9, automatic), lua-resty-core:amd64 (0.1.25-1, automatic), php8.2-fpm:amd64 (8.2.4-1), nginx-extras:amd64 (1.22.1-9), libluajit2-5.1-common:amd64 (2.1-20230119-1, automatic)
End-Date: 2023-04-11  18:32:38

Start-Date: 2023-04-11  18:33:07
Commandline: /usr/bin/apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install lockfile-progs=0.1.19
Install: liblockfile-bin:amd64 (1.17-1+b1, automatic), lockfile-progs:amd64 (0.1.19), liblockfile1:amd64 (1.17-1+b1, automatic)
End-Date: 2023-04-11  18:33:09

Start-Date: 2023-04-11  18:33:53
Commandline: apt -y install virtualenv
Install: libalgorithm-merge-perl:amd64 (0.08-5, automatic), g++-12:amd64 (12.2.0-14, automatic), virtualenv:amd64 (20.17.1+ds-1), gcc-12:amd64 (12.2.0-14, automatic), build-essential:amd64 (12.9, automatic), cpp:amd64 (4:12.2.0-3, automatic), libpython3-dev:amd64 (3.11.2-1+b1, automatic), g++:amd64 (4:12.2.0-3, automatic), gcc:amd64 (4:12.2.0-3, automatic), gpg:amd64 (2.2.40-1.1, automatic), libalgorithm-diff-perl:amd64 (1.201-1, automatic), libfakeroot:amd64 (1.31-1.2, automatic), python3-virtualenv:amd64 (20.17.1+ds-1, automatic), python3-wheel-whl:amd64 (0.38.4-1, automatic), gnupg:amd64 (2.2.40-1.1, automatic), libcc1-0:amd64 (12.2.0-14, automatic), zlib1g-dev:amd64 (1:1.2.13.dfsg-1, automatic), gpg-wks-server:amd64 (2.2.40-1.1, automatic), gpg-agent:amd64 (2.2.40-1.1, automatic), liblocale-gettext-perl:amd64 (1.07-5, automatic), libassuan0:amd64 (2.5.5-5, automatic), libnpth0:amd64 (1.6-3, automatic), libfile-fcntllock-perl:amd64 (0.22-4+b1, automatic), python3-platformdirs:amd64 (2.6.0-1, automatic), dpkg-dev:amd64 (1.21.21, automatic), make:amd64 (4.3-4.1, automatic), python3-dev:amd64 (3.11.2-1+b1, automatic), pinentry-curses:amd64 (1.2.1-1, automatic), gpgsm:amd64 (2.2.40-1.1, automatic), python3-distlib:amd64 (0.3.6-1, automatic), cpp-12:amd64 (12.2.0-14, automatic), libpython3.11-dev:amd64 (3.11.2-6, automatic), libdpkg-perl:amd64 (1.21.21, automatic), python3-filelock:amd64 (3.9.0-1, automatic), python3.11-dev:amd64 (3.11.2-6, automatic), dirmngr:amd64 (2.2.40-1.1, automatic), libksba8:amd64 (1.6.3-2, automatic), libjs-jquery:amd64 (3.6.1+dfsg+~3.5.14-1, automatic), gnupg-utils:amd64 (2.2.40-1.1, automatic), libexpat1-dev:amd64 (2.5.0-1, automatic), libalgorithm-diff-xs-perl:amd64 (0.04-8+b1, automatic), gnupg-l10n:amd64 (2.2.40-1.1, automatic), gpg-wks-client:amd64 (2.2.40-1.1, automatic), libjs-sphinxdoc:amd64 (5.3.0-4, automatic), javascript-common:amd64 (11+nmu1, automatic), libjs-underscore:amd64 (1.13.4~dfsg+~1.11.4-3, automatic), gpgconf:amd64 (2.2.40-1.1, automatic), fakeroot:amd64 (1.31-1.2, automatic), libstdc++-12-dev:amd64 (12.2.0-14, automatic)
End-Date: 2023-04-11  18:34:11

@holta
Copy link
Member

holta commented Apr 12, 2023

root@box:~# /opt/iiab/iiab/scripts/install_python2.sh > ~/py2.log

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.


WARNING: apt does not have a stable CLI interface. Use with caution in scripts.


WARNING: apt does not have a stable CLI interface. Use with caution in scripts.


WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

W: GPG error: http://ports.ubuntu.com jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
W: GPG error: http://ports.ubuntu.com jammy-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
E: Failed to fetch http://ports.ubuntu.com/dists/jammy/main/binary-amd64/Packages  404  Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://ports.ubuntu.com/dists/jammy-updates/main/binary-amd64/Packages  404  Not Found [IP: 185.125.190.36 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

E: Package 'python2' has no installation candidate

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
root@box:~# wc py2.log
  75  383 3929 py2.log
root@box:~# cat py2.log
Reading package lists...
Building dependency tree...
Reading state information...
virtualenv is already the newest version (20.17.1+ds-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
media-types is already the newest version (10.0.0).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
libffi8 is already the newest version (3.4.4-1).
libssl3 is already the newest version (3.0.8-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Get:1 file:/etc/apt/mirrors/debian.list Mirrorlist [30 B]
Get:2 file:/etc/apt/mirrors/debian-security.list Mirrorlist [39 B]
Get:7 http://ports.ubuntu.com jammy InRelease [270 kB]
Hit:3 https://deb.debian.org/debian bookworm InRelease
Hit:4 https://deb.debian.org/debian bookworm-updates InRelease
Hit:5 https://deb.debian.org/debian bookworm-backports InRelease
Get:8 http://ports.ubuntu.com jammy-updates InRelease [119 kB]
Ign:7 http://ports.ubuntu.com jammy InRelease
Hit:6 https://deb.debian.org/debian-security bookworm-security InRelease
Ign:9 http://ports.ubuntu.com jammy/main amd64 Packages
Get:10 http://ports.ubuntu.com jammy/main Translation-en [510 kB]
Ign:8 http://ports.ubuntu.com jammy-updates InRelease
Ign:11 http://ports.ubuntu.com jammy/universe amd64 Packages
Get:12 http://ports.ubuntu.com jammy/universe Translation-en [5652 kB]
Ign:9 http://ports.ubuntu.com jammy/main amd64 Packages
Ign:13 http://ports.ubuntu.com jammy-updates/main amd64 Packages
Get:14 http://ports.ubuntu.com jammy-updates/main Translation-en [211 kB]
Ign:15 http://ports.ubuntu.com jammy-updates/universe amd64 Packages
Get:16 http://ports.ubuntu.com jammy-updates/universe Translation-en [180 kB]
Ign:11 http://ports.ubuntu.com jammy/universe amd64 Packages
Ign:9 http://ports.ubuntu.com jammy/main amd64 Packages
Ign:13 http://ports.ubuntu.com jammy-updates/main amd64 Packages
Ign:15 http://ports.ubuntu.com jammy-updates/universe amd64 Packages
Ign:11 http://ports.ubuntu.com jammy/universe amd64 Packages
Ign:9 http://ports.ubuntu.com jammy/main amd64 Packages
Ign:13 http://ports.ubuntu.com jammy-updates/main amd64 Packages
Ign:15 http://ports.ubuntu.com jammy-updates/universe amd64 Packages
Ign:11 http://ports.ubuntu.com jammy/universe amd64 Packages
Ign:9 http://ports.ubuntu.com jammy/main amd64 Packages
Ign:13 http://ports.ubuntu.com jammy-updates/main amd64 Packages
Ign:15 http://ports.ubuntu.com jammy-updates/universe amd64 Packages
Ign:11 http://ports.ubuntu.com jammy/universe amd64 Packages
Err:9 http://ports.ubuntu.com jammy/main amd64 Packages
  404  Not Found [IP: 185.125.190.36 80]
Ign:13 http://ports.ubuntu.com jammy-updates/main amd64 Packages
Ign:15 http://ports.ubuntu.com jammy-updates/universe amd64 Packages
Ign:11 http://ports.ubuntu.com jammy/universe amd64 Packages
Err:13 http://ports.ubuntu.com jammy-updates/main amd64 Packages
  404  Not Found [IP: 185.125.190.36 80]
Ign:15 http://ports.ubuntu.com jammy-updates/universe amd64 Packages
Fetched 6942 kB in 2s (2799 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Package python2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Get:1 file:/etc/apt/mirrors/debian.list Mirrorlist [30 B]
Get:5 file:/etc/apt/mirrors/debian-security.list Mirrorlist [39 B]
Hit:2 https://deb.debian.org/debian bookworm InRelease
Hit:3 https://deb.debian.org/debian bookworm-updates InRelease
Hit:4 https://deb.debian.org/debian bookworm-backports InRelease
Hit:6 https://deb.debian.org/debian-security bookworm-security InRelease
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.

@holta
Copy link
Member

holta commented Apr 12, 2023

root@box:~# apt list ubuntu-keyring
Listing... Done
root@box:~# apt info ubuntu-keyring
Package: ubuntu-keyring
State: not a real package (virtual)
N: Can't select candidate version from package ubuntu-keyring as it has no candidate
N: Can't select versions from package 'ubuntu-keyring' as it is purely virtual
N: No packages found

@holta
Copy link
Member

holta commented Apr 12, 2023

root@box:~# apt install ubuntu-keyring
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package ubuntu-keyring is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'ubuntu-keyring' has no installation candidate

@jvonau
Copy link
Contributor Author

jvonau commented Apr 12, 2023

Data point time, git pull and just run install_python2.sh by hand and report back

@jvonau
Copy link
Contributor Author

jvonau commented Apr 12, 2023

U2304arm64 http://sprunge.us/jEONDm installed

@jvonau
Copy link
Contributor Author

jvonau commented Apr 12, 2023

U2304 amd64 VM

ubuntu@test-2304-220227:/opt/iiab/iiab$ sudo scripts/install_python2.sh 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
virtualenv is already the newest version (20.19.0+ds-1).
The following packages were automatically installed and are no longer required:
  libicu71 libmpdec3 python3-magic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
media-types is already the newest version (10.0.0).
media-types set to manually installed.
libffi8 is already the newest version (3.4.4-1).
libssl3 is already the newest version (3.0.8-1ubuntu1).
libssl3 set to manually installed.
The following packages were automatically installed and are no longer required:
  libicu71 libmpdec3 python3-magic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Get:1 http://security.ubuntu.com/ubuntu lunar-security InRelease [90.7 kB]                                                    
Get:2 http://archive.ubuntu.com/ubuntu lunar InRelease [267 kB]                                                               
Ign:3 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 InRelease                
Hit:4 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 Release                  
Hit:6 http://archive.ubuntu.com/ubuntu lunar-updates InRelease       
Hit:7 http://archive.ubuntu.com/ubuntu lunar-backports InRelease
Hit:8 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:9 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:10 http://archive.ubuntu.com/ubuntu lunar/main amd64 Packages [1395 kB]
Get:11 http://archive.ubuntu.com/ubuntu lunar/main amd64 c-n-f Metadata [29.9 kB]
Get:12 http://archive.ubuntu.com/ubuntu lunar/universe amd64 Packages [15.1 MB]
Get:13 http://archive.ubuntu.com/ubuntu lunar/universe amd64 c-n-f Metadata [303 kB]
Fetched 17.3 MB in 4s (4837 kB/s)                                
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libicu71 libmpdec3 python3-magic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libpython2-stdlib python2-minimal
Suggested packages:
  python2-doc python-tk
The following NEW packages will be installed:
  libpython2-stdlib python2 python2-minimal
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 37.4 kB of archives.
After this operation, 217 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 python2-minimal amd64 2.7.18-3 [20.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libpython2-stdlib amd64 2.7.18-3 [7432 B]
Get:3 http://archive.ubuntu.com/ubuntu jammy/universe amd64 python2 amd64 2.7.18-3 [9098 B]
Fetched 37.4 kB in 0s (165 kB/s) 
Selecting previously unselected package python2-minimal.
(Reading database ... 137281 files and directories currently installed.)
Preparing to unpack .../python2-minimal_2.7.18-3_amd64.deb ...
Unpacking python2-minimal (2.7.18-3) ...
Selecting previously unselected package libpython2-stdlib:amd64.
Preparing to unpack .../libpython2-stdlib_2.7.18-3_amd64.deb ...
Unpacking libpython2-stdlib:amd64 (2.7.18-3) ...
Setting up python2-minimal (2.7.18-3) ...
Selecting previously unselected package python2.
(Reading database ... 137307 files and directories currently installed.)
Preparing to unpack .../python2_2.7.18-3_amd64.deb ...
Unpacking python2 (2.7.18-3) ...
Setting up libpython2-stdlib:amd64 (2.7.18-3) ...
Setting up python2 (2.7.18-3) ...
Processing triggers for man-db (2.11.2-1) ...
Scanning processes...                                                                                                          
Scanning processor microcode...                                                                                                
Scanning linux images...                                                                                                       

Pending kernel upgrade!

Running kernel version:
  6.2.0-19-generic

Diagnostics:
  The currently running kernel version is not the expected kernel version 6.2.0-20-generic.

Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting. [Return]

Failed to check for processor microcode upgrades.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
Hit:1 http://archive.ubuntu.com/ubuntu lunar InRelease
Hit:2 http://archive.ubuntu.com/ubuntu lunar-updates InRelease               
Ign:3 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 InRelease    
Hit:4 http://archive.ubuntu.com/ubuntu lunar-backports InRelease    
Get:5 http://security.ubuntu.com/ubuntu lunar-security InRelease [90.7 kB]
Hit:6 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 Release
Fetched 90.7 kB in 1s (109 kB/s)                          
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done

@jvonau
Copy link
Contributor Author

jvonau commented Apr 12, 2023

Looks like [trusted=yes] is failing

Think that was false I ran into the same 404 issues with the use of the 'ports' repo on amd64 this just might work on Debian-12 or we have to use a ubuntu gpg file somewhere.

@holta
Copy link
Member

holta commented Apr 12, 2023

Looks like [trusted=yes] is failing

Think that was false I ran into the same 404 issues with the use of the 'ports' repo on amd64 this just might work on Debian-12 or we have to use a ubuntu gpg file somewhere.

Interesting if it hopefully works out!

"Be aware that the [trusted=yes] config disables GPG signature verification for the repository, which does slightly break the security model of Apt (where repositories can be untrusted/HTTP-only as long as all packages are signed by trusted keys)."

If we believe:

"YESSS so happy there's now an [trusted=yes] apt install method"
https://news.ycombinator.com/item?id=23071610

Possibly related:

- name: Add mongodb.org signing key (only 64-bit available) for MongoDB version {{ mongodb_version }}
# https://www.mongodb.com/community/forums/t/installing-mongodb-over-ubuntu-22-04/159931/90
shell: wget -qO - https://www.mongodb.org/static/pgp/server-{{ mongodb_version }}.asc | gpg --dearmor > /usr/share/keyrings/mongodb.gpg
#shell: wget -qO - https://www.mongodb.org/static/pgp/server-{{ mongodb_version }}.asc | apt-key add -
#shell: wget -qO - https://pgp.mongodb.com/server-{{ mongodb_version }}.asc | apt-key add -
#args:
# warn: no
# Ansible 2.14 ERROR:
# "Unsupported parameters for (ansible.legacy.command) module: warn.
# Supported parameters include: removes, strip_empty_ends, _raw_params,
# _uses_shell, stdin_add_newline, creates, chdir, executable, argv, stdin."
# 2023-01-19: MongoDB only offers x86_64 for Debian, AND IN ANY CASE all their
# MongoDB 6.0's are ONLY COMPILED FOR ARM v8.2-A i.e. FAIL ON ARM v8-A RPi 4,
# LIKE THEIR MongoDB 5.0 tested 2022-06-07 ~137 lines below. Tested on Deb 11.
# -> DELETE THIS STANZA AFTER DEBIAN 12 IS SOLID -- USING UBUNTU REPO BELOW ?
- name: Install mongodb-org's Debian bullseye source/repo [ arch=amd64 ] for MongoDB version {{ mongodb_version }}, if x86_64 Debian < 12
apt_repository:
# 2020-10-28 and 2022-06-09: https://repo.mongodb.org/apt/debian/dists/
# supports only {Buster 10, Stretch 9, Jessie 8, Wheezy 7}. So Bullseye
# 11 and Bookworm 12 (testing branch) revert to buster for now:
# 2022-09-27: Changed from 'buster' to 'bullseye' (i.e. Debian 11) as
# this was recently added to https://repo.mongodb.org/apt/debian/dists/
repo: deb [ arch=amd64 signed-by=/usr/share/keyrings/mongodb.gpg ] https://repo.mongodb.org/apt/debian bullseye/mongodb-org/{{ mongodb_version }} main
#repo: deb https://repo.mongodb.org/apt/debian bullseye/mongodb-org/{{ mongodb_version }} main
#repo: deb https://repo.mongodb.org/apt/debian {{ ansible_distribution_release }}/mongodb-org/4.4 main
#filename: mongodb-org
when: is_debian and os_ver is version('debian-12', '<') and ansible_architecture == "x86_64"
- name: Install mongodb-org's Ubuntu jammy source/repo [ arch=amd64 ] for MongoDB version {{ mongodb_version }}, if other x86_64 OS
apt_repository:
repo: deb [ arch=amd64 signed-by=/usr/share/keyrings/mongodb.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/{{ mongodb_version }} multiverse
when: not (is_debian and os_ver is version('debian-12', '<')) and ansible_architecture == "x86_64"
# 2023-01-19: Tested on x86_64 VM's with Ubuntu 22.04 & Debian 12. Based on
# MongoDB 6.0.3 (released 2022-11-15) instructions here:
# https://www.mongodb.com/community/forums/t/installing-mongodb-over-ubuntu-22-04/159931/90
# WHEREAS 64-bit Raspberry Pi is likely NOT supported for now, as MongoDB 6.0
# IS ONLY COMPILED FOR ARM v8.2-A i.e. FAIL ON ARM v8-A RPi 4 (JUST LIKE THEIR
# MongoDB 5.0, tested 2022-06-07 ~116 lines below). Though MongoDB 6.0.3+ on
# 64-bit Ubuntu on Raspberry Pi hardware (MIGHT) hypothetically be possible:
# https://www.mongodb.com/developer/products/mongodb/mongodb-on-raspberry-pi/
# So IIAB overlays MongoDB 5.0.5 64-bit RPi binaries for now (~141 LINES BELOW!)
- name: Otherwise, install mongodb-org's Ubuntu focal source/repo [ arch=arm64 ] for MongoDB version {{ mongodb_version }}
apt_repository:
repo: deb [ arch=arm64 signed-by=/usr/share/keyrings/mongodb.gpg ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/{{ mongodb_version }} multiverse
#repo: deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb.gpg ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/{{ mongodb_version }} multiverse
#repo: deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/{{ mongodb_version }} multiverse
#filename: mongodb-org
when: not ansible_architecture == "x86_64"

- name: Yarn | Download apt key to /usr/share/keyrings/yarn.gpg
shell: curl https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarn.gpg
- name: Yarn | Add signed Yarn PPA to /etc/apt/sources.list.d/dl_yarnpkg_com_debian.list
apt_repository:
repo: "deb [signed-by=/usr/share/keyrings/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main"
#filename: yarn # If legacy filename yarn.list is preferred

@holta
Copy link
Member

holta commented Apr 12, 2023

Data point time, git pull and just run install_python2.sh by hand and report back

root@box:~# /opt/iiab/iiab/scripts/install_python2.sh > ~/py2b.log�

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.


WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

W: GPG error: http://archive.ubuntu.com/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key i
s not available: NO_PUBKEY 871920D1991BC93C
W: GPG error: http://archive.ubuntu.com/ubuntu jammy-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.


WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
root@box:~# wc py2b.log
  92  667 6574 py2b.log
root@box:~# apt list *python2*
Listing... Done
libpython2-stdlib/now 2.7.18-3 amd64 [installed,local]
libpython2.7-minimal/now 2.7.18-13ubuntu1.1 amd64 [installed,local]
libpython2.7-stdlib/now 2.7.18-13ubuntu1.1 amd64 [installed,local]
python2-minimal/now 2.7.18-3 amd64 [installed,local]
python2.7-minimal/now 2.7.18-13ubuntu1.1 amd64 [installed,local]
python2.7/now 2.7.18-13ubuntu1.1 amd64 [installed,local]
python2/now 2.7.18-3 amd64 [installed,local]

Conclusion: ./runrole kalite worked.

@jvonau
Copy link
Contributor Author

jvonau commented Apr 12, 2023

U2304amd64

ubuntu@test-2304-220227:/opt/iiab/iiab$ sudo apt list *python2*
Listing... Done
libpython2-stdlib/now 2.7.18-3 amd64 [installed,local]
libpython2.7-minimal/now 2.7.18-13ubuntu2 amd64 [installed,local]
libpython2.7-stdlib/now 2.7.18-13ubuntu2 amd64 [installed,local]
python2-minimal/now 2.7.18-3 amd64 [installed,local]
python2.7-minimal/now 2.7.18-13ubuntu2 amd64 [installed,local]
python2.7/now 2.7.18-13ubuntu2 amd64 [installed,local]
python2/now 2.7.18-3 amd64 [installed,local]

U2304arm64

jerryv@U2310arm64:/opt/iiab/iiab$ apt list *python2*
Listing... Done
libpython2-stdlib/now 2.7.18-3 arm64 [installed,local]
libpython2.7-minimal/now 2.7.18-13ubuntu1.1 arm64 [installed,local]
libpython2.7-stdlib/now 2.7.18-13ubuntu1.1 arm64 [installed,local]
python2-minimal/now 2.7.18-3 arm64 [installed,local]
python2.7-minimal/now 2.7.18-13ubuntu1.1 arm64 [installed,local]
python2.7/now 2.7.18-13ubuntu1.1 arm64 [installed,local]
python2/now 2.7.18-3 arm64 [installed,local]

@jvonau
Copy link
Contributor Author

jvonau commented Apr 12, 2023

Possible future improvement something like:
'deb [signed-by=/usr/share/keyrings/ubuntu-keyring-2018-archive.gpg]'

Looks like Ubuntu and Debian are covered, think this is good enough for now. "ship it" for wider testing

@holta
Copy link
Member

holta commented Apr 12, 2023

Possible future improvement something like: 'deb [signed-by=/usr/share/keyrings/ubuntu-keyring-2018-archive.gpg]'

Looks like Ubuntu and Debian are covered, think this is good enough for now. "ship it" for wider testing

Great!

@jvonau what line-of-testing is most important, if @EMG70 has time in the coming week?

@holta holta merged commit c9ed0a0 into iiab:master Apr 12, 2023
@holta holta changed the title notes and dependencies [& test adding Python 2 to Debian 12] notes and dependencies [for Python 2 on new OS's on {amd64, arm64, armhf}. Tested on Debian 12 & Ubuntu 23.04] Apr 12, 2023
@jvonau
Copy link
Contributor Author

jvonau commented Apr 12, 2023

U23.04 server arm64 beta. You will have to download the image and use the custom option to point to the download location when you use RasPi's imager. Make sure you set a username and password or you will be locked out of the install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants