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

Snap installs from i386 arduino-cli tarball on aarch64 #2

Open
NetworkAndSoftware opened this issue Dec 29, 2022 · 1 comment
Open

Comments

@NetworkAndSoftware
Copy link

Hello.

Ubuntu 22.04 LTS on Raspberry Pi 4.

$ uname -i -m
aarch64 aarch64
$ sudo apt-get install arduino-cli
arduino-cli 0.29.0 from manchoz installed
$ arduino-cli 
/snap/arduino-cli/33/snap/command-chain/snapcraft-runner: 4: exec: /snap/arduino-cli/33/usr/bin/arduino-cli: Exec format error

A little experimentation shows that this the arduino-cli that has been installed is the i386 one:

$ wget -q https://github.com/arduino/arduino-cli/releases/download/0.29.0/arduino-cli_0.29.0_Linux_32bit.tar.gz
$ tar -xzf arduino-cli_0.29.0_Linux_32bit.tar.gz 
$ diff -s arduino-cli /snap/arduino-cli/33/usr/bin/arduino-cli
Files arduino-cli and /snap/arduino-cli/33/usr/bin/arduino-cli are identical

The arduino-cli from https://github.com/arduino/arduino-cli/releases/download/0.29.0/arduino-cli_0.29.0_Linux_ARM64.tar.gz runs flawlessly.

Even sudo SNAP_ARCH=aarch64 snap install arduino-cli installs the incorrect version.

@blakangel
Copy link

I ran into this issue w/ i386 32bit version on my Linux server. I tried setting SNAP_ARCH to amd64 but it still installs 32-bit version.

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

No branches or pull requests

2 participants