couldn't update glibc.

Latest response

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

If you're running 6.2 then I'm afraid your system isn't supported anymore and you might want to consider updating everything (ie. "yum update").

If you only want to update glibc, it seems you need to specify all the packages. Try: yum update glibc*

if i tried to do yum update i will face the same issue there is a conflict package version of glibc so i have to solve it first

I'll think about that more later, but in the meantime, could you try uninstalling glibc-devel and glibc-headers? Then update the system (or only glibc). Finally, you should be able install the latest version of glibc-devel and glibc-headers.

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?

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.