Closed holta closed 3 years ago
An "ENTIRELY AT YOUR OWN RISK" WARNING summarizing this entire RaspiOS-on-PC situation is now posted at the bottom of SECTION 2 here: https://github.com/iiab/iiab/wiki/IIAB-Platforms
Specifically:
Debian Buster with Raspberry Pi Desktop (i.e. for x86_64 PC/VM) will NOT work with modern Node.js apps — as a result of this distro's hybrid 32-bit and 64-bit CPU arch legacy (specifically, i386-instead-of-amd64 versions of python3 packages) which lead to serious Node.js 10.x problems across the board. Sugarizer can be made to work if absolutely necessary. But this is ENTIRELY AT YOUR OWN RISK. Extensive details written up on 2021-07-21: #2873
What does dpkg --print-architecture
and dpkg --print-foreign-architectures
return? Think that image was build with a i386 userspace see https://github.com/RPi-Distro/pi-gen/pull/415/files. On a side note the /etc/rpi-issue's git hash is nowhere to be found on github
What does
dpkg --print-architecture
anddpkg --print-foreign-architectures
return?
root@raspios10-desk-vm:~# dpkg --print-architecture
i386
root@raspios10-desk-vm:~# dpkg --print-foreign-architectures
amd64
Interesting!
Please add both dpkg --print-architecture
dpkg --print-foreign-architectures
to iiab-diagnostics to add future debugging of other goofy oddball combinations that show up out of the blue.
Please add both
dpkg --print-architecture
dpkg --print-foreign-architectures
to iiab-diagnostics to add future debugging of other goofy oddball combinations that show up out of the blue.
Done. See:
If you would like the ordering changed (within the pastebins) please LMK.
Strangely I succeeded in installing most of BIG-sized IIAB onto RaspiOS-for-PC/VM (graphical desktop version, latest ISO is 2021-01-12) BUT Sugarizer was the only Node.js role that I cared to actually make work. As explained below (just for the record!) as it's probably NOT worth solving these issues.
iiab-diagnostics output: http://sprunge.us/xuBc6j?en
FWIW I did not try IIAB's 5th Node.js role (pbx) as it's not currently part of BIG-sized IIAB.
Node.js 10.x PROBLEM NUMBER 1 OF 4: JupyterHub
Underlying error appears to be:
This package requires Rust >=1.41.0.
Node.js 10.x PROBLEM NUMBER 2 of 4: Likewise Node-RED 2.0.1 does not install, as a result of:
Underlying error appears to be:
npm npm does not support Node.js v10.24.0
Running
npm i npm@latest -g
moved things forward a bit until this next failure:Node.js 10.x PROBLEM NUMBER 3 OF 4: Curiously MongoDB can be made to install using amd64 by running
apt install mongodb-org
at the command-line. Even despite this Ansible failure: (!)CLI's
apt install
is able to work with this, even while Ansible refuses to move forward with the i386 / amd64 ambiguity:The i386 / amd64 ambiguity's shown here:
In any case, the CLI approach works (apt install mongodb-org) allowing Sugarizer to fully install, as a result of:
Node.js 10.x PROBLEM NUMBER 4 OF 4: Internet Archive doesn't install as a result of...
CONTEXT
The usual https://github.com/nodesource/distributions/blob/master/README.md#debian-and-ubuntu-based-distributions method to install Node.js and npm do not work.
As reconfirmed by https://deb.nodesource.com/node_16.x/pool/main/n/nodejs/nodejs_16.4.1-deb-1nodesource1_amd64.deb installing on Debian 10 VM but it won't install on RaspiOS 10 VM -- despite these 2 distros being nearly identical in (almost!) every way.
Details: apt install (or dpkg -i) of above .deb fails on RaspiOS 10 VM, as a result of packages {python3-minimal, python3} being i386 (on RaspiOS 10 VM), instead of amd64 (on real Debian 10 VM!)
I'll bypass this quagmire and use RaspiOS 10's own Node.js 10.x -- with the usual https://github.com/iiab/iiab/wiki/IIAB-Platforms hack of running:
Just FYI these are the versions I ended up with:
Sure one could compile nodejs & npm 16.x for this eccentric i386/amd64 hybrid OS (instructions are straightforward) but not worth it. As I'm just trying to understand whether RaspiOS-for-PC/VM is tolerable or not (:
CONCLUSION: I set the following in /etc/iiab/local_vars.yml — and completed the IIAB install experiment, by repeatedly running
sudo iiab
This experiment is thanks to @deltacloud9 and @jvonau's work yesterday on:
2148
2749
2820
2833
2872