Robotics StackExchange | Archived questions

Problem Install: Melodic

I am using Ubuntu 17.10, and now I am trying to install version Melodic ROS. But I got this error.

sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libopencv-dev : Depends: libopencv3.2-java (= 3.2.0+dfsg-4osrf2~artful) but it is not going to be installed
                 Recommends: opencv-data but it is not going to be installed
 python-rosinstall : Depends: python-vcstools (>= 0.1.38) but it is not going to be installed
                     Depends: python-rosdistro (>= 0.3.0) but it is not going to be installed
                     Depends: python-catkin-pkg but it is not going to be installed
                     Depends: subversion but it is not going to be installed
                     Depends: mercurial but it is not going to be installed
                     Depends: bzr but it is not going to be installed
 python-rosinstall-generator : Depends: python-catkin-pkg (>= 0.1.28) but it is not going to be installed
                               Depends: python-rosdistro (>= 0.6.8) but it is not going to be installed
                               Depends: python-rospkg but it is not going to be installed
 python-wstool : Depends: python-vcstools (>= 0.1.38) but it is not going to be installed
                 Depends: subversion but it is not going to be installed
                 Depends: mercurial but it is not going to be installed
                 Depends: bzr but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Could someone can help to to fix it?

Asked by dlrlr on 2018-05-24 10:49:42 UTC

Comments

Answers

try sudo apt-get install aptitude then sudo aptitude install python-rosinstall python-rosinstall-generator python-wstool. This should install the unmet dependencies too!

Asked by cmfuhrman on 2018-05-24 10:51:56 UTC

Comments

thanks for your instructions. I didnot succeed. I followed this instruction. Then:sudo apt-get update &sudo apt-get upgrade

Asked by dlrlr on 2018-05-24 14:05:32 UTC

Now it works

Asked by dlrlr on 2018-05-24 14:06:10 UTC

this link no longer works. I have the same issue and the above answer didn't work for me either. mind reiterating what you did to fix it?

Asked by mysteriousmonkey29 on 2020-06-24 16:38:23 UTC

I also had similar issue. The work-around I was successfully able to use was pip-package manager. Try installing python dependencies using pip. To install pip for python2, use sudo apt install python-pip and then do the installation of required packages. For instance, sudo pip install -U rosdep rosinstall_generator vcstool rosinstall.

Asked by adipandas on 2020-06-24 22:52:58 UTC

great, that fixed it for me too, thanks!

Asked by mysteriousmonkey29 on 2020-06-29 08:57:39 UTC