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
Originally posted by apache8080 on ROS Answers with karma: 1 on 2018-08-01
Post score: 0
Original comments
Comment by gvdhoorn on 2018-08-01:
Do you have Gazebo installed from the osrf repositories by any chance?
When running:
sudo rm /var/cache/apt/archives/lock
don't you mean "after running .."? That command only deletes a file, it does not ask apt
to install any packages.
Comment by apache8080 on 2018-08-01:
I accidentally put the wrong command in my question. I have now updated it.
Comment by gvdhoorn on 2018-08-02:
But did you install Gazebo sometime earlier and from the OSRF repositories?
Comment by dslowik on 2019-10-27:
Use aptitude as explained here. It guides you through fixing dependencies.