Linux Mint: ARDUINO IDE wont start

Hi ,

I installed ARDUINO via Synaptic.
Installation runs, correctly, but when I wish to start the application, it fails, probably due to a time out.

I'm with MINT 21

Some ideas?
Thanks
Gerard

Which version of the IDE are you installing ?

The last one obtained via Synaptic, which is 2.0

I also tried to install via the zip file, but the "arduino" executable gives a blank window, and nothing else

I have moved the topic to the IDE 2.0 category of the forum

Exactly which release of IDE 2.0 are you trying to install ?

2.1.8.19 +dsfg1-1

Apparently the .zip version downloaded from Arduino web site works correctly.
It is slow, but this is probably due to my lap top which is not very recent.

I am not sure where that version number came from but it is not version 2.0 of the IDE so I have moved the topic back

How exactly did you do this ?

Thanks anyway

I have always found it best to download and unpack the latest Linux ZIP file from the arduino.cc website. You can download and unpack into a convenient directory and run from there. You can also conveniently test new releases by simply unpacking them into separate directories.

The Ubuntu package version number 2:1.8.19+dfsg1-1 likely contains IDE version 1.8.19. The preceding '2:' probably relates to the package maintainers repository version control and I see how that can be confusing. Version 1.8.19 was the last 1.8.x version and is still Ok to use, although I see that on the arduino.cc downloads page this has now been designated as 'legacy'. This has recently been superceded by the current release version 2.0.0, which is presumably the first version 2 full release as it no longer has the rcX (release candidate) suffix.

If you have previously installed via Synaptic and intend now to use the ZIP file version, then I would suggest removing and purging the repository version to make sure older versions of libraries are removed.

1 Like

Downloaded the ZIP-packet and appimage of arduino-ide 2.04 and changed the permissions.

arduino-ide in the zip packet gives an cryptic message:
[0301/190444.437232:FATAL:electron_main_delegate.cc(294)] Running as root without --no-sandbox is not supported. See 638180 - chromium - An open-source project to help move the web forward. - Monorail. Trace/breakpoint trap

appimage opens an empty window with the arduino owl pumping in-out.
I made this:
sudo add-apt-repository ppa:appimagelauncher-team/stable
sudo apt-get update
sudo apt-get install appimagelauncher

Still nothing.

After testing arduino-appimage dmesg gives:
[541107.079261] traps: arduino-ide[246456] trap int3 ip:559d4d207763 sp:7ffd13b3d680 error:0 in arduino-ide[559d4a3b1000+6878000]

Linux Mint 20.3 Una with Cinnamon, and a rather fast i5 laptop with enough memory.

My opinion is that there should be a normal installation packet.

This version in Synaptics is 1.8.19 and NOT 2.0.
Dunno, why they have given it such version number

Hi @mistofeles

Did you use sudo in the arduino-ide invocation (e.g., $ sudo ./arduino-ide)?

Synaptic package manager. Checkmark the Arduino IDE 2.0 box. Click install.

IDE 2.0 did not go over the blank screen.

My solution:
I found that in /etc/hosts was
Localhost 127.0.1.1
I changed it to
Localhost 127.0.0.1

I do not know why

Now it is working.

1 Like

I installed it just as was told on the Arduino 2.0 net page.
I was there with sudo su.

On the page there was no usefull advice.

I recommend against running Arduino IDE as superuser. This is unnecessary and might even cause problems. If you run into a situation where you find Arduino IDE only operates as expected if you run it as superuser, it is best to resolve the source of that misbehavior (e.g., a udev rule not having been set up for access to the USB device of a specific Arduino board) rather than using superuser as a workaround for the problem.

Security best practices are to only operate as superuser when absolutely necessary, which is usually only when perform basic system configuration adjustments (e.g., adding a udev rule file). So the recommendation against arbitrarily running applications as superuser applies to almost any application; not to Arduino IDE specifically.

We do provide installation instructions for Arduino IDE AppImage package on Linux:

https://docs.arduino.cc/software/ide-v2/tutorials/getting-started/ide-v2-downloading-and-installing#linux

I think those will be sufficient for most users. Due to the free (as in freedom) nature of Linux, there is great diversity in the many distributions. That is a wonderful thing in general, but it makes it very difficult to provide installation instructions since the environment provided by one distro may be very different from another. The AppImage format does provide universal Linux compatibility for the application itself, but unfortunately we might find that the procedure to get set up for using AppImage packages in general varies from "turnkey", to multiple dependencies installations depending on which distro you have. Fortunately since this is about a very popular packaging format, there should be quite a bit of existing information for the users who do find they are unable to execute AppImages out of the box.

I tested this Appimage and some other Appimage apps and removed the system from my computer.
Why should I mess my good Linux installation with something like that ?

The statement seems quite hyperbolic. Why should you ever install anything on your "good Linux installation"? AppImage is a quite common application packaging format. There is a good change the support for it is pre-installed in your distro, so you aren't installing anything at all.

But if for some strange reason you really don't like AppImage, no problem. Just use the ZIP package instead.

I do not like Appimage. It builds a directory system of its own and adds tools and config files here and there. The apps I have tested take a lot of space and are slow to start. I sometimes got to work with an old, light, powerless laptop with tiny SSD and RAM while at sea.

I tested both IDE 2.x Appimage and ZIP and stayed with ZIP.
It might be that I'll write a script to strip those useless language and chrome files of the ZIP installation after unzip.

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