Hi, Installed Arduino IDE 1.8.16 on Ubuntu 16.04, as root on a Dell inspiron 3542. It gets as far as having a desktop icon, but this doesn't work. When I invoke the same command "arduino" in the directory I get the following error message:
<./arduino: line 35: /home/thomas/arduino/arduino-1.8.16/java/bin/java: cannot execute binary file: Exec format error>
Have I got a problem in the Java files? How do I fix this?
Good or bad news, Ubuntu Linux 16.04 LTS reached the end its life. It was five years for LTS window which expired on April 30th 2021 and is no longer supported by its vendor, Canonical except through a paid annual Extended Security Maintenance. I use linux Mint 20.2 (other variations as well) and the Ide works great, just be sure not to install the IDE as root.
Hmm.. Icebuster, I've already tried uname and as far as I can see I'm matching a 64 bit computer with a 64 bit version of Ubuntu to a 64 bit Arduino IDE. I
gilshultz, When I installed the IDE I would get some notifications of something failing symlinks? unless I signed In as root, so I did, and the installation would proceed very slowly (10 mins +)but succeed. I' ll clean off IDE and try again without root to get the precise message.
I saw some of that as well. I only had that problem with one version of the IDE, 1.8.13 I think. I have several version on the machine. "End of Life does not mean the OS stops working." That is correct but updates, fixes, etc go away. Since this is a new install, it might be best to use an updated OS.
As Icebuster mentioned, there are two different flavors of 64 bit Arduino IDE, each with their own download link on the Software page:
"Linux 64 bits" - this is the one for use on x86-64 bit architecture host machines
"Linux ARM 64 bits" - this is the one for use on ARM architecture host machines
If you try to use the ARM one, you will get this "exec format error".
It's not necessary to run the install script, so this is not the cause of your problem. I never use it. I just extract the downloaded file and run arduino.