Rviz2 and Gazebo dependencies conflict
Hi,
what's the correct way for installing Gazebo in a system with ROS2 Crystal?
The following instructions are not working at the moment
$ docker run -it osrf/ros:crystal-desktop bash
$ apt-get update
$ curl -sSL http://get.gazebosim.org | sh
The following packages have unmet dependencies:
libgazebo9-dev : Depends: libavdevice-dev but it is not going to be installed
Depends: libignition-fuel-tools1-dev but it is not going to be installed
Depends: libignition-common-dev but it is not going to be installed
Depends: libgazebo9 (= 9.8.0-1~bionic) but it is not going to be installed
Depends: gazebo9-plugin-base (= 9.8.0-1~bionic) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Note that I get a very similar error also if I run
$ apt-get install -y ros-crystal-gazebo-ros-pkgs
As a solution, I have explicitly installed some dependencies before calling the gazebo install command
$ apt-get install -y \
libwayland-egl1 \
libsdl2-2.0-0 \
libavdevice57
$ apt-get install -y \
libgazebo9-dev \
gazebo9
$ apt-get install -y ros-crystal-gazebo-ros-pkgs
This works, but as a result I can't run rviz2
anymore.