安装MongoDB 3.0 CentOS - 冲突

时间:2015-03-11 14:01:02

标签: mongodb centos

尝试在Centos 6.6上安装MongoDB 3 - 但不断收到以下错误。我尝试过其他一些帖子中列出的yum makecache解决方案。但无济于事。

我也是,目前没有任何mongo安装 - 这是一个全新的CentOS盒子。

下面的完整输出 - 没有运气。有任何想法吗?

$ yum install mongodb-org-3.0.0
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.openitc.uk
 * extras: mirror.ukhost4u.com
 * updates: mirror.econdc.com
Resolving Dependencies
--> Running transaction check
---> Package mongodb-org.x86_64 0:3.0.0-2.el6 will be installed
--> Processing Dependency: mongodb-org-server = 3.0.0 for package: mongodb-org-3.0.0-2.el6.x86_64
--> Processing Dependency: mongodb-org-tools = 3.0.0 for package: mongodb-org-3.0.0-2.el6.x86_64
--> Processing Dependency: mongodb-org-mongos = 3.0.0 for package: mongodb-org-3.0.0-2.el6.x86_64
--> Processing Dependency: mongodb-org-shell = 3.0.0 for package: mongodb-org-3.0.0-2.el6.x86_64
--> Running transaction check
---> Package mongodb-org-mongos.x86_64 0:3.0.0-2.el6 will be installed
---> Package mongodb-org-server.x86_64 0:3.0.0-2.el6 will be installed
---> Package mongodb-org-shell.x86_64 0:3.0.0-2.el6 will be installed
---> Package mongodb-org-tools.x86_64 0:3.0.0-2.el6 will be installed
--> Processing Conflict: mongodb-org-mongos-3.0.0-2.el6.x86_64 conflicts mongo-10gen-server
--> Processing Conflict: mongodb-org-mongos-3.0.0-2.el6.x86_64 conflicts mongo-10gen
--> Processing Conflict: mongodb-org-tools-3.0.0-2.el6.x86_64 conflicts mongo-10gen-server
--> Processing Conflict: mongodb-org-tools-3.0.0-2.el6.x86_64 conflicts mongo-10gen
--> Processing Conflict: mongodb-org-shell-3.0.0-2.el6.x86_64 conflicts mongo-10gen-server
--> Processing Conflict: mongodb-org-shell-3.0.0-2.el6.x86_64 conflicts mongo-10gen
--> Processing Conflict: mongodb-org-3.0.0-2.el6.x86_64 conflicts mongo-10gen-server
--> Processing Conflict: mongodb-org-server-3.0.0-2.el6.x86_64 conflicts mongo-10gen
--> Finished Dependency Resolution
Error: mongodb-org-server conflicts with mongodb-org-3.0.0-2.el6.x86_64
Error: mongodb-org-shell conflicts with mongodb-org-3.0.0-2.el6.x86_64
Error: mongodb-org conflicts with mongodb-org-server-3.0.0-2.el6.x86_64
Error: mongodb-org-mongos conflicts with mongodb-org-server-3.0.0-2.el6.x86_64
Error: mongodb-org-tools conflicts with mongodb-org-server-3.0.0-2.el6.x86_64
Error: mongodb-org-shell conflicts with mongodb-org-server-3.0.0-2.el6.x86_64
Error: mongodb-org-mongos conflicts with mongodb-org-3.0.0-2.el6.x86_64
Error: mongodb-org-tools conflicts with mongodb-org-3.0.0-2.el6.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

2 个答案:

答案 0 :(得分:0)

我不确切知道发生了什么,但我在CentOS 7上安装了Mongodb 3.0。 起初我做了:

yum install -y mongodb-org --skip-Broken

然后重新运行:

yum install -y mongodb-org

一切正常后。

Installed:
mongodb-org.x86_64 0:3.0.0-3.el7

Dependency Installed:
  mongodb-org-mongos.x86_64 0:3.0.0-3.el7             mongodb-org-server.x86_64 0:3.0.0-3.el7
  mongodb-org-shell.x86_64 0:3.0.0-3.el7              mongodb-org-tools.x86_64 0:3.0.0-3.el7

答案 1 :(得分:0)

我在IRC聊天,这似乎是目前已知的问题,目前正在进行代码审查。解决方案是直接针对正确的安装......使用:

yum install -y mongodb-org-3.0.0-1.el6.x86_64 mongodb-org-mongos-3.0.0-1.el6.x86_64 mongodb-org-tools-3.0.0-1.el6.x86_64 mongodb-org-server-3.0.0-1.el6.x86_64 mongodb-org-shell-3.0.0-1.el6.x86_64 mongodb-org-tools-3.0.0-1.el6.x86_64