ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

ROS cannot install Noetic due to unmet dependencies 20.04

asked 2021-05-06 20:26:31 -0500

vchalk gravatar image

updated 2021-05-06 23:02:14 -0500

Hi all,

Today I've tried installing ROS Noetic on a fresh install on 20.04 Ubuntu. Following the instructions on the ROS wiki for installation. I've now tried this both in a VM on a desktop, and without a VM on a laptop. Both with fresh installs on 20.04 LTS. In both setups I am met with the error:

sudo apt install ros-noetic-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-noetic-desktop-full : Depends: ros-noetic-simulators but it is not going to be installed
                           Depends: ros-noetic-urdf-sim-tutorial but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Does anyone know how to correct this?

edit retag flag offensive close merge delete

Comments

Check out #q279780, #q282399, #q315820, #q243920. Using aptitude in place of apt might be a good start.

abhishek47 gravatar image abhishek47  ( 2021-05-06 23:48:43 -0500 )edit

4 Answers

Sort by ยป oldest newest most voted
5

answered 2021-05-07 10:43:29 -0500

gvdhoorn gravatar image

updated 2021-05-07 11:58:28 -0500

It's likely you are running into osrf/gazebo#2995.

The Pull Request fixing that is already merged: ros-infrastructure/reprepro-updater#114.

It will take some time for fixes to propagate to the main repositories however.

If you must absolutely install Noetic right now, you could try adding the Gazebo package repositories, which should have the needed package(s).

Note: you should only need to add the repository. You do not need to install Gazebo separately.

edit flag offensive delete link more

Comments

Thanks, adding the Gazebo package repositories worked for me following this process:

sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'

wget https://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -

dont forget to update sources:

sudo apt update

then you sould be able to install ros following these instructions

totosolat gravatar image totosolat  ( 2021-05-07 12:15:32 -0500 )edit

Note: this is just a work-around until the problematic packages have been added to the ROS repositories.

gvdhoorn gravatar image gvdhoorn  ( 2021-05-07 12:25:59 -0500 )edit
1

answered 2021-05-07 10:41:40 -0500

frank-qcd-qk gravatar image

There seems to be an out dated dependencies for the ignition physics library. I resolved the issue by doing:

sudo apt-get update
sudo apt-get install lsb-release

sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'

wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -

and then use aptitude, it resolved the problem

The above install instruction is basically from https://ignitionrobotics.org/api/phys...

edit flag offensive delete link more
0

answered 2021-05-11 10:04:36 -0500

Hi, in my case i had an unmet dependency in ubuntu 20.04 lts, which was libc6, and there was no libc6-dev because of the version conflict just reinstall libc6 with the same requirement of libc6-dev and then install libc6-dev. you'll be able to install noetic successfully. in my case libc6-dev needs to be with 2.31-0ubuntu9.2 but the libc6 was 2.31-0ubuntu9.3, so i reinstalled libc6 with 2.31-0ubuntu9.2 and things went fine after that. (don't remove anything, just reinstall)

sudo apt install --reinstall libc6 = 2.31-0ubuntu9.2
edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2021-05-06 20:24:58 -0500

Seen: 2,442 times

Last updated: May 11 '21