How to Install Arduino IDE on Ubuntu 22.04 | 20.04 LTS

Learn the steps to install Arduino IDE on Ubuntu 22.04 Jammy JellyFish or 20.04 Focal Fossa to write your programming code.

The Arduino IDE is a convenient development environment for the Arduino, a circuit board with a microcontroller, i.e. a kind of mini PC. This IDE – Integrated development environment includes a text editor for writing code, a message area, a text console, a toolbar with buttons for common functions, and a set of menus. We can connect connects to the Arduino board with it to upload and communicate with programs.

Programs written with the Arduino IDE are called sketches. These sketches are written in the text editor of the Arduino IDE and saved with the file extension .ino. To get the Tar file or Source code of Arduino IDE, we can visit the GitHub page.

Steps to install Arduino IDE on Ubuntu 22.04 or 20.04

The procedure given here to install Arduino IDE will be the same for other Ubuntu versions including Linux OS such as Debian, Linux Mint, POP OS, MX Linux, and more…

1. Requirements

To follow this tutorial, we require these key things:

Ubuntu Linux
Internet Connectivity
Terminal and non-root user access rights

 

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

 

3. Install Arduino IDE on Ubuntu 22.04 | 20.04

We don’t need to download any package manually to install Arduino IDE because it is already available via the default package repository of Ubuntu Linux. Therefore, we can install it using the default APT package manager via the command terminal.

sudo apt install arduino

Install Arduino IDE on Ubuntu 22.04 20.04

 

4. Run Arduino IDE

Once the installation is completed, go to the Ubuntu Application launcher and find this installed application. As its icon appears, click to run the Arduino IDE.

Run Arduino IDE application

Install Arduino IDE on Ubuntu 22.04 Jammy

The interface of the editor is simple and clean with functions to cut/paste and find/replace text. The message area gives feedback when saving and exporting and also displays errors.

The console displays text output from the Arduino IDE. This includes full error messages as well as other information. In the lower right corner of the window, information about the connected board and the serial port is displayed. With the buttons in the toolbar, you can check and upload programs, create sketches, open and save and open the serial monitor. The editing functions can be found in the menu bar.

 

5. How to update Arduino on Ubuntu 22.04

As we have used the APT package manager to install this IDE application, hence we can use the same to update it in the future with the help of the update command.

sudo apt update && sudo apt upgrade

 

6. Uninstall or Remove

Well, after some time if you don’t require the Integrated Development Environment for your Arduino board anymore; again use the APT package manager to remove the same.

sudo apt remove arduino

 

#2nd-way use SNAP

7. Use SNAP to install Arduino IDE

Well, those who don’t want to use the APT package manager to get the Arduino IDE on Ubuntu can use the SNAP package manager that fetches the software packages from its library.

The SNAPD is already enabled and ready to use on Ubuntu operating systems, hence, we can simply use the given command:

sudo snap install arduino

To update:

sudo snap refresh arduino

For removing the IDE app:

sudo snap remove arduino

 

#3rd method using Flatpak

8. Use Flatpak

Well, if you don’t want to use any of the above-given methods, we can use the Flatpak package manager to easily get the Arduino IDE package on our Ubuntu 22.04/20.04 system.

sudo apt install flatpak -y
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub cc.arduino.arduinoide -y

 

To remove:

flatpak uninstall --delete-data cc.arduino.arduinoide -y
flatpak remove --unused

 

Other Articles:

How to install Rstudio Desktop or server in Debian 11 
3 Ways to Install KDE Kate Text Editor on Ubuntu 22.04
Install AngularJS in Ubuntu 22.04 
How to Enable SSH server on Ubuntu 22.04
2 ways to install a LAMP server on Ubuntu 22.04

 

 

 

1 thought on “How to Install Arduino IDE on Ubuntu 22.04 | 20.04 LTS”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.