Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apt install fails on noetic (testing) #87

Closed
Timple opened this issue May 7, 2021 · 6 comments
Closed

apt install fails on noetic (testing) #87

Timple opened this issue May 7, 2021 · 6 comments

Comments

@Timple
Copy link

Timple commented May 7, 2021

Can be reproduced by this minimal dockerfile:

FROM ros:noetic-robot
RUN sed -i 's|ros/ubuntu|ros-testing/ubuntu|g' /etc/apt/sources.list.d/ros1-latest.list
RUN apt-get update -qq && apt-get install -y ros-noetic-hector-gazebo-plugins

Outcome:

Step 3/3 : RUN apt-get update -qq && apt-get install -y ros-noetic-hector-gazebo-plugins
 ---> Running in 9f6b4ea44309
Reading package lists...
Building dependency tree...
Reading state information...
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-hector-gazebo-plugins : Depends: libgazebo11 (>= 11.3.0) but it is not going to be installed
                                    Depends: gazebo11 but it is not going to be installed
                                    Depends: ros-noetic-gazebo-ros but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c apt-get update -qq && apt-get install -y ros-noetic-hector-gazebo-plugins' returned a non-zero code: 100
@Timple Timple changed the title apt install fails on noetic apt install fails on noetic (testing) May 7, 2021
@StefanFabian
Copy link
Member

I've noticed this in a different context but this is not caused by us.
There are some shenanigans going on with the gazebo11 packages.
Seems like a version conflict in one of gazebo's dependencies.
(If this is the same problem, you're encountering.)
I've done the command in an interactive docker container:

$ sudo apt install ros-noetic-hector-gazebo-plugins
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-hector-gazebo-plugins : Depends: libgazebo11 (>= 11.3.0) but it is not going to be installed
                                    Depends: gazebo11 but it is not going to be installed
                                    Depends: ros-noetic-gazebo-ros but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ sudo apt install gazebo11
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:
 gazebo11 : Depends: libgazebo11 (= 11.5.0-1~focal) but it is not going to be installed
            Recommends: gazebo11-plugin-base but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ sudo apt install libgazebo11
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:
 libgazebo11 : Depends: libignition-common3 (>= 3.12.0) but 3.11.1-1~focal is to be installed
               Depends: libignition-math6 (>= 6.8.0) but 6.7.0-1~focal is to be installed
E: Unable to correct problems, you have held broken packages.

@Timple
Copy link
Author

Timple commented May 7, 2021

Aha, maybe related to this then: ros/rosdistro#27851

@StefanFabian
Copy link
Member

No, that issue only results in me getting daily emails from the build farm :(
It appears that the gazebo packages were built against newer versions of the libignition libraries than are available in the ubuntu repositories.
It needs >=3.12 but only 3.11 is available.

@Timple
Copy link
Author

Timple commented May 7, 2021

So the rosdistro repo would be the best place for this issue?

@StefanFabian
Copy link
Member

There seems to be an issue in the gazebo repository already gazebosim/gazebo-classic#2995

@Timple
Copy link
Author

Timple commented May 8, 2021

Verified to be working again

@Timple Timple closed this as completed May 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants