Arduino IDE Wont Launch After Installation

Hello Folks,

I am still quite new to Garuda and have searched the post but have not found similar issues to my own.

I have installed Arduino SDK (and dependencies) using GitHub - arduino/Arduino: Arduino IDE 1.x. When I try to launch the SDK, nothing appears to be happening and the software never opens. I have de-installed and re-installed Arduino SDK, Did system updates before and after this, looked for errors, and bounced this machine. No luck so far.

Thank you!

System:
Kernel: 5.17.9-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=e5dd6a56-d57d-4165-99a4-9411725b0193 rw [email protected]
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3
Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.4 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: Micro-Star model: MAG Z490 TOMAHAWK (MS-7C80) v: 1.0
serial: <superuser required> UEFI: American Megatrends v: 1.A0
date: 10/19/2021
CPU:
Info: model: Intel Core i7-10700K bits: 64 type: MT MCP arch: Comet Lake
family: 6 model-id: 0xA5 (165) stepping: 5 microcode: 0xF0
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 2 MiB desc: 8x256 KiB
L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 4982 high: 5091 min/max: 800/5100 scaling:
driver: intel_pstate governor: performance cores: 1: 4847 2: 4857 3: 5091
4: 4965 5: 5002 6: 5002 7: 5002 8: 5001 9: 5000 10: 4902 11: 5077
12: 5089 13: 4953 14: 4959 15: 4976 16: 5000 bogomips: 121596
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2
mitigation: Enhanced IBRS, IBPB: conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
vendor: Micro-Star MSI driver: amdgpu v: kernel pcie: gen: 3 speed: 8 GT/s
lanes: 16 ports: active: HDMI-A-1 empty: DP-1, DP-2, DP-3, DVI-D-1
bus-ID: 01:00.0 chip-ID: 1002:67df class-ID: 0300
Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting
alternate: fbdev,vesa gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 2560x1080 s-dpi: 96 s-size: 677x285mm (26.65x11.22")
s-diag: 735mm (28.92")
Monitor-1: HDMI-A-1 mapped: HDMI-A-0 model: Viewteck GNV29CB built: 2020
res: 2560x1080 hz: 60 dpi: 96 gamma: 1.2 size: 680x288mm (26.77x11.34")
diag: 738mm (29.1") modes: max: 2560x1080 min: 720x400
OpenGL: renderer: AMD Radeon RX 570 Series (polaris10 LLVM 13.0.1 DRM
3.44 5.17.9-zen1-1-zen)
v: 4.6 Mesa 22.1.0 direct render: Yes
Audio:
Device-1: Intel Comet Lake PCH cAVS vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel
alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
chip-ID: 8086:06c8 class-ID: 0403
Device-2: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
vendor: Micro-Star MSI driver: snd_hda_intel v: kernel pcie: gen: 3
speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 1002:aaf0 class-ID: 0403
Sound Server-1: ALSA v: k5.17.9-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 15.0 running: no
Sound Server-3: PipeWire v: 0.3.51 running: yes
Network:
Device-1: Intel Ethernet I219-V vendor: Micro-Star MSI driver: e1000e
v: kernel port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15bc class-ID: 0200
IF: eno1 state: down mac: <filter>
Device-2: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169
v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 port: 4000 bus-ID: 03:00.0
chip-ID: 10ec:8125 class-ID: 0200
IF: enp3s0 state: down mac: <filter>
Device-3: Realtek RTL8812AE 802.11ac PCIe Wireless Network Adapter
driver: rtl8821ae v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
port: 3000 bus-ID: 04:00.0 chip-ID: 10ec:8812 class-ID: 0280
IF: wlp4s0 state: up mac: <filter>
Bluetooth:
Device-1: Realtek Bluetooth 5.1 Radio type: USB driver: btusb v: 0.8
bus-ID: 1-1:2 chip-ID: 0bda:a725 class-ID: e001 serial: <filter>
Report: bt-adapter ID: hci0 rfk-id: 1 state: down
bt-service: enabled,running rfk-block: hardware: no software: no
address: <filter>
Drives:
Local Storage: total: 931.51 GiB used: 15.37 GiB (1.6%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B
speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 2B2QEXE7
temp: 41.9 C scheme: GPT
Partition:
ID-1: / raw-size: 99.55 GiB size: 99.55 GiB (100.00%)
used: 15.34 GiB (15.4%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
used: 29.5 MiB (30.7%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 99.55 GiB size: 99.55 GiB (100.00%)
used: 15.34 GiB (15.4%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
ID-4: /var/log raw-size: 99.55 GiB size: 99.55 GiB (100.00%)
used: 15.34 GiB (15.4%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
ID-5: /var/tmp raw-size: 99.55 GiB size: 99.55 GiB (100.00%)
used: 15.34 GiB (15.4%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.54 GiB used: 2.2 MiB (0.0%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 27.8 C pch: 43.0 C mobo: N/A gpu: amdgpu
temp: 54.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 504
Info:
Processes: 390 Uptime: 1d 19h 26m wakeups: 0 Memory: 15.54 GiB
used: 4.57 GiB (29.4%) Init: systemd v: 251 tool: systemctl Compilers:
gcc: 12.1.0 clang: 13.0.1 Packages: pacman: 1485 lib: 352 Shell: fish
v: 3.4.1 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.16
Garuda (2.6.3-2):
System install date:     2022-05-26
Last full system update: 2022-05-29 ↻
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       Probably (Run as root to verify)
Snapshots:               Snapper
Failed units:

Try the community package:

sudo pacman -S arduino

There is an Arch Wiki page for this software which might be helpful: Arduino - ArchWiki

4 Likes

Thanks BH! I appreciate the help!

1 Like

Bluish Humility,

I still had the same issues with Arduino IDE from the community packages. I got a bit frustrated and turned in for the night.

Doing some more digging, I came across the following cmd which appears to be a manual installation of sorts:

wget https://downloads.arduino.cc/arduino-1.8.12-linux64.tar.xz

This method of the installation appears to have worked but this happened :

╭─[email protected] in ~/arduino-1.8.19
╰─λ sudo ./install.sh
[sudo] password for jeff:
Adding desktop shortcut, menu item and file associations for Arduino IDE...


ln: failed to create symbolic link '/usr/local/bin/arduino': File exists
Adding symlink failed. Hope that's OK. If not then rerun as root with sudo.
Could not parse file "/root/.local/share/applications/libinput-gestures-qt.desktop": Invalid key name: Path[$e]
Could not parse file "/root/.local/share/applications/lstopo.desktop": Invalid key name: Path[$e]
Could not parse file "/root/.local/share/applications/qwikaccess.desktop": Invalid key name: Path[$e]
Could not parse file "/root/.local/share/applications/xgps.desktop": Invalid key name: Path[$e]
Could not parse file "/root/.local/share/applications/xgpsspeed.desktop": Invalid key name: Path[$e]
Could not parse file "/root/.local/share/applications/yad-icon-browser.desktop": Invalid key name: Path[$e]
Could not parse file "/root/.local/share/applications/yad-settings.desktop": Invalid key name: Path[$e]
done!

...and now it launches!

But now I am trying to understand why this outputted. Do you think this is something I need to address? I am trying as much as I can to make Garuda my main OS but have a few very important Arduino projects for work and I would really carry on with them using Garuda. When Microsoft started this whole Trusted Platform crap, that did it for me. I think they are acting pompously and arrogantly. No one owns my computer but me and it seems like they are trying to reach into my system and make it their own...

Thanks :grin:

To be honest, I'm not sure what those error messages mean or how problematic they are. The "/usr/local/bin/arduino symlink already exists" message could be related to your previous installation efforts, but I really don't know.

Judging by this thread from the Arduino forum, it looks like getting this software working properly on Linux can be a bit challenging. One person goes so far as to make this rather critical remark:

This is why you should never use Arduino from a linux package manager, and always download it from Arduino.cc - the versions in the package manager have been altered from the official version, are often out of date, and frequently have problems that are not encountered with the official version.

Yikes. :flushed:

Despite that, my inclination would be to trust the Arch package over the tarball; the fact that someone put together the ArchWiki documentation indicates that the author spent time troubleshooting and presumably getting it working.

There is a comment in the ArchWiki installation notes that says "You may need to load the cdc_acm module." Do you know if you have that module loaded or not? (lsmod | grep cdc_acm to check.)

This thread makes it sound like you need to have arduino-avr-core installed for it to work, even though it isn't listed as a dependency. If this is true, I agree with the comment that this should really be added to the ArchWiki article, but in either case it might be worth a shot. This package appears to pull in a few extra dependencies of its own as well:

sudo pacman -S arduino-avr-core
[sudo] password for jeremy:
resolving dependencies...
looking for conflicting packages...

Packages (9) avr-binutils-2.38-2  avr-gcc-12.1.0-1  avr-libc-2.1.0-1  avrdude-1:7.0-1
             confuse-3.3-3  elfutils-0.187-1  libftdi-1.5-4  libusb-compat-0.1.7-1
             arduino-avr-core-1.8.3-1

Total Download Size:    29.78 MiB
Total Installed Size:  234.86 MiB

A final consideration would be giving the arduide-git package a shot; it appears to be a Qt-based IDE for Arduino that is available in the AUR (this package would be instead of the normal version).

paru arduide-git
3 Likes

Thanks Jeremy. And yikes is right! I appreciate the tests on your machine. Thanks!

Well! It seems I get the "red ball" error while checking the status of the cdc_acm module :sweat_smile:

╭─[email protected] in ~ took 1ms
╰─λ lsmod | grep cdc_acm

╭─[email protected] in ~ took 2ms
[[]|[πŸ”΄]] => πŸ”΄ERROR Γ—

And I went for the avr-core

╭─[email protected] in ~ took 1ms
╰─λ sudo pacman -S arduino-avr-core
[sudo] password for jeff:    
resolving dependencies...
looking for conflicting packages...

Packages (3) avrdude-1:7.0-1  elfutils-0.187-1  arduino-avr-core-1.8.3-1

Total Installed Size:  15.78 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
arduino-avr-core-1.8.3-1-any is up to date
elfutils-0.187-1-x86_64 is up to date
avrdude-1:7.0-1-x86_64 is up to date
(3/3) checking keys in keyring                                     [------------------------------------] 100%
(3/3) checking package integrity                                   [------------------------------------] 100%
(3/3) loading package files                                        [------------------------------------] 100%
(3/3) checking for file conflicts                                  [------------------------------------] 100%
(3/3) checking available disk space                                [------------------------------------] 100%
:: Running pre-transaction hooks...
(1/1) Performing snapper pre snapshots for the following configurations...
==> root: 54
:: Processing package changes...
(1/3) installing elfutils                                          [------------------------------------] 100%
(2/3) installing avrdude                                           [------------------------------------] 100%
(3/3) installing arduino-avr-core                                  [------------------------------------] 100%
:: Running post-transaction hooks...
(1/7) Arming ConditionNeedsUpdate...
(2/7) Refreshing PackageKit...
(3/7) Foreign/AUR package notification
=> No foreign/AUR packages found.
(4/7) Orphaned package notification...
=> No orphans found.
(5/7) Checking for .pacnew and .pacsave files...
.pac* files found:
/etc/pamac.conf.pacnew
/etc/pacman.d/mirrorlist.pacnew
Please check and merge
(6/7) Performing snapper post snapshots for the following configurations...
==> root: 55
(7/7) Syncing all file systems...

I tethered up an Arduino Mega board before and after the avr-core packages and dependencies install. Whereas the microcontroller board would not receive my code before the installation, it DID receive the code afterward so that was a very essential package for functionality. I gave it a pretty complex upload with several libraries and everything works! It is driving a 7" capacitive touchscreen, being used as a (PLC Programmable Logic Controller). A good test!

Reading is knowledge
...and knowledge is power

It's a lesson I shouldn't have had to re-learn today. I'll spend some time in the ArchWiki and your link to that thread. Thanks for the spoon-feeding :rofl: . Thank you for the support, it means quite a lot to me and I'm one hugh step further in these projects.

Jeff

1 Like

It is, however, listed as an optional dependency:

$ pacman -Si arduino
Repository      : community
Name            : arduino
...
Depends On      : gtk2  desktop-file-utils  shared-mime-info  java-runtime=8  arduino-builder
Optional Deps   : arduino-docs: Offline documentation for arduino
                  arduino-avr-core: AVR core with upstream avr-gcc and avrdude
...

This is correct, as it's not needed for the IDE itself. There's a bug report here, FS#67452 : [arduino] should depend on arduino-avr-core, that says:

And indeed, the additional package is mentioned on the wiki page:

2 Likes

Thank you Jonathon and Jeremy. I appreciate the willingness to lend a hand!

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