MongoDB 2.6 Update Error on CentOS using yum - linux

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
Has anyone else encountered anything similar? What is the best course of action here? Should I try using the --skip-broken option? I did a fresh installation in a new box a couple of days ago and did not encounter any problems.
Thanks for your help with this.

My best guess is that the yum build was broken when they updated to version 2.6.1-0.1.rc0.
For a temporary fix you could:
Try the unstable version, which is currently 2.5.5
yum install mongodb-org-unstable
or the regular mongodb package that comes with OS
yum install -y mongodb mongodb-server

Actually I had the same problem, the process that worked for me was:
Stop all mongo processes
service mongoInstance stop
Remove mongodb
yum remove -y mongodb
If not removed yet
rpm -e --noscripts mongodb-server
After that you may install mongodb-org and re-enable your processes.

During the release of version 2.6.1-rc0, packages were accidentally published into the MongoDB yum and apt repositories such that new and upgrade requests would install the release candidate 2.6.1-rc0 instead of 2.6.0 (stable release).
Users expecting to install, upgrade to, or retain version 2.6.0 may have inadvertently installed version 2.6.1-rc0, which is a release candidate and not recommended for production use. However, we do not expect that accidentally updating to 2.6.1-rc0 will adversely affect your data or operations.
The packages were incorrectly published on April 22, 5:30pm EDT. The issue was resolved on April 23, 11:30AM EDT. Users who attempted to install or upgrade to version 2.6.0 during this time were affected by this issue.
More information for this issue can be found here: https://jira.mongodb.org/browse/SERVER-13691

Ernie Hershey from MongoDB just answered my post on the MongoDB user group:
https://groups.google.com/forum/#!topic/mongodb-user/5xRQW7ER4hE
Basically, there is a bug in how MongoDB RC packages are generated. So you need to run yum makecache before running yum install mongodb-org. That should fix the problem.

Related

NGINX is giving error when i try to install

I am trying to install nginx in
Amazon Linux AMI
but when i try to run command
sudo yum install nginx
error is below
Loaded plugins: langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 0:1.14.0-1.el6.ngx will be installed
--> Processing Dependency: libpcre.so.0()(64bit) for package: nginx-1.14.0-1.el6.ngx.x86_64
--> Finished Dependency Resolution
Error: Package: nginx-1.14.0-1.el6.ngx.x86_64 (nginx)
Requires: libpcre.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I had this exact same problem. Check if you have a file like /etc/yum.repos.d/nginx.repo.
The Nginx install instructions tell us to create such a file and that it should look like this:
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/rhel/$releasever/$basearch/
gpgcheck=0
enabled=1
Those instructions also tell us
Due to differences between how CentOS, RHEL, and Scientific Linux populate the $releasever variable, it is necessary to manually replace $releasever with either 5 (for 5.x) or 6 (for 6.x), depending upon your OS version.
So you need to replace $releasever with the appropriate version of your OS. But when using Amazon Linux AMI (or, in my case, the Azure version), it's not easy to tell what this is.
I found that sudo yum install nginx only worked when I replaced $releasever with 7. When I used 6 instead, I got the exact error as you. Hope this helps!
First run $ sudo yum update -y and after that try to install, if still facing same issue then try with $ sudo yum install nginx --skip-broken

Can't install condor on CentOS

I have been trying to install condor on my centos virtual machine but keep getting the following errors:
--> Finished Dependency Resolution
Error: Package: condor-classads-8.5.5-1.el6.x86_64 (htcondor-development)
Requires: libpcre.so.0()(64bit)
Error: Package: condor-8.5.5-1.el6.x86_64 (htcondor-development)
Requires: ecryptfs-utils
Error: Package: condor-8.5.5-1.el6.x86_64 (htcondor-development)
Requires: libpcre.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I looked around online and tried all the suggestions but nothing's worked. I did the next logical thing and tried to install those packages but doing yum install ecryptfs-utils gave me "Nothing to do," message. Same with libpcre.so.0() I'm a beginner with Linux so I don't know what I'm doing wrong here. Help appreciated.
I had the same issue, and this was happening because yum was trying to install different version of condor. I was running centos 6.6, but yum was trying to install centos 7 (rhel 7) version. The reason for this was, by mistake, I initially downloaded and setup the rhel7 repo details of condor, and results got cached.
The solution is to clear yum cache (yum clean all), download the correct condor repo for your CentOS version/arch (use rpm -q centos-release to find this out), and then install (yum install condor-all).
Get condor from the official location. It has all the binaries it needs.

How do I know last package version for an old Fedora version

I have an old version of Fedora, version 18, and I need to install google-chrome as well as other packages. However when installing google-chrome, version 43, I'm getting errors for a number of dependencies I should have. I think it is due to having an old Fedora version, version 18. I can not update it because Fedora 22 is too slow in my old PC.
[rodolk#Gandalf Downloads]$ sudo yum install google-chrome-stable
Loaded plugins: langpacks, presto, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:43.0.2357.132-1 will be installed
--> Processing Dependency: lsb >= 4.0 for package: google-chrome-stable-43.0.2357.132-1.x86_64
--> Processing Dependency: libnss3.so(NSS_3.14.3)(64bit) for package: google-chrome-stable-43.0.2357.132-1.x86_64
--> Finished Dependency Resolution
Error: Package: google-chrome-stable-43.0.2357.132-1.x86_64 (google-chrome)
Requires: lsb >= 4.0
Error: Package: google-chrome-stable-43.0.2357.132-1.x86_64 (google-chrome)
Requires: libnss3.so(NSS_3.14.3)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[rodolk#Gandalf Downloads]$
Thanks in advance.
One solution could be to tweak your /etc/yum.repos.d/fedora.repo file to force him to point on the fedora 18 old repo. Unfortunately I don't think they are maintained anymore (see the void directory at http://mirror.chpc.utah.edu/pub/fedora/linux/releases/).
Otherwise, you can try older versions of chrome (available at http://www.filehippo.com/download_google_chrome/) but you'll have to refuse any proposed upgrade if you manage to install it. Not a good solution tho, because of possible security breach present in older versions.
I suggest installing Fedora with a lightweight GUI (which I suspect is the reason of the degraded peformances on your old machine), like KDE or xfce. You can find more choices here: https://spins.fedoraproject.org/.

Error Installing phpmyadmin on CentOS

I get the this error when i try yo install phpmyadmin on CentOS 6.5 VPS using this.
COMMAND :
sudo yum install phpmyadmin
ERROR :
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.solarvps.com
* epel: epel.mirror.constant.com
* extras: mirror.wiredtree.com
* rpmforge: repoforge.mirror.constant.com
* updates: mirrors.lga7.us.voxel.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package phpmyadmin.noarch 0:2.11.11.3-2.el6.rf will be installed
--> Processing Dependency: php-mbstring >= 4.1.0 for package: phpmyadmin-2.11.11.3-2.el6.rf.noarch
--> Running transaction check
---> Package php-mbstring.x86_64 0:5.3.3-27.el6_5 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5 for package: php-mbstring-5.3.3-27.el6_5.x86_64
--> Finished Dependency Resolution
Error: Package: php-mbstring-5.3.3-27.el6_5.x86_64 (updates)
Requires: php-common(x86-64) = 5.3.3-27.el6_5
Installed: php-common-5.4.30-1.el6.remi.x86_64 (#remi)
php-common(x86-64) = 5.4.30-1.el6.remi
Available: php-common-5.3.3-26.el6.x86_64 (base)
php-common(x86-64) = 5.3.3-26.el6
Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
php-common(x86-64) = 5.3.3-27.el6_5
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Somebody please Help. Thanx in advance
You've installed a more recent PHP version (5.4.30-1) from another source (#remi) than the officials (base) repository provides. Now you're trying to install the phpMyAdmin package, which depends on php-mbstring. php-mbstring is the actual problem here -- it's being automatically installed because phpmyadmin depends on it, but the version you're attempting to install isn't compatible with the rest of your PHP installation.
The solution is easy, though, since remi also provides phpmyadmin (quite a bit more recent version than you're attempting to install, too!). Just install phpmyadmin and php-common from the remi repository like you installed PHP. There are some instructions at http://blog.famillecollet.com/pages/Config-en if you forgot, but you managed to install the upgraded PHP already so you should be able to get the remi phpmyadmin installed pretty easily.
OR....
Download phpMyAdmin from http://www.phpmyadmin.net and uncompress it to your web root and forget about the package. php-mbstring isn't strictly required to run the application anyway, so you don't even need to worry about that part as long as you meet the other requirements.
You installed php5.4 from remi repository.
phpmyadmin needs php to work; but you are installing phpmyadmin from the official repository and that phpmyadmin version needs php5.3.
I guess you don't want to go back to php5.3, so just run this command:
yum --enablerepo=remi install phpmyadmin
If you didn't add remi repositories to you CentOS, you will have to previously run:
sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

Cassandra upgrade from 1.0 to 1.1

Trying to update cassandra from 1.0.11-1 to 1.1.12-1 on Centos 5.5. Read the docs on http://www.datastax.com/docs/1.1/install/upgrading and tried the advised method: yum install apache-cassandra11 to get the package installed; however, am getting depsolving problems.
Is the correct way to update Cassandra is to yum remove and then yum install?
[root#cass01 ~]# yum install apache-cassandra11.noarch
Loaded plugins: allowdowngrade, fastestmirror
Loading mirror speeds from cached hostfile
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package apache-cassandra11.noarch 0:1.1.12-1 set to be updated
--> Processing Conflict: apache-cassandra11 conflicts apache-cassandra1
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package apache-cassandra1.noarch 0:1.0.11-1 set to be updated
--> Processing Conflict: apache-cassandra11 conflicts apache-cassandra1
--> Finished Dependency Resolution
apache-cassandra11-1.1.12-1.noarch from datastax has depsolving problems
--> apache-cassandra11 conflicts with apache-cassandra1
Error: apache-cassandra11 conflicts with apache-cassandra1
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
[root#cass01 ~]#

Resources