arduino command not found

In this troubleshooting guide we learn how to fix arduino command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

arduino: command not found

or when using sudo you get the following error message

sudo: arduino: command not found

Solutions to arduino: command not found

How To Fix arduino: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu arduino is provided by arduino package.

arduino is:

Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It’s intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments.

This package will install the integrated development environment that allows for program writing, code verification, compiling, and uploading to the Arduino development board. Example code will also be installed.

Some base AVR libraries will be provided by the depending additional package arduino-core-avr. More libraries can be installed within the IDE itself by calling the libarary manager. This requires a working internet access.

To fix this problem, we can install more using the command below.

sudo apt-get -y install arduino

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install arduino.

sudo apt -y install arduino

Or if you have aptitude installed you can use the following command.

sudo aptitude install arduino

Summary

In this tutorial we learn how to fix arduino command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.