Robotics StackExchange | Archived questions

ROS melodic installation unmet dependencies problem

Hey Guys,

I have tried all the possible solutions posted on ROS and other ubuntu forums. And yet I am unable to solve the error for the held broken packages.

sudo apt install ros-melodic-desktop-full
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-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.

The list of things tried: 1. Used Synaptic pacakge manger to remove ros-melodic 2. Followed this answer

Any suggestions?

Asked by pmuthu2s on 2020-04-17 16:11:54 UTC

Comments

Hi @pmuthu2s,

This line E: Unable to correct problems, you have held broken packages. may be self explanatory. I think you have broken packages in your system and apt is unable to solve that. You may want to check your system packages and solve this broken ones before installing any other package. On the other hand if you can affort it, there is the possibility of reinstalling the OS.

Asked by Weasfas on 2020-04-18 05:40:00 UTC

Hello! I have just met this problem and been obstructed. I have tried many solutions but they don't work. may I ask for your solution ? i really appreciate!

Asked by WuShuangJJ on 2020-08-27 03:44:22 UTC

@WuShuangJJ This is not a forum, it is a Q&A site. As such, please don't post answers that aren't actually answers. I've re-posted your answer as a question comment. Please see the support guidelines for more: http://wiki.ros.org/Support

Good luck getting your issue resolved!

Asked by jarvisschultz on 2020-08-27 13:43:36 UTC

Answers

As strange as it sounds, this happened to me while I try to install ROS over teamviewer on a live USB. Yes, teamviewer.

From the start menu, find the software / updates section. Open this tab: image description Select all first 4 checkboxes.* Then click on [close] an then [close].

Go to terminal and run

sudo apt update && sudo apt install ros-melodic-desktop full
  • All of those four might not be necessary but click anyway.

Asked by Orhan on 2020-05-16 16:48:36 UTC

Comments

Hey! Thanks!

I tried this before, but did not work! I will update the answer with the methodology that worked for me!

Asked by pmuthu2s on 2020-05-19 03:44:55 UTC

Have you solved this problem?

Asked by Audric Saragih on 2020-11-24 07:36:16 UTC

I remembered solving it somehow using sudo aptitude

Give it a check on the documentation !

Asked by pmuthu2s on 2020-11-24 09:48:06 UTC

Provide a possibility 1. Provide a possibility: check the software with the updated server and choose the right 2. Open all software updates and update them. After the update is complete it will reboot and try to install ROS again

Asked by XuxuZHU on 2021-05-07 18:28:30 UTC

Comments