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

Problem Install: Melodic

asked 2018-05-24 10:49:42 -0600

dlrlr gravatar image

updated 2018-05-24 11:37:28 -0600

gvdhoorn gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-05-24 10:51:56 -0600

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

edit flag offensive delete link more

Comments

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

dlrlr gravatar image dlrlr  ( 2018-05-24 14:05:32 -0600 )edit

Now it works

dlrlr gravatar image dlrlr  ( 2018-05-24 14:06:10 -0600 )edit

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?

mysteriousmonkey29 gravatar image mysteriousmonkey29  ( 2020-06-24 16:38:23 -0600 )edit

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.

adipandas gravatar image adipandas  ( 2020-06-24 22:52:58 -0600 )edit

great, that fixed it for me too, thanks!

mysteriousmonkey29 gravatar image mysteriousmonkey29  ( 2020-06-29 08:57:39 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-05-24 10:49:42 -0600

Seen: 2,972 times

Last updated: May 24 '18