I am trying to install a new package (glibc-static), and I get the following error---> Package nss-softokn-freebl.i686 0:3.14.3-18.el6_6 will be installed--> Finished Dependency ResolutionError: Package: glibc-2.12-1.149.el6.i686 (CentOS-OS)          Requires: glibc-common = 2.12-1.149.el6          Installed: glibc-common-2.12-1.149.el6_6.5.x86_64 (@updates)              glibc-common = 2.12-1.149.el6_6.5          Available: glibc-common-2.12-1.149.el6.x86_64 (CentOS-OS)              glibc-common = 2.12-1.149.el6Error: Package: glibc-devel-2.12-1.149.el6.i686 (CentOS-OS)          Requires: glibc-headers = 2.12-1.149.el6          Installed: glibc-headers-2.12-1.149.el6_6.5.x86_64 (@updates)              glibc-headers = 2.12-1.149.el6_6.5          Available: glibc-headers-2.12-1.149.el6.x86_64 (CentOS-OS)              glibc-headers = 2.12-1.149.el6You could try using --skip-broken to work around the problemYou could try running: rpm -Va --nofiles --nodigestNotice that glibc-common-2.12-1.149.el6_6.5.x86_64 and glibc-common-2.12-1.149.el6.x86_64 don't match. But glibc-common-2.12-1.149.el6_6.5.x86_64 is listed as being available. I would think that yum would happily install it. Unforunately, yum didn't install it. So I tried to do it myself.~ $> sudo yum install glibc-common-2.12-1.149.el6Loaded plugins: fastestmirror, prestoSetting up Install ProcessLoading mirror speeds from cached hostfile * epel: mirror.us.leaseweb.netPackage matching glibc-common-2.12-1.149.el6.x86_64 already installed. Checking for update.Nothing to doThat didn't work. It thinks it is already installed.So I tried to reinstall it.~ $> sudo yum reinstall glibc-common-2.12-1.149.el6Loaded plugins: fastestmirror, prestoSetting up Reinstall ProcessLoading mirror speeds from cached hostfileNo Match for argument: glibc-common-2.12-1.149.el6Package(s) glibc-common-2.12-1.149.el6 available, but not installed.Nothing to doHow can I resolve this?
Yum says a package is installed, and not installed, and it's blocking other packages from being installed
centos;yum;glibc
Messing with the RPM database didn't yield any particularly good results.I ended up noticing that some of the glibc packages were i686 and others were x86_64. For instance:Package: glibc-2.12-1.149.el6.i686 (CentOS-OS)    Requires: glibc-common = 2.12-1.149.el6    Installed: glibc-common-2.12-1.149.el6_6.5.x86_64I didn't like that, and I expect that Yum didn't like that either.Runningyum downgrade glibc glibc-headers glibc-common glibc-develbrought all of the packages to the same architecture (x86_64). Then, yum install glibc-staticworked like a charm.