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

Is there a way to run mongodb_store with mongodb-org?

asked 2020-12-16 03:40:50 -0600

stefan_frei gravatar image

I have installed the official mongodb-org package and now I try to install mongodb_store. This however requires me to unistall mongodb-org (official) and install mongodb (unofficial ubuntu version). Is it possible to use the content of mongodb_store with mongodb-org? I am on ubuntu 18.04.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-12-16 10:23:56 -0600

It should absolutely work with mongodb-org. I would assume that the dependencies of the mongodb_store package are wrongly stated in that the dependency should be (mongodb | mongodb-org) and even that is not quite accurate, it should probably be just the server: (mongodb-server | mongodb-org-server). So I think your issue is just the installation not the usage. You could get around that in several ways by ignoring unmet dependencies, or you might be able to build mongodb_store from source.

edit flag offensive delete link more

Comments

Thanks for the answer, however ignoring mongodb does not quite work:

$ sudo apt-get install ros-melodic-mongodb-store mongodb-                               
Reading package lists... Done                                                                        
Building dependency tree
Reading state information... Done
Package 'mongodb' is not installed, so not removed
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-melodic-mongodb-store : Depends: mongodb but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I will try out to build mongodb_store from source.

stefan_frei gravatar image stefan_frei  ( 2020-12-16 14:39:22 -0600 )edit

There were other suggestions in that link. I think the easiest would actually be to download the deb file for mongodb_store, unbundle it, change the control file manually to set the dependency as I suggested, rebunde the deb file and install it (details in one of the answers in my link). But building from source might be relatively straightforward as well.

chfritz gravatar image chfritz  ( 2020-12-16 14:45:53 -0600 )edit

Question Tools

Stats

Asked: 2020-12-16 03:40:50 -0600

Seen: 172 times

Last updated: Dec 16 '20