arduino-cli icon indicating copy to clipboard operation
arduino-cli copied to clipboard

Error during install: Error downloading tool esp32:[email protected]: no versions available for the current OS

Open lonebots opened this issue 1 year ago • 7 comments

Describe the problem

I was trying to install esp32 board to my machine using the arduino-cli and this was the result

$ arduino-cli core install esp32:esp32
Downloading packages...
esp32:[email protected] esp32:[email protected] already downloaded
esp32:[email protected] esp32:[email protected] already downloaded
esp32:[email protected] esp32:[email protected] already downloaded
esp32:[email protected]_20220823 esp32:[email protected]_20220823 already downloaded
esp32:[email protected] esp32:[email protected] already downloaded
esp32:[email protected]_20220823 esp32:[email protected]_20220823 already downloaded
Error during install: Error downloading tool esp32:[email protected]: no versions available for the current OS, try contacting [email protected]

To reproduce

  1. install arduino-cli
  2. run the following command arduino-cli core install esp32:esp32

Expected behavior

The expected behavior is the cli tool to properly installed the requested board.

Arduino CLI version

Version: 0.34.1 Commit: 048415c5 Date: 2023-08-31T11:46:44Z

Operating system

Linux

Operating system version

22.04.3 LTS (Jammy Jellyfish)

Additional context

No response

Issue checklist

  • [X] I searched for previous reports in the issue tracker
  • [X] I verified the problem still occurs when using the nightly build
  • [X] My report contains all necessary details

lonebots avatar Oct 02 '23 16:10 lonebots

:thinking: That usually happens when there aren't any tools available that match your host architecture. Do you mind sending the output of uname -a ? :pray:

alessio-perugini avatar Oct 02 '23 18:10 alessio-perugini

🤔 That usually happens when there aren't any tools available that match your host architecture. Do you mind sending the output of uname -r ? 🙏

Hi, I have the same problem, here's my output for uname -r: 6.2.0-33-generic

Thank you!

expert-amateur avatar Oct 03 '23 00:10 expert-amateur

@expert-amateur my bad, I've noticed that I typed the wrong flag :facepalm:. Could you run uname -a? That would tell me among other info if you're running 32 or 64 bit.

alessio-perugini avatar Oct 03 '23 07:10 alessio-perugini

Same here:

$ uname -a
Linux luke-NL40-50CU 5.15.0-84-generic #93-Ubuntu SMP Tue Sep 5 17:16:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

$ arduino-cli core install esp32:esp32
Downloading packages...
esp32:[email protected] esp32:[email protected] already downloaded
esp32:[email protected] esp32:[email protected] already downloaded
esp32:[email protected] esp32:[email protected] already downloaded
esp32:[email protected]_20220823 esp32:[email protected]_20220823 already downloaded
esp32:[email protected] esp32:[email protected] already downloaded
esp32:[email protected]_20220823 esp32:[email protected]_20220823 already downloaded
Error during install: Error downloading tool esp32:[email protected]: no versions available for the current OS, try contacting [email protected]

$ arduino-cli version
arduino-cli  Version: 0.34.2 Commit: 963c1a76 Date: 2023-09-11T10:05:41Z

I'm running Ubuntu Jammy Jellyfish on a intel i7 laptop.

lukew151 avatar Oct 11 '23 16:10 lukew151

This is my result for uname -a

Linux Legion 6.2.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Oct  6 10:23:26 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

I think this is the issue when, trying to install arduino-cli from the snap. I got the issue rectified after following the official documentation for installing arduino-cli

lonebots avatar Oct 19 '23 17:10 lonebots

same here, I used the snap and got exactly the same error...using the prebuild binary worked fine :)

$ arduino-cli version # from snap
arduino-cli  Version: 0.34.2 Commit: 963c1a76 Datum: 2023-09-11T10:05:41Z

$ uname -a
Linux matze 6.5.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct  7 01:35:40 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/issue
Ubuntu 23.10 

brainexe avatar Oct 25 '23 18:10 brainexe

There are some problems with snap installation. I think the problem lies on the strict confinement: https://snapcraft.io/docs/snap-confinement used here

The cli installed with snap does not use normal ~/.arduino15 dir but a confined ~/snap/arduino-cli/43/.arduino15 Maybe @manchoz can help us with that :pray:

umbynos avatar Oct 26 '23 14:10 umbynos