arduino / arduino/Arduino

arduino-1.8.13-linuxarm Install fails with No such file or directory and cannot create /root/.config/mimeapps.list.new

Open
#11,502 0 comments 0 reactions 0 assignees View on GitHub
Component: IDE OS: Linux Type: Bug
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

```
pi@raspberrypi:~/Downloads $ tar -x -f arduino-1.8.13-linuxarm.tar.xz
pi@raspberrypi:~/Downloads $ sudo mv arduino-1.8.13 /opt
pi@raspberrypi:~/Downloads $ sudo /opt/arduino-1.8.13/install.sh
Adding desktop shortcut, menu item and file associations for Arduino IDE...

touch: cannot touch '/root/.config/mimeapps.list': No such file or directory
/usr/bin/xdg-mime: 848: /usr/bin/xdg-mime: cannot create /root/.config/mimeapps.list.new: Directory nonexistent

done!
```

Despite the above errors, I am able to run arduino from /opt/arduino-1.8.13.

```
pi@raspberrypi:~/Downloads $ uname -a
Linux raspberrypi 5.10.17-v7l+ #1414 SMP Fri Apr 30 13:20:47 BST 2021 armv7l GNU/Linux

pi@raspberrypi:~/Downloads $ /opt/arduino-1.8.13/java/bin/java -version
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) Server VM (build 25.191-b12, mixed mode)
```

Contributor guide

Open the contributing guide

Research direction

Start with /opt/arduino-1.8.13/install.sh and reproduce the install command on the reported Raspberry Pi environment. Check how the script invokes desktop integration and handles /root/.config; the work is done when installation completes without the missing-directory errors and the shortcut, menu item, and file associations are created.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, linux, raspberry-pi, shell
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.