CentOS 6 yum failure [Fixed]

I'm trying to install the latest version of GCC, I get a error;

Error: Package: glibc-devel-2.12-1.47.el6.i686 (base)

Requires: glibc = 2.12-1.47.el6

Installed: glibc-2.12-1.47.el6_2.9.i686 (@updates)

glibc = 2.12-1.47.el6_2.9

Available: glibc-2.12-1.47.el6.i686 (base)

glibc = 2.12-1.47.el6

Error: Package: glibc-headers-2.12-1.47.el6.i686 (base)

Requires: glibc = 2.12-1.47.el6

Installed: glibc-2.12-1.47.el6_2.9.i686 (@updates)

glibc = 2.12-1.47.el6_2.9

Available: glibc-2.12-1.47.el6.i686 (base)

glibc = 2.12-1.47.el6

You could try using –skip-broken to work around the problem

You could try running: rpm -Va --nofiles --nodigest

Running with the skip-broken doesn't do anything, still doesnt work, and I can't statically install ossec for example :/

7 Replies

What happens if you install glibc-headers?

At least this is an issue to discuss, not a problem to be fixed. I could help fix a problem, but don't care to discuss an issue.

James

edit: I see you changed the title of the post to not say "issue".

@vonskippy:

What happens if you install glibc-headers? With yum install glibc-headers –skip-broken

Packages skipped because of dependency problems:

glibc-headers-2.12-1.47.el6.i686 from base

kernel-headers-2.6.32-220.el6.i686 from base

@zunzun:

At least this is an issue to discuss, not a problem to be fixed. I could help fix a problem, but don't care to discuss an issue.

James I see your sarcasim, and raise you one updated thread title. Checkmate!

A yum clean all might help if you have bad packages or metadata downloaded. Hard to tell the cause from the error messages you've posted.

@Vance:

A yum clean all might help if you have bad packages or metadata downloaded. Hard to tell the cause from the error messages you've posted. Didnt work, even if I cleaned, then ran;

yum install glibc-headers

What do I do now? Reformat the VPS? :|

That seems unlikely to help. Or rather, it would help in the same way that a thermonuclear explosion would help you get rid of groundhogs that are digging up your yard.

My next step would be to disable any repositories other than base and updates and see if that makes a difference.

So I did;

****rpm -qa | grep epel

yum remove epel-release-6-5.noarch

rm /etc/yum.repos.d/epel.repo****

Still did not work…

****rpm -qa | grep priorities

yum remove yum-plugin-priorities-1.1.30-10.el6.noarch****

Fixed! Hooray!

I had setup the following;

****[base]

name=CentOS-$releasever - Base

mirrorlist=http://mirrorlist.centos.org/?release=$ … ch&repo=os">http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os

baseurl=http://mirror.centos.org/centos/$releas … $basearch/">http://mirror.centos.org/centos/$releasever/os/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

priority = 1****

I'm assuming the priority wasnt set right, but now when I run yum install gcc, it works!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct