gazebo command not found

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

Introduction

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

gazebo: command not found

or when using sudo you get the following error message

sudo: gazebo: command not found

Solutions to gazebo: command not found

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

In Ubuntu gazebo is provided by gazebo package.

gazebo is:

Gazebo is a multi-robot simulator for outdoor environments. Like Stage (part of the Player project), it is capable of simulating a population of robots, sensors and objects, but does so in a three-dimensional world. It generates both realistic sensor feedback and physically plausible interactions between objects (it includes an accurate simulation of rigid-body physics).

This package contains then main application binaries

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

sudo apt-get -y install gazebo

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

You can also use apt command to install gazebo.

sudo apt -y install gazebo

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

sudo aptitude install gazebo

Summary

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