python3-rosdep have unmet dependencies when source build

asked 2021-02-23 07:13:12 -0500

Chenxuan gravatar image

updated 2021-02-23 07:13:58 -0500

I would like to use and simultaneously . has been installed already and I followed there instruction to source build
I got this error message when I execute sudo apt install -y python3-rosdep

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:
python3-rosdep : Depends: python3-catkin-pkg but it is not going to be installed
              Depends: python3-rosdistro but it is not going to be installed
              Depends: python3-rospkg but it is not going to be installed
              Depends: python3-rosdep-modules (>= 0.20.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

It seem that there have a conflict between python3-rosdep and python-rosdep.
If I install packages whice have dependencies with python3-rosdep , it will uninstall my ROS 1 installation because of conflicting files.
Is there only one way that I have to build all ROS system with python3-rosdep ?
Thanks in advance.

OS : ubuntu 18.04
ROS 1 : Melodic
ROS 2 : Dashing
both ROS system were built from binary

edit retag flag offensive close merge delete