Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

First uninstall the default Gazebo-

$ sudo apt-get remove ros-<ros_version>-gazebo*

$ sudo apt-get remove libgazebo*

$ sudo apt-get remove gazebo*

Update the repository-

$ sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable lsb_release -cs main" > /etc/apt/sources.list.d/gazebo-stable.list'

$ wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -

$ sudo apt-get update

Install Gazebo-

$ sudo apt-get install ros-melodic-gazebo-ros-pkgs ros- 'ROS_VERSION' -gazebo-ros-control

in my case- ROS_VERSION = melodic

$ sudo apt-get install ros-melodic-gazebo-ros-pkgs ros-melodic-gazebo-ros-control