I've spent 3 days wrestling with this installation and am at wit's end.
OS is Unbutu 16.04.6 lts. I've performed apt update and apt upgrade (in place of apt-get) within the last 24 hours.
I downloaded arduino-1.8.9-linux64.tar.xz from the Arduino site.
I put the tar.xz package in another directory and extracted it there.
I examined the install.sh script to confirm RESOURCE_NAME=arduino-arduinoide was correct. The I ran install.sh (sudo ./install.sh).
I got this message:
--
Adding desktop shortcut, menu item and file associations for Arduino IDE...
rm: cannot remove '/usr/local/bin/arduino': No such file or directory
Removing symlink failed. Hope that's OK. If not then rerun as root with sudo.
rm: cannot remove '/usr/local/bin/arduino': No such file or directory
Removing symlink failed. Hope that's OK. If not then rerun as root with sudo.
Done!
--
The next day, I did the same thing using arduino-1.8.9-linux32.tar.xz. And got the same results.
I don't want to trash this Arduino project but I only have so much time to pursue it. Any help would be greatly appreciated.