Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

Arduino IDE 1.8.9 does not install correctly on

Open CedricMi opened this issue 7 years ago • 28 comments

Arduino IDE 1.8.9 does not install correctly on Debian distributions, or at least I tried: Ubuntu 18.04.2 and Pengwin. With sudo ./install.sh one ends up with:

Adding desktop shortcut and menu item 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 files are not copied correctly to whatever directory (/home/Arduino, /home/.arduino15, /usr/local/bin/arduino ?) they are supposed to be copied.

Please fix.

Also when launched from a terminal window

Picked up JAVA_TOOL_OPTIONS:
Gtk-Message: timestamp: Failed to load module "Canberra-gtk-module"

CedricMi avatar Apr 12 '19 12:04 CedricMi

Do you have the folder /usr/local/bin/ ? In that case, launching with sudo should create the right symlinks (there). It first tries to remove but continues if it doesn't succeed. The GTK warning is originated by java and there's very little we can do about it.

facchinm avatar Apr 12 '19 13:04 facchinm

The folder /usr/local/bin/ is present. Inside, there is arduino, but it isn't a folder, it is a file!

CedricMi avatar Apr 12 '19 14:04 CedricMi

It's fine, since it's a symlink to the executable you extracted in your local directory you can now launch arduino from the commandline. If you prefer doing things graphically, the install script should also have created an icon on the desktop.

facchinm avatar Apr 12 '19 14:04 facchinm

  • The icon on the desktop doesn't work: There was an error launching the application. https://imgur.com/8BdHBbP
  • If I remove the extracted archive, nothing works, from CL or GUI. That can't be right. Have you tried to install it?

CedricMi avatar Apr 12 '19 14:04 CedricMi

If I remove the extracted archive, nothing works, from CL or GUI. That can't be right. Have you tried to install it?

This is expected, the installer just creates links to the extracted archive

The icon on the desktop doesn't work: There was an error launching the application.

No idea what is happening here, but may be related to the deletion of the extracted archive

The installer just creates icons, links and files association. The real "installation" is self contained in the extracted archive (which should not be deleted)

facchinm avatar Apr 12 '19 15:04 facchinm

I have the exact same issues as CedricMi (ubuntu 18.04), following the same installation procedure. I didn't worry about the warning in the terminal though. I have tried the installation in a local folder in /home/user as well as in /opt (with sudo rights), all gave:

Adding desktop shortcut and menu item 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 desktop icon doesn't look like an icon and shows its name with extension arduino-arduinoide.desktop (it's unusual to have an icon with the .desktop extension visible!).

@facchinm

The icon on the desktop doesn't work: There was an error launching the application.

No idea what is happening here, but may be related to the deletion of the extracted archive

This could have been a reason but I (obviously :-) ) didn't delete the extracted archive.

This may be a bug in the installation file / procedure.

calocedrus avatar Apr 17 '19 04:04 calocedrus

Ok well, had a look in the install.sh, the cannot remove /usr/local.../ message is totally normal on a system without prior arduino installation, since the install script runs an uninstall procedure which tries to remove a symlink which doesn't exist. So this can be ignored.

Remains the weird desktop icon which doesn't start.

calocedrus avatar Apr 17 '19 04:04 calocedrus

Note that the spurious "rm: cannot remove '/usr/local/bin/arduino'" warnings on the first install are removed by https://github.com/arduino/Arduino/pull/8781

per1234 avatar Apr 17 '19 04:04 per1234

And finally a way to get the icon to work:

sudo chown yourusername /path/to/icon/arduino-arduinoide.desktop

Double click and trust the launch. Here you go :+1: All is well now (but there may be some tweaks to bring in the script to avoid this).

PS: in a hurry to post a solution i misplaced yourusername vs path in the chown command, obviously it wouldn't have worked as I had put it, now edited, thanks for noticing nhphuong91

calocedrus avatar Apr 17 '19 04:04 calocedrus

I've been finally able to test on a clean Ubuntu 18.10; the user installation is fine (just reports warnings on not being able to symlink to /usr/local/bin. Sudo installation though has the icon problem; to solve it I just pushed https://github.com/arduino/Arduino/commit/c3675a8befbc9d76850a0e986e6b0da0b8b43084 to fix this automatically. I think the issue can be closed as solved (in master).

facchinm avatar Apr 18 '19 09:04 facchinm

And finally a way to get the icon to work:

sudo chown /path/to/icon/arduino-arduinoide.desktop yourusername

Double click and trust the launch. Here you go +1 All is well now (but there may be some tweaks to bring in the script to avoid this).

I think it should be: sudo chown YourUserName /path/to/icon/arduino-arduinoide.desktop otherwise chown would give error invalid user: ‘/path/to/icon/arduino-arduinoide.desktop’

nhphuong91 avatar May 22 '19 10:05 nhphuong91

Had the same problem installing today on RaspberryPi with Ubuntu Mate, solved with @nhphuong91 command: sudo chown UserName /home/UserName/Desktop/arduino-arduinoide.desktop

KikiCS avatar May 31 '19 10:05 KikiCS

@nhphuong91

I think it should be: sudo chown YourUserName /path/to/icon/arduino-arduinoide.desktop

Sure of course.

calocedrus avatar Jun 03 '19 14:06 calocedrus

[SOLVED IT MYSELF] I used a bad folder name, i used the symbol "&". i changed the folder name where i extracted the file and everything was cool.

(the below is solved).... Hello, as mentioned in https://github.com/arduino/Arduino/commit/c3675a8befbc9d76850a0e986e6b0da0b8b43084 , the problem should have been solved right? I installed the arduino ide today as sudo, and i still get Adding symlink failed. Hope that's OK. If not then rerun as root with sudo.

The shortcut on the desktop is broken, i tried sudo chown UserName /home/UserName/Desktop/arduino-arduinoide.desktop , which fixed the image on the shortcut, but it is still broken.

I then tried to re-install it without sudo, and it poped the error several times: touch: cannot touch ... and at the end, everything is broken again. I did not delete the unziped file, and i only tried to install using sudo ./install.sh and the, obviously ./install.sh

Basilisvirus avatar Aug 13 '19 15:08 Basilisvirus

I had the same issue while running on nvidia jetson nano with ubuntu-18.04 LTS and arduino-1.8.9. I followed the follwing command and worked for me.

sudo chown UserName /home/username/Desktop/arduino-arduinoide.desktop

After I tried to run the arduino ide, it pops up with a message if I trust this software, just accept it and you are ready to go.

ArghyaChatterjee avatar Aug 19 '19 05:08 ArghyaChatterjee

The fix has been included in master branch and will be available starting from IDE 1.8.10, so 1.8.9 is still expected to fail (and chown must be applied manually)

facchinm avatar Aug 19 '19 07:08 facchinm

I installed the older version. It works. Version 1.8.4

zhangshaohu avatar Sep 09 '19 13:09 zhangshaohu

Having this issue on version 1.8.10 on Arm64. Chown does not fix it.

sevenp240 avatar Nov 27 '19 09:11 sevenp240

Having these issues on version 1.8.13 on ARM64 running on a Raspberry Pi4 Model B w/ 4G RAM

Download and Extract arduino-1.8.13-linuxaarch64.tar.xz cd /home/pi/Downloads/arduino-1.8.13 sudo ./install.sh Adding desktop shortcut, menu ..... 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!

I get the desktop icon 'arduino-arduinoide.desktop'

I execute the chown command: sudo chown pi /home/pi/Desktop/arduino-arduinoide.desktop

When I click on the desktop icon or go to Menu > Programming > Arduino IDE, I get the hour glass on my cursor for about 30 seconds and nothing.

This is my 9th or 10th installation attempt. I have tried multiple with the 64-bit. I have tried a couple with the 32-bit. I have tried using other instructions that have you move the arduino-1.8.13 to the /opt directory and try the installation from there. I have tried the installation with ./install.sh and sudo ./install.sh. All failed with various different errors and icon results.

I am open for suggestions on how to clean this up and get the installation working where my icons work. Even if I do not get a working desktop icon, I would settle for a working Menu > Programs > Arduino IDE menu item.

I am back to: cd /home/pi/Downloads/ sudo ./uninstall.sh rm /home/pi/Desktop/arduino-arduinoide.desktop Deleted Menu > Programming > Arduino IDE The directory '/usr/local/bin' is empty

Thanks!

dmcquestion avatar Aug 04 '20 17:08 dmcquestion

Update: The 32-bit version does not have these issues.

dmcquestion avatar Aug 07 '20 15:08 dmcquestion