Can't install Arduino (Ubuntu16.04) - xdg mime: file 'lin/cc.arduino.arduinoide.xml' does not exist
I'm trying to install arduino 1.8.2 on Ubuntu 16.04. But when running this script :
sudo ./install.sh
i get some errors, like this :
Adding desktop shortcut, menu item and file associations for Arduino IDE...xdg-mime: file '/home/moko/Downloads/arduino-1.8.2/lib/cc.arduino.arduinoide.xml' does not exist
xdg-icon-resource: icon name 'cc.arduino.arduinoide' does not have a proper vendor prefix
A vendor prefix consists of alpha characters ([a-zA-Z]) and is terminated
with a dash ("-"). An example icon name is 'example-cc.arduino.arduinoide'
----
what caused it? The error was caused by 'cc.arduino.arduinoide.xml' not exist in 'lib' folder.
So, how to fix it?
- open install.sh, just change it :
RESOURCE_NAME=cc.arduino.arduinoide
to
RESOURCE_NAME=arduino-arduinoide
- save it and run again this script :
sudo ./install.sh
-------------
bingo!