This page explains how to install Arduino IDE or Arduino software on Ubuntu. The following has been performed with the following versions:
The version proposed in the software center is currently version 1.8.5. Do not install this version, access to USB port will be restricted. Compilation works fine, but uploading is not working expected if the IDE is started as root. If you do so your sketch will be created as root. The best option is to install the IDE by downloading the current version from the Arduino website.
On the Arduino download software page, download the Linux 64 bits version.
In the file manager, locate and extract the archive:
Once the archive is extracted, move to the extracted folder. Right click
in the folder containing files and select
Open in Terminal :
Download the archive from arduino website:
wget -O arduino.tar.xz https://www.arduino.cc/download.php?f=/arduino-1.8.10-linux64.tar.xz
Extract the archive:
tar -xvf arduino-1.8.10-linux64.tar.xz
Move to the extracted folder:
Run the following command from the terminal:
Arduino IDE is installed. Before starting your IDE, run the following command. This
command will add the current user (you) to the
dialout group. You'll gain access
to the USB ports:
sudo usermod -a -G dialout $USER
After adding the current user to the
dialout group, you have to close the Ubuntu
session or restart your computer for changes to be taken into account.
In the terminal the following command starts the IDE: