Unmet dependencies: python-catkin-pkg : Conflicts: catkin but 0.7.8-1 is to be installed
I followed the instructions to install ros-melodic-desktop-full
on Ubuntu 18.04 from http://wiki.ros.org/melodic/Installat... . I noticed the command rosbag was not installed which requires installing python-rosbag
.
When I try sudo apt install python-rosbag
, I get the following error:
The following packages have unmet dependencies:
python-catkin-pkg-modules : Conflicts: catkin but 0.7.8-1 is to be installed
python-catkin-pkg : Conflicts: catkin but 0.7.8-1 is to be installed
Running sudo aptitude install python-rosbag
doesn't resolve the issue. No hints either on http://wiki.ros.org/UpstreamPackages . I made sure all repositories are turned on, and 'source /opt/ros/melodic/setup.bash' is at the of my .bashrc.
Does anyone else have any other suggestions?
Thanks in advance
Did you also install the
catkin
package separately?ros-melodic-desktop-full
depends onros-melodic-catkin
which depends onpython-catkin-pkg
andpython-catkin-pkg-modules
. The last two conflict withcatkin
. You mention you used aptitude, but it "didn't solve the issue"...I would think that aptitude would be capable of resolving this if you really parsed the options it provides. Regardless, the issue seems to be that you likely installed some packages manually that you shouldn't have and now dependencies can't be automatically installed because they conflict.
Note that
apt-cache depends <PKGNAME>
can tell you dependencies. The--recurse
option will produce recursive dependencies. Also I usually usedpkg -l | grep <PKGNAME>
to search for packages that I do have installed. In that output anything with anii
at the beginning of the line is installed@jarvisschultz: the issue is not with Catkin, but with the
python-rosbag
upstream package trying to bring in conflicting dependencies.Yeah you must be right, and I should have gotten that from him explicitly mentioning he installed that manually.