Arduino IDE on Ubuntu 16.04 won't start

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.

End of Life does not mean the OS stops working.

The problem is usually there is a mismatch between the IDE and Linux.

  • Linux 64 bit with 64 bit IDE - OK
  • Linux 32 bit with 32 bit IDE - OK
  • Linux 32 bit with 64 bit IDE - Fail
  • Linux 64 bit with 32 bit IDE - Maybe

The following command should show which Linux version and 32 versus 64 bit.

$ uname -a

A much less frequent "Exec format error" is to run ARM executables on a Intel/AMD CPU or vice versa.

Hey guys, thanks for your interest.

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:

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.

AHA!! Ahem... yup, ARM 64 bit ide version.......

Blink just uploaded to my board

Thanks guys!

Yay! I'm glad to hear it.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.