Arduino Playground is read-only starting December 31st, 2018. For more info please look at this Forum Post

Install Arduino on Ubuntu Linux

Please note that the informations below could be outdated. All the latest and updated instructions can be found here: https://www.arduino.cc/en/Guide/Linux

Table of Contents

Ubuntu 12.04 (Precise Pangolin) and newer

Downloading and maintaining manually

A new version of the Arduino can be downloaded from the Arduino website. After downloading it can be unpacked anywhere, and it should run out of the box (tested August 8 2013 with Uno R3, December 25 2015 with LilyPad USB).

Using this method Arduino software won't automatically be updated, so you should check Arduino website every few months and download a new version if one is available. You will also have to start the Arduino application by opening the folder where you unpacked it to (or integrate it with Ubuntu by providing a .desktop file). You won't find it in the same place where other applications of your Ubuntu computer are. Hopefully the Ubuntu package repositories will catch up to solve this unconvenience.

Via Ubuntu Software Center or apt

WARNING!!! THESE INSTRUCTIONS WILL INSTALL AN EXTREMELY OUTDATED AND NON-STANDARD VERSION OF THE ARDUINO IDE. NOT RECOMMENDED!!!!! Open Ubuntu Software Center and search for Arduino. Alternatively, you can install via the command line by running the following in a Terminal

 
sudo apt-get update && sudo apt-get install arduino arduino-core  

The above installs a package from the Ubuntu software repositories, which currently is the old Arduino version 1.0.5.

Ubuntu 10.10 (Maverick Meerkat) and newer

An arduino package is available in the "universe" repository of Ubuntu. Use the "Ubuntu Software Center" (or your favorite package manager, i.e. synaptic or apt-get) to install the package "arduino." Available on all architectures. For more information see the Debian entry in Playground. IMPORTANT NOTE: The "Arduino IDE" package in the Ubuntu 10.10 (Maverick) repository is version 18 and does not support the latest Arduino UNO, see below.

If you own an Uno or Mega 2560 and use Ubuntu 10.10

the Ubuntu repositories are a long way behind, so the default package in Maverick does not support those boards. Version 0018 of the IDE is from January 2010, the Uno and Mega2560 were released in September/October 2010.

To install, you have to enable the maverick-backports repository in the "Ubuntu Software Center" settings or do the following:

  1. Download the .debs for arduino, arduino-core, and librxtx-java into a clean directory from
    http://packages.ubuntu.com/maverick-backports/librxtx-java
    http://packages.ubuntu.com/maverick-backports/arduino-core
    http://packages.ubuntu.com/maverick-backports/arduino
    (go down to the part that says "Download {package-name}" and choose your architecture or "all")
  2. cd to the directory you downloaded the .debs into and
  3. sudo dpkg -i *.deb
  4. you can delete the download directory if you'd like when you're done

Alternatively, you can use:

Easy walkthrough with lots of screen shots of the official IDE from the main Arduino site. If you have a Uno or Mega 2560 go here first. The repository version 0018 does not work with these later boards. This is for 32 & 64 bit Ubuntu 10.10 but should work will all versions after 9.04,ideal you're new to Ubuntu."Complete Numpties Guide to Arduino on Ubuntu"

All Ubuntu versions (old and new) can get the newest packages from Debian Sid

You can always install the newest version of Arduino from Debian unstable. Just download the .debs for arduino, arduino-core, and librxtx-java and double click on them or:

  1. Download arduino and arduino-core .debs into a clean directory from:
    http://packages.debian.org/sid/arduino-core
    http://packages.debian.org/sid/arduino
    (Uno/Mega2560 owners also need http://packages.debian.org/sid/librxtx-java)
  2. cd to your download directory and sudo dpkg -i *.deb

Ubuntu (without 'arduino' package)

Tested with Ubuntu 10.04 LTS and Ubuntu 10.10, but should work with older releases.

  • download and install the latest release
  • install the compiler (gcc-avr) and the libraries (avr-libc) packages: sudo apt-get install gcc-avr avr-libc
  • if you use the USB port to dialog, you should add yourself to the group 'dialout' in order to have write permissions on that port: sudo usermod -aG dialout <myuser>