I was yum updating my centos7 system while a power outage occurred
As a result, my glibc packages (i686 and x86_64) went misaligned, and now yum complains upon updating:
indeed, glibc-common.x86_64 exists as duplicates (as a base version 2.17-260.el7 and the most updated one 2.17-260.el7_6.5 exist), while glibc.i686 is[root@jlb217 ~]# yum update
Loaded plugins: fastestmirror, langpacks, priorities
Loading mirror speeds from cached hostfile
* base: it.centos.contactlab.it
* epel: pkg.adfinis-sygroup.ch
* extras: it.centos.contactlab.it
* nux-dextop: mirror.li.nux.ro
* updates: it.centos.contactlab.it
Resolving Dependencies
--> Running transaction check
---> Package glibc.i686 0:2.17-260.el7 will be updated
--> Processing Dependency: glibc = 2.17-260.el7 for package: glibc-common-2.17-260.el7.x86_64
---> Package glibc.i686 0:2.17-260.el7_6.5 will be an update
--> Finished Dependency Resolution
Error: Package: glibc-common-2.17-260.el7.x86_64 (@base)
Requires: glibc = 2.17-260.el7
Removing: glibc-2.17-260.el7.i686 (@base)
glibc = 2.17-260.el7
Updated By: glibc-2.17-260.el7_6.5.i686 (updates)
glibc = 2.17-260.el7_6.5
Available: glibc-2.17-260.el7_6.3.i686 (updates)
glibc = 2.17-260.el7_6.3
Available: glibc-2.17-260.el7_6.4.i686 (updates)
glibc = 2.17-260.el7_6.4
You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
glibc-2.17-260.el7_6.5.x86_64 is a duplicate with glibc-2.17-260.el7.i686
glibc-common-2.17-260.el7_6.5.x86_64 is a duplicate with glibc-common-2.17-260.el7.x86_64
only available as base version 2.17-260.el7 and glibc.x86_64 as 2.17-260.el7_6.5 updated version:
If I try to remove any of these packages, there are a lot of dependencies which follow so it doesn't look a good idea, at least as a first attempt.yum list --showduplicates glibc
Loaded plugins: fastestmirror, langpacks, priorities
Loading mirror speeds from cached hostfile
* base: it.centos.contactlab.it
* epel: pkg.adfinis-sygroup.ch
* extras: it.centos.contactlab.it
* nux-dextop: mirror.li.nux.ro
* updates: it.centos.contactlab.it
Installed Packages
glibc.i686 2.17-260.el7 @base
glibc.x86_64 2.17-260.el7_6.5 installed
Available Packages
glibc.i686 2.17-260.el7 base
glibc.x86_64 2.17-260.el7 base
glibc.i686 2.17-260.el7_6.3 updates
glibc.x86_64 2.17-260.el7_6.3 updates
glibc.i686 2.17-260.el7_6.4 updates
glibc.x86_64 2.17-260.el7_6.4 updates
glibc.i686 2.17-260.el7_6.5 updates
glibc.x86_64 2.17-260.el7_6.5 updates
[root@jlb217 ~]# yum list --showduplicates glibc-common
Loaded plugins: fastestmirror, langpacks, priorities
Loading mirror speeds from cached hostfile
* base: it.centos.contactlab.it
* epel: pkg.adfinis-sygroup.ch
* extras: it.centos.contactlab.it
* nux-dextop: mirror.li.nux.ro
* updates: it.centos.contactlab.it
Installed Packages
glibc-common.x86_64 2.17-260.el7 @base
glibc-common.x86_64 2.17-260.el7_6.5 installed
Available Packages
glibc-common.x86_64 2.17-260.el7 base
glibc-common.x86_64 2.17-260.el7_6.3 updates
glibc-common.x86_64 2.17-260.el7_6.4 updates
glibc-common.x86_64 2.17-260.el7_6.5 updates
If I try to update glibc.i686 alone, I end up with the same yum update complaints reported above,
If I try to update bot glibc and glibc-common, transaction checks break, telling that glibc-common already exists:
I am stuck...root@jlb217 ~]# yum update glibc.i686 glibc-common.x86_64
Loaded plugins: fastestmirror, langpacks, priorities
Loading mirror speeds from cached hostfile
* base: it.centos.contactlab.it
* epel: pkg.adfinis-sygroup.ch
* extras: it.centos.contactlab.it
* nux-dextop: mirror.li.nux.ro
* updates: it.centos.contactlab.it
Resolving Dependencies
--> Running transaction check
---> Package glibc.i686 0:2.17-260.el7 will be updated
---> Package glibc.i686 0:2.17-260.el7_6.5 will be an update
---> Package glibc-common.x86_64 0:2.17-260.el7 will be updated
---> Package glibc-common.x86_64 0:2.17-260.el7_6.5 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================
Updating:
glibc i686 2.17-260.el7_6.5 updates 4.3 M
glibc-common x86_64 2.17-260.el7_6.5 updates 12 M
Transaction Summary
====================================================================================================================================================
Upgrade 2 Packages
Total size: 16 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction check error:
package glibc-common-2.17-260.el7_6.5.x86_64 is already installed
Error Summary
-------------
any idea? thanks!