mongodb-org与mongodb-10gen-server发生冲突 [英] mongodb-org conflicts with mongodb-10gen-server
问题描述
我在CentOS上使用yum安装Mongo时遇到问题.我已按照这些说明进行操作,但在安装mongodb-org
软件包时出现错误:
I'm running into problems installing Mongo using yum on CentOS. I've followed these instructions but am getting errors when installed the mongodb-org
package:
$ 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软件包.
It seems like the mongodb package is conflicting with itself. Does anybody have an idea what's going on here? I can also confirm that there are no other mongo packages currently installed on the machine.
推荐答案
我只是遇到了同样的问题.来自MongoDB的Ernie Hershey通过回答我在MongoDB用户组中的帖子来帮助我解决了这个问题:
I just ran into the same problem. Ernie Hershey from MongoDB helped me resolve it by answering my post in the MongoDB user group:
https://groups.google.com/forum/#! topic/mongodb-user/5xRQW7ER4hE
由于运行MongoDB RC软件包的方式存在错误,因此您基本上需要在运行yum install mongodb-org
之前先运行yum makecache
.那为我解决了问题.
You basically need to run yum makecache
before running yum install mongodb-org
because of a bug in how MongoDB RC packages are generated. That solved the problem for me.
这篇关于mongodb-org与mongodb-10gen-server发生冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!