Notifications
Clear all

Installing the Arduino IDE on Ubuntu 20.04

11 Posts
3 Users
1 Likes
294 Views
(@codeschlocker)
Member
Joined: 3 years ago
Posts: 8
Topic starter  

I'm having a horrible time installing the original Arduino IDE on my Ubuntu 20.04 laptop.

I've gone to the Arduino site and have downloaded arduino-1.8.19-linux64.tar.xz

I've read the instructions on how to install the .tar file, both on the Arduino software site and on another site.

In the end, I have an icon in my application menu, but when I click on it, it just displays the splash screen then dies.  I tried typing 'arduino' as a command from terminal and I get the message:

"Incorrect IDE installation folder:  Your copy of the IDE is installed in a subfolder of your sketchbook.  Please move the IDE to another folder."

Where the IDE is installed to is dependent on the 'install.sh' file, as near as I can tell.  I've tried moving the 'arduino' file to my Arduino folder, a subfolder of my home directory, but no change.

I've already uninstalled and reinstalled the .tar file but I'm getting the same result.

 

-Mike

 

 


   
Quote
robotBuilder
(@robotbuilder)
Member
Joined: 5 years ago
Posts: 2042
 

Are you following any instructions on how to do this?

https://linux.how2shout.com/how-to-install-arduino-ide-on-ubuntu-22-04-20-04-lts/

 


   
ReplyQuote
Marvin
(@rob42101)
The Paranoid Android
Joined: 2 months ago
Posts: 32
 

@codeschlocker

I've not used it to any great extent, but I found that the stand-alone...

arduino-ide_2.2.1_Linux_64bit.AppImage

... works just fine and I think (it's a while ago now, so I can't recall) I had a similar issue (I'm using a LM distro), which is why I went with the 'AppImage'.

 

edit: my bad, I pointed this @ the wrong person: corrected.

The only thing necessary for the triumph of evil is for good men to do nothing.


   
ReplyQuote
(@codeschlocker)
Member
Joined: 3 years ago
Posts: 8
Topic starter  

Thanks Marvin,

I'll search for the AppImage version of the Arduino IDE.

I did try the apt version, and nothing improved.

It seems, for me, to be a constant struggle to get an app to work in Linux.  It's really hit or miss.  About one out of three applications I try and get running in Ubuntu don't work.  There's probably some subtlety that I'm just missing.

I love ol' Marvin from "Hitchhiker's Guide to the Galaxy".

 

-Mike


   
ReplyQuote
Marvin
(@rob42101)
The Paranoid Android
Joined: 2 months ago
Posts: 32
 

Posted by: @codeschlocker

Thanks Marvin,

You are more than welcome.

Here's the link for you.

The only thing necessary for the triumph of evil is for good men to do nothing.


   
ReplyQuote
(@codeschlocker)
Member
Joined: 3 years ago
Posts: 8
Topic starter  

@robotbuilder 

Yes, as I wrote, I followed the instructions on the software section of the Arduino site, as well as these instructions:  https://linuxopsys.com  › topics › install-arduino-ide-on-ubuntu-20-04

When they didn't work, I uninstalled and tried again.  And, I tried installing it from the aptitude repository.

I love the instructions on the site that you provided above:

 

"2. Run System Update

Well, this is not necessary, if your system is up to date. However, to ensure our system packages source repository has the latest cache, run the given command:

 
 
sudo apt update

#1st Method using Tar file"

 

Where is the link to the "Using the Tar file" method?!?!?!?

 

I haven't tried the AppImage yet.  The problem with using snap, or the AppImage is updates.

 

-Mike


   
ReplyQuote
(@codeschlocker)
Member
Joined: 3 years ago
Posts: 8
Topic starter  

@rob42101 I'm drawing a blank.  It's been so long since I loaded an AppImage.  Is there anything I have to do to install it?

Oops!  Nevermind, got it.  Right-click, open with AppImage Manager.

 

Seems to work great, thanks!

This post was modified 2 months ago by CodeSchlocker

   
ReplyQuote
Marvin
(@rob42101)
The Paranoid Android
Joined: 2 months ago
Posts: 32
 

Hey Mike,

No, there's no install required; it's a stand alone app. You'll maybe need to grant the file 'executable' privilege (I use chmod 700, from a terminal, but you could do the same, from a file manager GUI).

The thing I like about using an app image, is that when said application gets an update, a new image file is released. So, one can d/load and use the new release and still retain the one the was being used before. That way, if one finds that the new release has broken something, just go run the old one again, and report to the devs what the issue is with the new release.

The only thing necessary for the triumph of evil is for good men to do nothing.


   
ReplyQuote
(@codeschlocker)
Member
Joined: 3 years ago
Posts: 8
Topic starter  

@rob42101 

I have this application called AppImageLauncher, that helps the installation of AppImages.

I haven't downloaded an AppImage in so long, I forgot about it.  It does help organize AppImages by placing them all in a "Applications" folder.

The fact that I just don't download a lot of files on my Ubuntu laptop is more than half the problem of me fighting with the installation of Linux apps.

Although the AppImage was an excellent solution, I still wish I could understand why I could not install the Arduino IDE by downloaded the .tar file.

-Mike


   
ReplyQuote
Marvin
(@rob42101)
The Paranoid Android
Joined: 2 months ago
Posts: 32
 

I'm pleased that I was able to give you a working solution.

The only reason that I used that app (and it was only the one time) was that I wanted to test that my Teensy2 was working. Without going into too much detail, I acquired a Teensy2, some years ago, but never got around to doing anything with it. I bought is as a bundle, together with a USB 'Rubber Ducky' (which was the gadget I wanted), popped it aside and forgot all about it. It does work, btw, in case you're wondering. 🙂

The only thing I can suggest, is that you get onto the Arduino Community, Forum or Discord (if you can stand to use Discord, that is; I hate using it, myself) and see whats going on. My guess is that you'll not be alone with this issue, in fact you're not, because the more I think about it, the more that I'm convinced that I had the same issue as you've had.

The only thing necessary for the triumph of evil is for good men to do nothing.


   
ReplyQuote
(@codeschlocker)
Member
Joined: 3 years ago
Posts: 8
Topic starter  

@rob42101 

I was just telling a friend today, about how many forums there were a decade or two ago.  Now, it seems, that even if you join a forum, you are shunted off to stackoverflow.

I can't stand stackoverflow.  Picking the right solution to your particular problem, no matter how much you sweat blood detailing your specific problem is like finding fly....uh, a needle in a haystack.  Plus, the moderators are so draconian.  They can kick you off at will.

The Dronebot forum here is much more laid back, much more like the forums that I used to enjoy.

Thank you for all that you've shared with me.

-Mike


   
Marvin reacted
ReplyQuote