[SERVER-13689] MongoDB 2.6 Update Error on CentOS using yum Created: 23/Apr/14  Updated: 10/Dec/14  Resolved: 23/Apr/14

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 2.6.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Juan Carlos Farah Assignee: Ernie Hershey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

1) Stop: mongod version 2.4.3
2) Remove 10gen.repo in /etc/yum.repos.d
3) Create a /etc/yum.repos.d/mongodb.repo with the new configuration
4) Run: yum install mongodb-org

Participants:

 Description   

I'm trying to update MongoDB 2.4 to 2.6 on my 64-bit CentOS machine. I have removed the old 10gen repository package and created the /etc/yum.repos.d/mongodb.repo file with the new configuration as explained here.

However, when I run sudo yum install mongodb-org, I get the following error:

Error: mongodb-org conflicts with mongodb-org-server

This is the output in the 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



 Comments   
Comment by Matt Kangas [ 23/Apr/14 ]

Juan, since you report that your problem is resolved I am closing this ticket. Feel free to reopen it if needed.

Comment by Juan Carlos Farah [ 23/Apr/14 ]

Hi Matt. The contents of my 10gen.repo were these. (I removed it before doing yum install mongodb-org)

[10gen]
name=10gen Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
gpgcheck=0
enabled=1

And my new mongodb.repo has this:

[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1

I was able to fix the problem by running "yum makecache" before "yum install mongodb-org", as recommended by Ernie Hershey as a reply to my post in the MongoDB Google Group:

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

Comment by Matt Kangas [ 23/Apr/14 ]

Juan, can you provide the contents of your old 10gen.repo file (if you still have it) and confirm that you new mongodb.repo file matches the recommended 2.6 versionl?

I trust that it does, but I want to eliminate the possibility of a mismatch.

I see that you are upgrading from 2.4.3 to 2.6.1-rc0. The problem you are seeing may be related to SERVER-13563

Generated at Thu Feb 08 03:32:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.