[Installing in RaspberryPi] Error Message

Hi,

while installing Arduino IDE (latest ARM version) in a RaspberryPi 3 B+ I got below error message

pi@raspberrypi:~ $ sudo /opt/arduino-1.8.6/install.sh
Adding desktop shortcut, menu item and file associations for Arduino IDE...touch: cannot touch '/root/.local/share/applications/mimeapps.list': No such file or directory
/usr/bin/xdg-mime: 803: /usr/bin/xdg-mime: cannot create /root/.local/share/applications/mimeapps.list.new: Directory nonexistent
 done!
pi@raspberrypi:~ $

Please, could somebody indicate me how cold I solve it?

Thanks

I don't know the cause of the error but I don't think it's actually necessary to run install.sh. You should be able to just run the arduino executable.

Should it be installed (copied) in some particular folder?
I downloaded and copied it in /opt.