Binary Installation on Ubuntu#

Garden binaries are provided for Ubuntu Focal and Jammy. The Garden binaries are hosted in the packages.osrfoundation.org repository. To install all of them, the metapackage gz-garden can be installed.

WARNING: for gazebo-classic (eg. `gazebo11`) users: `gz-garden` cannot be installed alongside with `gazebo11` by default. To facilitate the migration this can be done using the instruction detailed in Installing Gazebo11 side by side with new Gazebo

First install some necessary tools:

sudo apt-get update
sudo apt-get install lsb-release curl gnupg

Then install Gazebo Garden:

sudo curl https://packages.osrfoundation.org/gazebo.gpg --output /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null
sudo apt-get update
sudo apt-get install gz-garden

All libraries should be ready to use and the gz sim app ready to be executed.

Head back to the Getting started page to start using Gazebo!

Uninstalling binary install#

If you need to uninstall Gazebo or switch to a source-based install once you have already installed the library from binaries, run the following command:

sudo apt remove gz-garden && sudo apt autoremove

Troubleshooting#

See Troubleshooting