mongodb-org与mongodb-10gen-server冲突

时间:2014-04-22 22:24:47

标签: mongodb

我遇到在CentOS上使用yum安装Mongo的问题。我已关注these instructions,但在安装mongodb-org软件包时遇到错误:

$ sudo yum install mongodb-org
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: mirrors.cmich.edu
 * extras: mirror.es.its.nyu.edu
 * updates: mirror.kentdigital.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mongodb-org.x86_64 0:2.6.1-0.1.rc0 will be installed
--> Processing Dependency: mongodb-org-server = 2.6.1 for package: mongodb-org-2.6.1-0.1.rc0.x86_64
--> Processing Dependency: mongodb-org-shell = 2.6.1 for package: mongodb-org-2.6.1-0.1.rc0.x86_64
--> Processing Dependency: mongodb-org-mongos = 2.6.1 for package: mongodb-org-2.6.1-0.1.rc0.x86_64
--> Processing Dependency: mongodb-org-tools = 2.6.1 for package: mongodb-org-2.6.1-0.1.rc0.x86_64
--> Running transaction check
---> Package mongodb-org-mongos.x86_64 0:2.6.1-0.1.rc0 will be installed
---> Package mongodb-org-server.x86_64 0:2.6.1-0.1.rc0 will be installed
---> Package mongodb-org-shell.x86_64 0:2.6.1-0.1.rc0 will be installed
---> Package mongodb-org-tools.x86_64 0:2.6.1-0.1.rc0 will be installed
--> Processing Conflict: mongodb-org-2.6.1-0.1.rc0.x86_64 conflicts mongo-10gen-server
--> Finished Dependency Resolution
Error: mongodb-org conflicts with mongodb-org-server
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

似乎mongodb包与自身相冲突。有没有人知道这里发生了什么?我还可以确认机器上当前没有安装其他mongo软件包。

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。来自MongoDB的Ernie Hershey通过回答我在MongoDB用户组中的帖子帮助我解决了这个问题:

https://groups.google.com/forum/#!topic/mongodb-user/5xRQW7ER4hE

在运行yum makecache之前,您基本上需要运行yum install mongodb-org,因为MongoDB RC包的生成方式存在错误。这解决了我的问题。