Problem with Arduino IDE 1.8.2 installation on Ubuntu

Hello !
I’m trying to install this “arduino-1.8.2-linux64.tar.xz” on my Ubuntu 16.04.
There is no problem until I reach the point of time when I finally need run the script to install both desktop shortcut and launcher icon, i.e, “./install.sh” command.
The error says

“xdg-mime: file ‘/opt/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” and much more.

I have attached the screen shot of the whole error below.

Thanks for any help !

I believe this is the solution:

hi, i test and it work

Worked for me too.