IDE 2.x don't work on UBUNTU 24.04LTS

Hello,

I am working in arduino IDE 2.3 from years with Debian. After a problem on my PC, I am trying to use UBUNTU, so I install BUNTU 24.04LTS on my PC.
Arduino-ide 18.19 work correctly. I try to installl the ide 2.x, nor after install nor the ImageApp work on my UBUNTU.
With the decompressed file and run from a console, I have the dollowing message:

 michel@MaisonI7:~/Arduino$ sudo ./arduino-ide_2.3.4_Linux_64bit.AppImage

(zenity:39050): Gtk-WARNING **: 22:33:50.542: Unable to acquire session bus: L’exĂ©cution du processus fils « dbus-launch » a Ă©chouĂ© (Aucun fichier ou dossier de ce nom)
r: 0
License accepted
[1217/223356.780418:FATAL:electron_main_delegate.cc(294)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
Trappe pour point d'arrĂȘt et de trace
michel@MaisonI7:~/Arduino$

And with the .AppImage start from a console, I have the following message ,

michel@MaisonI7:~/Arduino$ sudo ./arduino-ide_2.3.4_Linux_64bit.AppImage

(zenity:39050): Gtk-WARNING **: 22:33:50.542: Unable to acquire session bus: L’exĂ©cution du processus fils « dbus-launch » a Ă©chouĂ© (Aucun fichier ou dossier de ce nom)
r: 0
License accepted
[1217/223356.780418:FATAL:electron_main_delegate.cc(294)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
Trappe pour point d'arrĂȘt et de trace
michel@MaisonI7:~/Arduino$

Anybody a idea whats append ???

Thank

m-sem

Not sure but why do you want to run as root (sudo)?

The appImage works without problems on my 24.04 without sudo. For the normal install I had to do something about sandbox but I can remember what I did.

Here you'll find a working solution for your problem.

Ciao, Ale.

Hello,

I run the appimage on sudo to be sure to obtain more info when it's run from a terminal.

with just a start of the appimage the return say that the chrome-sandbox must be correctly configured, his config is: root root 755.

so I have installed the chrome (not installed by default on UBUNTU,), to try.
no result.

thank you

m-sem

Hi @stibmich. Did you take a look at the link provided in post #3? I share @ilguargua's suspicion that the AppArmor security software is the cause of the problem, in which case the solution provided by a community member in that issue report should allow Arduino IDE to start for you, with no need to run the IDE as root.

If that doesn't solve the problem, please provide the full and exact text that is produced when you start Arduino IDE from the terminal without sudo. It might be that those logs will contain some key text that we are familiar with. We may be less familiar with logs produced by the IDE when invoked via sudo since it is rare for anyone to do that.

Hello ptillisch,

I have try to do the apparmor, but no result, so,

WIth the arduino-ide_2.3.4_Linux_64bit.AppImage in terminal I have yhis one:

michel@MaisonI7:~/Arduino$ ./arduino-ide_2.3.4_Linux_64bit.AppImage 
[21259:1227/114157.706921:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_arduinTwbO7Y/chrome-sandbox is owned by root and has mode 4755.
Trappe pour point d'arrĂȘt et de trace (core dumped)
michel@MaisonI7:~/Arduino$

from the arduino-ide I have the same message:

michel@MaisonI7:~/arduino-ide_2.3.4_Linux_64bit$ ./arduino-ide
[21395:1227/114555.523929:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/michel/arduino-ide_2.3.4_Linux_64bit/chrome-sandbox is owned by root and has mode 4755.
Trappe pour point d'arrĂȘt et de trace (core dumped)
michel@MaisonI7:~/arduino-ide_2.3.4_Linux_64bit$

those copy of my terminal are be done after the configuration of the apparmor....

So now I have no more Idea, reinstall the full Ubuntu or the Debian ???
I have change drom Debian to Ubuntu because the NVDIA drive are more useful with UBUNTU than Debian.
If you work with Ubuntu, may be control the apparmor.d file arduino on your PC to compare with the mine?

Thank you

m-sem

This is mine, working on Kubuntu 24.04:

guargua@guargua-desktop:~$ cat /etc/apparmor.d/usr.local.bin.arduino 
abi <abi/4.0>,
include <tunables/global>
profile arduino /usr/local/bin/arduino-ide* flags=(unconfined) {
  userns,
  include if exists <local/arduino>
}

and these are the IDE appimage:

guargua@guargua-desktop:~$ ls -l /usr/local/bin/arduino*
-rwxr-xr-x 1 guargua guargua 190624130 set 29 09:31 /usr/local/bin/arduino-ide_2.3.3_Linux_64bit.AppImage
-rwxrwxr-x 1 guargua guargua 191539050 dic  7 18:32 /usr/local/bin/arduino-ide_2.3.4_Linux_64bit.AppImage

After modifications you need to reboot to make everything working.

Ciao, Ale.

Hello ilguargua,

I have uninstall the arduino-ide 1.18 (sudo apt autoremove arduino).
Removed all the file in /etc/apparmor. with a référence to arduino and also to /home/michel/Arduino.
Reload the PC.
Copy the appImage of the arduino-ide to the same directory of your,
Create the file usr.local.bin/arduino in the /etc/apparmor.d with the same contents.....
Reload the PC.
And now the ide 2.3.4 work........ :smiley:

Still a problem, but not really important I have no link to start the ide from the desktop...
I'll doing that after

A very big thanks at everybody for your help

m-sem

I think this was the missing piece. The AppArmor policy provided at https://github.com/arduino/arduino-ide/issues/2429#issuecomment-2099775010 is configured for the Arduino IDE executable to be located at the path /usr/local/bin/arduino, but I can see from the terminal logs you shared that yours was located at a different path.

If you prefer to store your Arduino IDE installation at a different location, you can specify any path you like in the policy.

1 Like

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