Unable to install Rviz in Indigo
Attempting to install Rviz on Ubuntu 14/Indigo results in the error:
$ sudo apt-get install ros-indigo-rviz
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ros-indigo-rviz : Depends: libgl1-mesa-dev but it is not going to be installed
Depends: libglu1-mesa-dev but it is not going to be installed
Depends: libqt4-opengl-dev but it is not going to be installed
Depends: ros-indigo-resource-retriever but it is not going to be installed
unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed
Depends: libcheese7 (>= 3.0.1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
All other Indigo packages install just fine. Also, running dpkg --get-selections | grep hold
shows no held packages.
What's causing this error? How do I install Rviz on Indigo?
I'm running Ubuntu 14.04.5.
Edit: I get a similar message on Ubuntu 16.04 with Kinetic:
$ sudo apt-get install ros-kinetic-rviz
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ros-kinetic-rviz : Depends: libgl1-mesa-dev but it is not going to be installed
Depends: libglu1-mesa-dev but it is not going to be installed
Depends: ros-kinetic-image-geometry but it is not going to be installed
Depends: ros-kinetic-python-qt-binding but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The output of dpkg -l | grep libgl1-mesa
is:
ii libgl1-mesa-dri:amd64 11.2.0-1ubuntu2.2 amd64 free implementation of the OpenGL API -- DRI modules
ii libgl1-mesa-dri:i386 11.2.0-1ubuntu2.2 i386 free implementation of the OpenGL API -- DRI modules
rc libgl1-mesa-dri-lts-vivid:amd64 3:13 amd64 Transitional package for libgl1-mesa-dri-lts-vivid
rc libgl1-mesa-dri-lts-vivid:i386 3:13 i386 Transitional package for libgl1-mesa-dri-lts-vivid
ii libgl1-mesa-glx:amd64 11.2.0-1ubuntu2.2 amd64 free implementation of the OpenGL API -- GLX runtime
ii libgl1-mesa-glx:i386 11.2.0-1ubuntu2.2 i386 free implementation of the OpenGL API -- GLX runtime