MongoDB 2.6 Update Error - mongodb

I am getting conflict when
[root#MongoDB ec2-user]# sudo yum install mongodb-org Loaded plugins:
priorities, security, update-motd, upgrade-helper Setting up Install
Process Resolving Dependencies
--> Running transaction check
---> Package mongodb-org.x86_64 0:2.6.0-1 will be installed
--> Processing Dependency: mongodb-org-tools = 2.6.0 for package: mongodb-org-2.6.0-1.x86_64
--> Processing Dependency: mongodb-org-shell = 2.6.0 for package: mongodb-org-2.6.0-1.x86_64
--> Processing Dependency: mongodb-org-server = 2.6.0 for package: mongodb-org-2.6.0-1.x86_64
--> Processing Dependency: mongodb-org-mongos = 2.6.0 for package: mongodb-org-2.6.0-1.x86_64
--> Running transaction check
---> Package mongodb-org-mongos.x86_64 0:2.6.0-1 will be installed
---> Package mongodb-org-server.x86_64 0:2.6.0-1 will be installed
---> Package mongodb-org-shell.x86_64 0:2.6.0-1 will be installed
---> Package mongodb-org-tools.x86_64 0:2.6.0-1 will be installed
--> Processing Conflict: mongodb-org-tools-2.6.0-1.x86_64 conflicts mongo-10gen-server
--> Processing Conflict: mongodb-org-tools-2.6.0-1.x86_64 conflicts mongo-10gen
--> Processing Conflict: mongodb-org-mongos-2.6.0-1.x86_64 conflicts mongo-10gen-server
--> Processing Conflict: mongodb-org-mongos-2.6.0-1.x86_64 conflicts mongo-10gen
--> Processing Conflict: mongodb-org-shell-2.6.0-1.x86_64 conflicts mongo-10gen-server
--> Processing Conflict: mongodb-org-shell-2.6.0-1.x86_64 conflicts mongo-10gen
--> Processing Conflict: mongodb-org-2.6.0-1.x86_64 conflicts mongo-10gen-server
--> Processing Conflict: mongodb-org-2.6.0-1.x86_64 conflicts mongo-10gen
--> Processing Conflict: mongodb-org-server-2.6.0-1.x86_64 conflicts mongo-10gen-server
--> Processing Conflict: mongodb-org-server-2.6.0-1.x86_64 conflicts mongo-10gen
--> Finished Dependency Resolution Error: mongodb-org-shell conflicts with mongo-10gen-2.4.10-mongodb_1.x86_64 Error: mongodb-org-server
conflicts with mongo-10gen-server-2.4.10-mongodb_1.x86_64 Error:
mongodb-org-mongos conflicts with mongo-10gen-2.4.10-mongodb_1.x86_64
Error: mongodb-org-mongos conflicts with
mongo-10gen-server-2.4.10-mongodb_1.x86_64 Error: mongodb-org-tools
conflicts with mongo-10gen-2.4.10-mongodb_1.x86_64 Error:
mongodb-org-server conflicts with mongo-10gen-2.4.10-mongodb_1.x86_64
Error: mongodb-org-tools conflicts with
mongo-10gen-server-2.4.10-mongodb_1.x86_64 Error: mongodb-org
conflicts with mongo-10gen-server-2.4.10-mongodb_1.x86_64 Error:
mongodb-org conflicts with mongo-10gen-2.4.10-mongodb_1.x86_64 Error:
mongodb-org-shell conflicts with
mongo-10gen-server-2.4.10-mongodb_1.x86_64 You could try using
--skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
and update giving this error:
sudo yum update mongodb-org Loaded plugins: priorities, security,
update-motd, upgrade-helper amzn-main
| 2.1 kB 00:00 amzn-updates
| 2.3 kB 00:00 Setting up Update Process Package(s)
mongodb-org available, but not installed.
How can i fix this ?

Since the package name has changed, you do need to remove the old package and install the new one. However, instead of doing this as two steps, it is cleaner to use the yum shell. This will remove the old package and install the new one in a single transaction:
yum shell
> install mongodb-org
> remove mongo-10gen
> remove mongo-10gen-server
> run
--> Running transaction check
---> Package mongo-10gen.i686 0:2.4.10-mongodb_1 will be erased
---> Package mongo-10gen-server.i686 0:2.4.10-mongodb_1 will be erased
---> Package mongodb-org.i686 0:2.6.0-1 will be installed
--> Processing Dependency: mongodb-org-tools = 2.6.0 for package: mongodb-org-2.6.0-1.i686
--> Processing Dependency: mongodb-org-shell = 2.6.0 for package: mongodb-org-2.6.0-1.i686
--> Processing Dependency: mongodb-org-server = 2.6.0 for package: mongodb-org-2.6.0-1.i686
--> Processing Dependency: mongodb-org-mongos = 2.6.0 for package: mongodb-org-2.6.0-1.i686
--> Running transaction check
---> Package mongodb-org-mongos.i686 0:2.6.0-1 will be installed
---> Package mongodb-org-server.i686 0:2.6.0-1 will be installed
---> Package mongodb-org-shell.i686 0:2.6.0-1 will be installed
---> Package mongodb-org-tools.i686 0:2.6.0-1 will be installed
--> Finished Dependency Resolution
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mongodb-org i686 2.6.0-1 10gen 4.6 k
Removing:
mongo-10gen i686 2.4.10-mongodb_1 #10gen 181 M
mongo-10gen-server i686 2.4.10-mongodb_1 #10gen 30 M
Installing for dependencies:
mongodb-org-mongos i686 2.6.0-1 10gen 6.7 M
mongodb-org-server i686 2.6.0-1 10gen 8.9 M
mongodb-org-shell i686 2.6.0-1 10gen 4.2 M
mongodb-org-tools i686 2.6.0-1 10gen 88 M
Transaction Summary
================================================================================
Install 1 Package (+4 Dependent packages)
Remove 2 Packages
Total download size: 108 M
Is this ok [y/d/N]: y
Downloading packages:
(1/5): mongodb-org-2.6.0-1.i686.rpm | 4.6 kB 00:00
(2/5): mongodb-org-mongos-2.6.0-1.i686.rpm | 6.7 MB 00:00
(3/5): mongodb-org-server-2.6.0-1.i686.rpm | 8.9 MB 00:00
(4/5): mongodb-org-shell-2.6.0-1.i686.rpm | 4.2 MB 00:00
(5/5): mongodb-org-tools-2.6.0-1.i686.rpm | 88 MB 00:04
--------------------------------------------------------------------------------
Total 19 MB/s | 108 MB 00:05
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : mongodb-org-server-2.6.0-1.i686 1/7
Installing : mongodb-org-mongos-2.6.0-1.i686 2/7
Installing : mongodb-org-tools-2.6.0-1.i686 3/7
Installing : mongodb-org-shell-2.6.0-1.i686 4/7
Installing : mongodb-org-2.6.0-1.i686 5/7
Erasing : mongo-10gen-server-2.4.10-mongodb_1.i686 6/7
Erasing : mongo-10gen-2.4.10-mongodb_1.i686 7/7
Verifying : mongodb-org-2.6.0-1.i686 1/7
Verifying : mongodb-org-shell-2.6.0-1.i686 2/7
Verifying : mongodb-org-tools-2.6.0-1.i686 3/7
Verifying : mongodb-org-mongos-2.6.0-1.i686 4/7
Verifying : mongodb-org-server-2.6.0-1.i686 5/7
Verifying : mongo-10gen-server-2.4.10-mongodb_1.i686 6/7
Verifying : mongo-10gen-2.4.10-mongodb_1.i686 7/7
Removed:
mongo-10gen.i686 0:2.4.10-mongodb_1
mongo-10gen-server.i686 0:2.4.10-mongodb_1
Installed:
mongodb-org.i686 0:2.6.0-1
Dependency Installed:
mongodb-org-mongos.i686 0:2.6.0-1 mongodb-org-server.i686 0:2.6.0-1
mongodb-org-shell.i686 0:2.6.0-1 mongodb-org-tools.i686 0:2.6.0-1
Finished Transaction
> exit
Leaving Shell

You have to remove packages of MongoDB 2.4:
sudo yum remove mongo-10gen*
and then install packages of new MongoDB 2.6:
sudo yum install mongodb-org

Seems that you are upgrading from version 2.4 to 2.6 which apparently has changed the package names.
I guess you will have to remove/erase the old package mongodb-10gen* and then run this new install command for it to work.

remove the old mongodb
sudo yum remove mongo-10gen-server mongo-10gen-tools mongo-10gen-shell mongo-10gen-mongos mongo-10gen
install the new mongodb (prerequisitely, you must config the yum source, refer here )
sudo yum install mongodb-org

Related

How to determine which version of a yum library is compatible with a specific version of a dependency that is already installed?

I am attempting to install the libcap-devel library via yum, and it looks like my company's yum repo only has libcap-devel-2.22-8.el7.x86_64, which requires glibc-common-2.17-105.el7.
Unfortunately, the glibc-common installed on my VM is glibc-common-2.17-222.el7.x86_64, and the installation fails.
I want to figure out how to determine which version of libcap-devel is compatible with glibc-common-2.17-222.el7.x86_64, and then ask the sysadmins to add this verion of libcap-devel to the yum repo (which I am not authorized to do) so that I can install it successfully. How do I do this?
Here is the output of yum install libcap-devel
Resolving Dependencies
--> Running transaction check
---> Package libcap-devel.x86_64 0:2.22-8.el7 will be installed
--> Processing Dependency: libcap = 2.22-8.el7 for package: libcap-devel-2.22-8.el7.x86_64
--> Running transaction check
---> Package libcap.i686 0:2.22-8.el7 will be installed
--> Processing Dependency: libattr.so.1 for package: libcap-2.22-8.el7.i686
--> Processing Dependency: libattr.so.1(ATTR_1.0) for package: libcap-2.22-8.el7.i686
--> Processing Dependency: libc.so.6(GLIBC_2.8) for package: libcap-2.22-8.el7.i686
--> Running transaction check
---> Package glibc.i686 0:2.17-105.el7 will be installed
--> Processing Dependency: glibc-common = 2.17-105.el7 for package: glibc-2.17-105.el7.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.17-105.el7.i686
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.17-105.el7.i686
---> Package libattr.i686 0:2.4.46-12.el7 will be installed
--> Running transaction check
---> Package glibc.i686 0:2.17-105.el7 will be installed
--> Processing Dependency: glibc-common = 2.17-105.el7 for package: glibc-2.17-105.el7.i686
---> Package nss-softokn-freebl.i686 0:3.16.2.3-13.el7_1 will be installed
--> Finished Dependency Resolution
You could try using --skip-broken to work around the problem
Error: Package: glibc-2.17-105.el7.i686 (redhat_base)
Requires: glibc-common = 2.17-105.el7
Installed: glibc-common-2.17-222.el7.x86_64 (#anaconda/7.5)
glibc-common = 2.17-222.el7
Available: glibc-common-2.17-105.el7.x86_64 (redhat_base)
glibc-common = 2.17-105.el7
Here is the output of yum --showduplicates list libcap-devel, which shows that the yum repo only has one version available:
========================== N/S matched: libcap-devel ===========================
libcap-devel-2.22-8.el7.i686 : Development files for libcap
libcap-devel-2.22-8.el7.x86_64 : Development files for libcap
The output of yum --showduplicates list libcap shows:
Installed Packages
libcap.x86_64 2.22-9.el7 #anaconda/7.5
Available Packages
libcap.i686 2.22-8.el7 redhat_base
libcap.x86_64 2.22-8.el7 redhat_base
The output of yum install -y libcap-2.22-8.el7.x86_64 shows:
Package matching libcap-2.22-8.el7.x86_64 already installed. Checking for update.
Nothing to do
After this, running yum install -y libcap-devel-2.22-8.el7.x86_64 still attempts to download the 32 bit version:
...
--> Processing Dependency: libcap = 2.22-8.el7 for package: libcap-devel-2.22-8.el7.x86_64
--> Running transaction check
---> Package libcap.i686 0:2.22-8.el7 will be installed
...
The output of yum --showduplicates list glibc shows glibc.i686 0:2.17-222.el7 is not available, only 2.17-105.e17 is.
Installed Packages
glibc.x86_64 2.17-222.el7 #anaconda/7.5
Available Packages
glibc.i686 2.17-105.el7 redhat_base
glibc.x86_64 2.17-105.el7 redhat_base
Any variation of this fails:
yum downgrade -y glibc-2.17-105.el7
yum downgrade -y glibc-2.17-105.el7 glibc-common-2.17-105.el7
yum downgrade -y glibc-2.17-105.el7 glibc-common-2.17-105.el7 glibc-devel-2.17-105.el7
yum downgrade -y glibc-headers-2.17-105.el7 glibc-2.17-105.el7 glibc-common-2.17-105.el7 glibc-devel-2.17-105.el7
For example the first command complains about glibc-common and glibc-devel, adding these in results in a complaint about glibc-headers, and the fourth line actually segfaults.
welcome to the jungle of library/rpm dependencies :)
It takes some time and patience to read, and then some skill to read the yum output. Sometimes you'll even have to run some intermediate commands to get the exact answer, but let's see what we can already see here:
Processing Dependency: libcap = 2.22-8.el7 for package: libcap-devel-2.22-8.el7.x86_64
You try to install libcap-devel. yum says he will also need to install libcap with the exact same version number. No surprises so far.
Package libcap.i686 0:2.22-8.el7 will be installed
This is probably already something you do not want. You seem to be on a 64 bit system; do you really want the i686 version of this library installed? The fact is libcap-devel does not say it requires the x86_64 version; it requires any of the two. Preferably yum will install the x86_64 version, but if that is impossible the i686 version will do.
In this case I would suggest you to first try installing libcap-2.22-8.el7.x86_64 and see why yum won't install that one.
But in any case let's just read on, this will give you also information on how to solve this problem for the x86_64 package.
--> Processing Dependency: libc.so.6(GLIBC_2.8) for package: libcap-2.22-8.el7.i686
--> Running transaction check
---> Package glibc.i686 0:2.17-105.el7 will be installed
so here yum chose to install glibc.i686 0:2.17-105.el7 , probably to satisfy the libc.so.6(GLIBC_2.8)
now this is where the conflict occurs: glibc.i686 0:2.17-105.el7 requires glibc-common with the exact same version number, but you already have a more recent version of glibc-common on your machine.
Possible solutions
There are multiple solutions here, a non-exhaustive list in order of my preference:
investigate why libcap-2.22-8.el7.x86_64 can't be installed.
make sure glibc.i686 0:2.17-222.el7 is available in your yum repositories (or installed on your system)
downgrade you glibc-common (and probably also glibc x86_64 version) to version 0:2.17-105.el7

"yum -y install nfs-utils nfs-utils-lib" when installing NFS client on a CentOS vagrant machine

I was trying to "vagrant up" a CentOS machine (centos7-x64-vbox43) with VirtualBox as provider and ansible as the provisioning tool. I executed the following command:
vagrant up --provision-with ansible
but I got an error, which is related to the execution of the following command yum -y install nfs-utils nfs-utils-lib in the guest machine (I guess):
[project-name] > vagrant up
/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/pre-rubygems.rb:31: warning: Insecure world writable dir /Applications/Qt in PATH, mode 040777
/opt/vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /Applications/Qt in PATH, mode 040777
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 80 (guest) => 2000 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
default: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine, but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors, please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 4.3.14
default: VirtualBox Version: 5.0
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Installing NFS client...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
yum -y install nfs-utils nfs-utils-lib
Stdout from the command:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.switch.ch
* extras: mirror.ratiokontakt.de
* updates: mirror.ratiokontakt.de
No package nfs-utils-lib available.
Resolving Dependencies
--> Running transaction check
---> Package nfs-utils.x86_64 1:1.3.0-0.21.el7_2.1 will be installed
--> Processing Dependency: libtirpc >= 0.2.3-1 for package: 1:nfs-utils-1.3.0-0.21.el7_2.1.x86_64
--> Processing Dependency: gssproxy >= 0.3.0-0 for package: 1:nfs-utils-1.3.0-0.21.el7_2.1.x86_64
--> Processing Dependency: rpcbind for package: 1:nfs-utils-1.3.0-0.21.el7_2.1.x86_64
--> Processing Dependency: quota for package: 1:nfs-utils-1.3.0-0.21.el7_2.1.x86_64
--> Processing Dependency: libnfsidmap for package: 1:nfs-utils-1.3.0-0.21.el7_2.1.x86_64
--> Processing Dependency: libevent for package: 1:nfs-utils-1.3.0-0.21.el7_2.1.x86_64
--> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: 1:nfs-utils-1.3.0-0.21.el7_2.1.x86_64
--> Processing Dependency: keyutils for package: 1:nfs-utils-1.3.0-0.21.el7_2.1.x86_64
--> Processing Dependency: libtirpc.so.1()(64bit) for package: 1:nfs-utils-1.3.0-0.21.el7_2.1.x86_64
--> Processing Dependency: libnfsidmap.so.0()(64bit) for package: 1:nfs-utils-1.3.0-0.21.el7_2.1.x86_64
--> Processing Dependency: libevent-2.0.so.5()(64bit) for package: 1:nfs-utils-1.3.0-0.21.el7_2.1.x86_64
--> Running transaction check
---> Package device-mapper-libs.x86_64 7:1.02.84-14.el7 will be updated
--> Processing Dependency: device-mapper-libs = 7:1.02.84-14.el7 for package: 7:device-mapper-1.02.84-14.el7.x86_64
---> Package device-mapper-libs.x86_64 7:1.02.107-5.el7_2.5 will be an update
---> Package gssproxy.x86_64 0:0.4.1-7.el7 will be installed
--> Processing Dependency: krb5-libs >= 1.12.0 for package: gssproxy-0.4.1-7.el7.x86_64
--> Processing Dependency: libverto-tevent for package: gssproxy-0.4.1-7.el7.x86_64
--> Processing Dependency: libini_config.so.3(INI_CONFIG_1.1.0)(64bit) for package: gssproxy-0.4.1-7.el7.x86_64
--> Processing Dependency: libref_array.so.1()(64bit) for package: gssproxy-0.4.1-7.el7.x86_64
--> Processing Dependency: libini_config.so.3()(64bit) for package: gssproxy-0.4.1-7.el7.x86_64
--> Processing Dependency: libcollection.so.2()(64bit) for package: gssproxy-0.4.1-7.el7.x86_64
--> Processing Dependency: libbasicobjects.so.0()(64bit) for package: gssproxy-0.4.1-7.el7.x86_64
---> Package keyutils.x86_64 0:1.5.8-3.el7 will be installed
---> Package libevent.x86_64 0:2.0.21-4.el7 will be installed
---> Package libnfsidmap.x86_64 0:0.25-12.el7 will be installed
---> Package libtirpc.x86_64 0:0.2.4-0.6.el7 will be installed
---> Package quota.x86_64 1:4.01-11.el7_2.1 will be installed
--> Processing Dependency: quota-nls = 1:4.01-11.el7_2.1 for package: 1:quota-4.01-11.el7_2.1.x86_64
--> Processing Dependency: tcp_wrappers for package: 1:quota-4.01-11.el7_2.1.x86_64
---> Package rpcbind.x86_64 0:0.2.0-33.el7_2.1 will be installed
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: rpcbind-0.2.0-33.el7_2.1.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: rpcbind-0.2.0-33.el7_2.1.x86_64
--> Running transaction check
---> Package device-mapper.x86_64 7:1.02.84-14.el7 will be updated
--> Processing Dependency: device-mapper = 7:1.02.84-14.el7 for package: 7:device-mapper-event-1.02.84-14.el7.x86_64
---> Package device-mapper.x86_64 7:1.02.107-5.el7_2.5 will be an update
---> Package krb5-libs.x86_64 0:1.11.3-49.el7 will be updated
---> Package krb5-libs.x86_64 0:1.13.2-12.el7_2 will be an update
---> Package libbasicobjects.x86_64 0:0.1.1-25.el7 will be installed
---> Package libcollection.x86_64 0:0.6.2-25.el7 will be installed
---> Package libini_config.x86_64 0:1.2.0-25.el7 will be installed
--> Processing Dependency: libpath_utils.so.1(PATH_UTILS_0.2.1)(64bit) for package: libini_config-1.2.0-25.el7.x86_64
--> Processing Dependency: libpath_utils.so.1()(64bit) for package: libini_config-1.2.0-25.el7.x86_64
---> Package libref_array.x86_64 0:0.1.5-25.el7 will be installed
---> Package libverto-tevent.x86_64 0:0.2.5-4.el7 will be installed
--> Processing Dependency: libtevent.so.0(TEVENT_0.9.9)(64bit) for package: libverto-tevent-0.2.5-4.el7.x86_64
--> Processing Dependency: libtalloc.so.2(TALLOC_2.0.2)(64bit) for package: libverto-tevent-0.2.5-4.el7.x86_64
--> Processing Dependency: libtevent.so.0()(64bit) for package: libverto-tevent-0.2.5-4.el7.x86_64
--> Processing Dependency: libtalloc.so.2()(64bit) for package: libverto-tevent-0.2.5-4.el7.x86_64
---> Package quota-nls.noarch 1:4.01-11.el7_2.1 will be installed
---> Package systemd-libs.x86_64 0:208-11.el7_0.2 will be updated
--> Processing Dependency: systemd-libs = 208-11.el7_0.2 for package: systemd-208-11.el7_0.2.x86_64
---> Package systemd-libs.x86_64 0:219-19.el7_2.11 will be an update
---> Package tcp_wrappers.x86_64 0:7.6-77.el7 will be installed
--> Running transaction check
---> Package device-mapper-event.x86_64 7:1.02.84-14.el7 will be updated
---> Package device-mapper-event.x86_64 7:1.02.107-5.el7_2.5 will be an update
--> Processing Dependency: device-mapper-event-libs = 7:1.02.107-5.el7_2.5 for package: 7:device-mapper-event-1.02.107-5.el7_2.5.x86_64
---> Package libpath_utils.x86_64 0:0.2.1-25.el7 will be installed
---> Package libtalloc.x86_64 0:2.1.5-1.el7_2 will be installed
---> Package libtevent.x86_64 0:0.9.26-1.el7_2.1 will be installed
---> Package systemd.x86_64 0:208-11.el7_0.2 will be updated
--> Processing Dependency: systemd = 208-11.el7_0.2 for package: systemd-sysv-208-11.el7_0.2.x86_64
--> Processing Dependency: systemd = 208-11.el7_0.2 for package: libgudev1-208-11.el7_0.2.x86_64
---> Package systemd.x86_64 0:219-19.el7_2.11 will be an update
--> Processing Dependency: kmod >= 18-4 for package: systemd-219-19.el7_2.11.x86_64
--> Running transaction check
---> Package device-mapper-event-libs.x86_64 7:1.02.84-14.el7 will be updated
---> Package device-mapper-event-libs.x86_64 7:1.02.107-5.el7_2.5 will be an update
---> Package kmod.x86_64 0:14-9.el7 will be updated
---> Package kmod.x86_64 0:20-5.el7 will be an update
---> Package libgudev1.x86_64 0:208-11.el7_0.2 will be updated
---> Package libgudev1.x86_64 0:219-19.el7_2.11 will be an update
---> Package systemd-sysv.x86_64 0:208-11.el7_0.2 will be updated
---> Package systemd-sysv.x86_64 0:219-19.el7_2.11 will be an update
--> Processing Conflict: systemd-219-19.el7_2.11.x86_64 conflicts initscripts < 9.49.28-1
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package initscripts.x86_64 0:9.49.17-1.el7 will be updated
---> Package initscripts.x86_64 0:9.49.30-1.el7_2.2 will be an update
--> Processing Conflict: systemd-219-19.el7_2.11.x86_64 conflicts dracut < 033-243
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package dracut.x86_64 0:033-161.el7 will be updated
--> Processing Dependency: dracut = 033-161.el7 for package: dracut-config-rescue-033-161.el7.x86_64
--> Processing Dependency: dracut = 033-161.el7 for package: dracut-network-033-161.el7.x86_64
---> Package dracut.x86_64 0:033-360.el7_2.1 will be an update
--> Running transaction check
---> Package dracut-config-rescue.x86_64 0:033-161.el7 will be updated
---> Package dracut-config-rescue.x86_64 0:033-360.el7_2.1 will be an update
---> Package dracut-network.x86_64 0:033-161.el7 will be updated
---> Package dracut-network.x86_64 0:033-360.el7_2.1 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
nfs-utils x86_64 1:1.3.0-0.21.el7_2.1 updates 371 k
Updating:
dracut x86_64 033-360.el7_2.1 updates 311 k
initscripts x86_64 9.49.30-1.el7_2.2 updates 429 k
Installing for dependencies:
gssproxy x86_64 0.4.1-7.el7 base 84 k
keyutils x86_64 1.5.8-3.el7 base 54 k
libbasicobjects x86_64 0.1.1-25.el7 base 24 k
libcollection x86_64 0.6.2-25.el7 base 40 k
libevent x86_64 2.0.21-4.el7 base 214 k
libini_config x86_64 1.2.0-25.el7 base 59 k
libnfsidmap x86_64 0.25-12.el7 base 46 k
libpath_utils x86_64 0.2.1-25.el7 base 27 k
libref_array x86_64 0.1.5-25.el7 base 26 k
libtalloc x86_64 2.1.5-1.el7_2 updates 34 k
libtevent x86_64 0.9.26-1.el7_2.1 updates 33 k
libtirpc x86_64 0.2.4-0.6.el7 base 85 k
libverto-tevent x86_64 0.2.5-4.el7 base 9.0 k
quota x86_64 1:4.01-11.el7_2.1 updates 178 k
quota-nls noarch 1:4.01-11.el7_2.1 updates 90 k
rpcbind x86_64 0.2.0-33.el7_2.1 updates 58 k
tcp_wrappers x86_64 7.6-77.el7 base 78 k
Updating for dependencies:
device-mapper x86_64 7:1.02.107-5.el7_2.5 updates 252 k
device-mapper-event x86_64 7:1.02.107-5.el7_2.5 updates 167 k
device-mapper-event-libs x86_64 7:1.02.107-5.el7_2.5 updates 169 k
device-mapper-libs x86_64 7:1.02.107-5.el7_2.5 updates 305 k
dracut-config-rescue x86_64 033-360.el7_2.1 updates 50 k
dracut-network x86_64 033-360.el7_2.1 updates 90 k
kmod x86_64 20-5.el7 base 114 k
krb5-libs x86_64 1.13.2-12.el7_2 updates 843 k
libgudev1 x86_64 219-19.el7_2.11 updates 66 k
systemd x86_64 219-19.el7_2.11 updates 5.1 M
systemd-libs x86_64 219-19.el7_2.11 updates 358 k
systemd-sysv x86_64 219-19.el7_2.11 updates 53 k
Transaction Summary
================================================================================
Install 1 Package (+17 Dependent packages)
Upgrade 2 Packages (+12 Dependent packages)
Total size: 9.8 M
Downloading packages:
Running transaction check
Running transaction test
Stderr from the command:
Transaction check error:
file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7_2.5.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
file /usr/sbin/blkdeactivate from install of device-mapper-7:1.02.107-5.el7_2.5.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
file /usr/share/man/man8/blkdeactivate.8.gz from install of device-mapper-7:1.02.107-5.el7_2.5.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
Error Summary
-------------
I've no idea why this is happening, since I'm not very familiar with vagrant, lets say that I've used it like twice or 3 times. My first question is then: why is this exactly happening?
Note I think I know what NFS is, i.e. it should be a file system that is mounted on the guest machine which allows the same machine and the host machine to share folders and files, right?
I was unable to solve this problem until I found the following article:
yum update or yum install fails with package conflict between 64 bit and 32 bit package architectures?
whose title seems to be, at least for me, completely unrelated to the problem above.
I realized that after the failure of the command above, the vagrant machine had been initialized actually, and that I could connect to it using vagrant ssh, which is what I did. Then, from within the guest vagrant machine (after vagrant ssh), I executed the following commands (which are the same commands that were specified in the article I've just mentioned):
sudo yum install yum-utils
sudo package-cleanup --dupes
sudo package-cleanup --cleandupes
Added this line:
exactarch=1
to the file /etc/yum.conf, and finally
yum clean all
sudo yum update
I exited from the vagrant machine by typing exit. I did vagrant halt to stop the machine. And I re-executed the initial command:
vagrant up --provision-with ansible
and the error didn't occur anymore.
My second question is then: why did executing the commands in the tutorial above and that I also mentioned explicitly above solve the problem?
When executing the command to remove duplicate packages, I noticed that the output was that, in reality, there were no duplicate packages. It seems, in my case, that the only commands that actually solve the problem were (not sure though):
yum clean all
sudo yum update
Why would this actually solve the problem?
One of my ideas is that the box is actually outdated, since updating pre-installed packages to the latest versions solved apparently the problem...
Unfortunately there are a few different problems you might have fixed with the commands you entered and the original install does not give much info.
It is possible that the original image had a package with a bug in it that was preventing this install, but sudo yum update fixed the problem by installing an updated package.
It is also possible that the yum database was corrupted and it did not install a prerequisite of nfs-utils or nfs-utils-lib because it thought they were already installed, but the 'clean' fixed the yum database.
Dito on package-cleanup, which is inside of yum-utils.
exactarch=1 probably did not fix anything since you did not specify a particular architecture anywhere (assuming the original image did not either).
Sounds like you had it pretty much figured out by the end of your question. Anything else?
There was a bug in the CentOS 7 - packages that caused this error:
When updating only device-mapper subpackages, without updating lvm2 package, we may have ended up with file conflicts if files were moved around subpackages. ... To avoid problems when updating from older versions, there's direct conflict defined explicitly in the packages now which, if hit, will give an information about the minimum required version to resolve this conflict.
So, updating lvm2 is a solution. I think that yum update solved the problem because the conflict that was added to the packages was loaded from the package repository as part of the package information. So, lvm2 was probably updated when device-mapper was installed by Vagrant and this update avoids the error.

Installation of postresql on amazon linux server fails

I try to install postgresql-server on amazone linux, but it fails:
[ec2-user#ip-xyz ~]$ sudo yum install postgresql-server
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
961 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package postgresql93-server.x86_64 0:9.3.12-1PGDG.rhel7 will be installed
--> Processing Dependency: systemd-units for package: postgresql93-server-9.3.12-1PGDG.rhel7.x86_64
--> Processing Dependency: systemd-units for package: postgresql93-server-9.3.12-1PGDG.rhel7.x86_64
--> Finished Dependency Resolution
Error: Package: postgresql93-server-9.3.12-1PGDG.rhel7.x86_64 (pgdg93)
Requires: systemd-units
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
There seems to be an issue with unfulfilled requirements.
How can I solve this: Error: Package: postgresql93-server-9.3.12-1PGDG.rhel7.x86_64 (pgdg93)
Requires: systemd-units

mongodb-org conflicts with mongodb-10gen-server

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
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.
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
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.

problem installing memcached on centos 5.4 64 bit

I'm trying to install memcached on Centos 5.4 with:
# yum install memcached
What I get is:
[root#domU-12-31-39-02-75-A8 ~]# yum -y install memcached
Failed to set locale, defaulting to C
rightscale-epel | 951 B 00:00
rpmforge | 1.1 kB 00:00
rpmforge/primary | 3.9 MB 00:01
rpmforge 10767/10767
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package memcached.x86_64 0:1.4.5-1.el5 set to be updated
--> Processing Dependency: libevent-1.4.so.2()(64bit) for package: memcached
--> Finished Dependency Resolution
memcached-1.4.5-1.el5.x86_64 from epel has depsolving problems
--> Missing Dependency: libevent-1.4.so.2()(64bit) is needed by package memcached-1.4.5-1.el5.x86_64 (epel)
Error: Missing Dependency: libevent-1.4.so.2()(64bit) is needed by package memcached-1.4.5-1.el5.x86_64 (epel)
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
How can I install memcached?
Thanks, Alex A.
You need to install it manually or change your yum repo:
wget ftp://rpmfind.net/linux/dag/redhat/el5/en/x86_64/testing/RPMS/libevent-1.3b-1.el5.test.x86_64.rpm
wget http://pkgs.repoforge.org/memcached/memcached-1.2.6-1.el3.rf.x86_64.rpm
rpm -ivh libevent-1.3b-1.el5.test.x86_64.rpm
rpm -ivh memcached-1.2.6-1.el3.rf.x86_64.rpm
Note, that this is an older version of memcached