linux - 使用 yum 在 CentOS 上更新 MongoDB 2.6 错误

标签 linux mongodb centos upgrade yum

我正在尝试在我的 64 位 CentOS 机器上将 MongoDB 2.4 更新到 2.6。我删除了旧的 10gen 存储库包并使用新配置创建了/etc/yum.repos.d/mongodb.repo 文件,如 here 所述.

但是,当我运行 sudo yum install mongodb-org 时,出现以下错误:

错误:mongodb-org 与 mongodb-org-server 冲突

这是 shell 中的输出:

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

有没有人遇到过类似的事情?这里最好的行动方案是什么?我应该尝试使用 --skip-broken 选项吗?几天前我在一个新盒子里进行了全新安装,没有遇到任何问题。

感谢您对此的帮助。

最佳答案

我最好的猜测是当他们更新到版本 2.6.1-0.1.rc0 时,yum build 被破坏了。

对于临时修复,您可以:

试试不稳定的版本,目前是2.5.5

yum install mongodb-org-unstable

或者操作系统自带的常规mongodb包

yum install -y mongodb mongodb-server

关于linux - 使用 yum 在 CentOS 上更新 MongoDB 2.6 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23231716/

相关文章:

linux - 如何处理数千个文件夹。需要将每个x文件夹移动到新文件夹

operating-system - 减少 CentOS 中的进程核心

c# - C# 中的 MongoDb 投影

mongodb - mongodb $filter 操作是否适用于嵌套数组?

php - fatal error : Class 'mysqli' not found in

caching - 使用 Varnish 更改 header 中的引荐来源网址

c++ - 获取 POSIX 信号量的名称

c++ - 尝试在 Visual Studio 工作时使用 CLION 的 Boost 1.69.0,但出现奇怪的 MINGW 错误

mysql - 更改mysql数据库的位置

mongodb - Spring Data - MongoDB - 使用 GroupOperation 在聚合管道中进行文本搜索和总分