couldn't update glibc.
hello everyone,
i am tring to update glibc but there is a conflict with an old version
here is the error
rpm -qa | grep -i glibc
glibc-2.12-1.47.el6_2.9.x86_64
glibc-headers-2.12-1.47.el6_2.12.x86_64
compat-glibc-2.5-46.2.x86_64
compat-glibc-headers-2.5-46.2.x86_64
glibc-common-2.12-1.47.el6_2.9.x86_64
glibc-2.12-1.47.el6_2.9.i686
glibc-static-2.12-1.47.el6_2.12.x86_64
glibc-devel-2.12-1.47.el6_2.12.x86_64
yum update glibc
Loaded plugins: refresh-packagekit, rhnplugin
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package glibc.i686 0:2.12-1.47.el6_2.9 will be updated
--> Processing Dependency: glibc = 2.12-1.47.el6_2.9 for package: nscd-2.12-1.47.el6_2.9.x86_64
--> Processing Dependency: glibc = 2.12-1.47.el6_2.9 for package: glibc-common-2.12-1.47.el6_2.9.x86_64
---> Package glibc.x86_64 0:2.12-1.47.el6_2.9 will be updated
---> Package glibc.i686 0:2.12-1.166.el6_7.1 will be an update
---> Package glibc.x86_64 0:2.12-1.166.el6_7.1 will be an update
--> Running transaction check
---> Package glibc-common.x86_64 0:2.12-1.47.el6_2.9 will be updated
---> Package glibc-common.x86_64 0:2.12-1.166.el6_7.1 will be an update
---> Package nscd.x86_64 0:2.12-1.47.el6_2.9 will be updated
---> Package nscd.x86_64 0:2.12-1.166.el6_7.1 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================================================
Package Arch Version Repository Size
Updating:
glibc i686 2.12-1.166.el6_7.1 rhel-x86_64-server-6 4.3 M
glibc x86_64 2.12-1.166.el6_7.1 rhel-x86_64-server-6 3.8 M
Updating for dependencies:
glibc-common x86_64 2.12-1.166.el6_7.1 rhel-x86_64-server-6 14 M
nscd x86_64 2.12-1.166.el6_7.1 rhel-x86_64-server-6 227 k
Transaction Summary
Upgrade 4 Package(s)
Total size: 23 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
glibc = 2.12-1.47.el6_2.12 is needed by (installed) glibc-headers-2.12-1.47.el6_2.12.x86_64
glibc = 2.12-1.47.el6_2.12 is needed by (installed) glibc-devel-2.12-1.47.el6_2.12.x86_64
glibc = 2.12-1.47.el6_2.12 is needed by (installed) glibc-headers-2.12-1.47.el6_2.12.x86_64
glibc = 2.12-1.47.el6_2.12 is needed by (installed) glibc-devel-2.12-1.47.el6_2.12.x86_64
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
glibc-devel-2.12-1.47.el6_2.12.x86_64 has missing requires of glibc = ('0', '2.12', '1.47.el6_2.12')
glibc-headers-2.12-1.47.el6_2.12.x86_64 has missing requires of glibc = ('0', '2.12', '1.47.el6_2.12')
Your transaction was saved, rerun it with: yum load-transaction /tmp/yum_save_tx-2015-08-02-10-19fy96eA.yumtx
Responses
For me after uninstalling glibc-devel and glibc-headers, there was two versions of glibc installed. when trying to remove one using yum, got dependency error. So i tried removing using "rpm -e --nodeps --justdb glibc-2.12-1.166.el6_7.3.i686 --allmatches" for both versions and then installed the latest version, which fixed the issue
Is this the right way in my scenario?
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
