Dumb Developer Explodes Yum

Home » CentOS » Dumb Developer Explodes Yum
CentOS 8 Comments

hey guys,

One of our developers DESTROYED both yum and rpm on one of the development machines with an rm command. And guess who’s lucky enough to get to fix this mess? *raises hand*

So I hope y’all don’t mind me turning to you once again for some advice. You’ve been wonderful in the past. Pavlov’s dogs as they say.

At any rate, I’ve managed to fix rpm (yay) by copying it over from another machine of similar architecture and os. I’m not sure if the fix is perfect, but I can indeed install rpm’s again with that command.

Yum however is proving to be more of a challenge. And I am in the midst of some dependencies currently.

I found this guide on the net which seemed reasonable and that I could adapt to my needs.

http://deadlockprocess.wordpress.com/2010/07/18/how-to-reinstall-rpm-and-yum-without-rpm-and-yum-in-CentOSrhel/

However installing this rpm :

rpm-libs-4.4.2-37.el5.i386.rpm

Asks for a bunch of libraries.

This is what I see when I try:

[root@uszmpaplp005lc i386]# rpm -Uvh rpm-libs-4.4.2-37.el5.i386.rpm warning: rpm-libs-4.4.2-37.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
libelf.so.1 is needed by rpm-libs-4.4.2-37.el5.i386
libelf.so.1(ELFUTILS_1.0) is needed by rpm-libs-4.4.2-37.el5.i386
libelf.so.1(ELFUTILS_1.1.1) is needed by rpm-libs-4.4.2-37.el5.i386
libsqlite3.so.0 is needed by rpm-libs-4.4.2-37.el5.i386
rpm = 4.4.2-37.el5 is needed by rpm-libs-4.4.2-37.el5.i386

And this is my rpm verison:

[root@uszmpaplp005lc i386]# rpm –version RPM version 4.4.2.3

I took care of some of them by installing (before showing you the above command output) by installing :

beecrypt-4.1.2-10.1.1.i386.rpm

But now I am trying with elfutils-libelf-0.125-3.el5.i386.rpm and I am getting this confusing message:

[root@uszmpaplp005lc i386]# rpm -Uvh elfutils-libelf-0.125-3.el5.i386.rpm warning: elfutils-libelf-0.125-3.el5.i386.rpm: Header V3 DSA signature:
NOKEY, key ID e8562897
error: Failed dependencies:
elfutils > 0.125-3.el5 conflicts with elfutils-libelf-0.125-3.el5.i386
elfutils-libs > 0.125-3.el5 conflicts with elfutils-libelf-0.125-3.el5.i386

And when I check what elf libraries I currently have this is what I find;

[root@uszmpaplp005lc i386]# rpm -qa | grep elf elfutils-libelf-0.137-3.el5
elfutils-0.137-3.el5
elfutils-libs-0.137-3.el5

Just wondering what I can do to unstick myself at this point.

Thanks Tim

8 thoughts on - Dumb Developer Explodes Yum

  • Thanks for the advice! However, no luck there. :(

    btw.. obscuring the host name

    [root@host1 apr-util-1.5.1]# rpm –rebuilddb

    [root@host1 apr-util-1.5.1]# cd /tmp/install/i386/

    [root@host1 i386]# rpm -Uvh elfutils-libelf-0.125-3.el5.i386.rpm

    warning: elfutils-libelf-0.125-3.el5.i386.rpm: Header V3 DSA signature:
    NOKEY, key ID e8562897

    error: Failed dependencies:

    elfutils > 0.125-3.el5 conflicts with elfutils-libelf-0.125-3.el5.i386
    elfutils-libs > 0.125-3.el5 conflicts with elfutils-libelf-0.125-3.el5.i386

  • Am 15.06.2014 02:14, schrieb Tim Dunphy:

    Reinstall the package versions which are already registered in your rpm_db and not the old ones: elfutils*-0.137-3.el5. All at the same time.

    Alexander

  • Reinstall the package versions which are already registered in your

    Hi thanks for your input. I should’ve realized the versions were different. But when I try that suggestion you made, this is the result I get:

    [root@host1 i386]# rpm -Uvh elfutils-libs-0.137-3.el5.i386.rpm elfutils-0.137-3.el5.i386.rpm

    warning: elfutils-libs-0.137-3.el5.i386.rpm: Header V3 DSA signature:
    NOKEY, key ID e8562897

    error: Failed dependencies:

    elfutils-libelf-i386 = 0.137-3.el5 is needed by elfutils-libs-0.137-3.el5.i386

    libelf.so.1 is needed by elfutils-libs-0.137-3.el5.i386

    libelf.so.1(ELFUTILS_1.0) is needed by elfutils-libs-0.137-3.el5.i386

    libelf.so.1(ELFUTILS_1.1.1) is needed by elfutils-libs-0.137-3.el5.i386

    libelf.so.1(ELFUTILS_1.3) is needed by elfutils-libs-0.137-3.el5.i386

    libelf.so.1(ELFUTILS_1.4) is needed by elfutils-libs-0.137-3.el5.i386

    elfutils-libelf-i386 = 0.137-3.el5 is needed by elfutils-0.137-3.el5.i386

    libelf.so.1 is needed by elfutils-0.137-3.el5.i386

    libelf.so.1(ELFUTILS_1.0) is needed by elfutils-0.137-3.el5.i386

    libelf.so.1(ELFUTILS_1.1) is needed by elfutils-0.137-3.el5.i386

    libelf.so.1(ELFUTILS_1.1.1) is needed by elfutils-0.137-3.el5.i386

    libelf.so.1(ELFUTILS_1.2) is needed by elfutils-0.137-3.el5.i386

    libelf.so.1(ELFUTILS_1.3) is needed by elfutils-0.137-3.el5.i386

    libelf.so.1(ELFUTILS_1.4) is needed by elfutils-0.137-3.el5.i386

    It looks like rpm is saying that the libraries are needed when the versions you need are already there? :/

  • Hey Tim,

    You are trying to install an earlier version than you already have installed.

    rpm -Uvh elfutils-libelf-0.125-3.el5.i386.rpm < 0.125-3 [root@uszmpaplp005lc i386]# rpm -qa | grep elf elfutils-libelf-0.137-3.el5 < 0.137-3

  • [root at uszmpaplp005lc i386]# rpm -qa | grep elf elfutils-libelf-0.137-3.el5

    What, exactly, got removed? Was it one of the files in /var/lib/rpm?
    One of the “Provide” files, maybe?

    If that’s what happened, then you need to get a copy of *all* of the packages currently installed and use them to rebuild the rpm database:

    rpm -qa –qf ‘%{NAME}\n’ | sort
    # Get all of those packages rpm -Uvh –justdb –replacepkgs –replacefiles *

    And make sure they’re the same version you have installed.

  • … and I kind of feel dumb asking this, but couldn’t you just restore whatever was deleted from a backup?

  • Or since it was a development machine, just rescue what data you really need and re-image the machine from scratch. Might be _way_ faster than chasing lingering problems for days or even weeks.

    Regards, Deyan