Unmet dependencies when installing Melodic on Ubuntu 18.04
When running: sudo apt install ros-melodic-desktop-full
I get the following error:
The following packages have unmet dependencies:
ros-melodic-desktop-full : Depends: ros-melodic-desktop but it is not going to be installed
Depends: ros-melodic-perception but it is not going to be installed
Depends: ros-melodic-simulators but it is not going to be installed
Depends: ros-melodic-urdf-sim-tutorial but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I have followed the instructions here: http://wiki.ros.org/melodic/Installation/Ubuntu
I am running Ubuntu 18.04
Do you have Gazebo installed from the osrf repositories by any chance?
don't you mean "after running .."? That command only deletes a file, it does not ask
apt
to install any packages.I accidentally put the wrong command in my question. I have now updated it.
But did you install Gazebo sometime earlier and from the OSRF repositories?
Use aptitude as explained here. It guides you through fixing dependencies.