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...
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
On Sat, Jun 14, 2014 at 08:14:43PM -0400, Tim Dunphy wrote:
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
Try just rebuilding the database...
rpm --rebuilddb
Try just rebuilding the database... rpm --rebuilddb
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
On Sat, Jun 14, 2014 at 8:25 PM, Stephen Harris lists@spuddy.org wrote:
On Sat, Jun 14, 2014 at 08:14:43PM -0400, Tim Dunphy wrote:
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
Try just rebuilding the database...
rpm --rebuilddb
--
rgds Stephen _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 06/14/14 23:00, Tim Dunphy wrote:
Try just rebuilding the database... rpm --rebuilddb
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
On Sat, Jun 14, 2014 at 8:25 PM, Stephen Harris lists@spuddy.org wrote:
On Sat, Jun 14, 2014 at 08:14:43PM -0400, Tim Dunphy wrote:
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
Try just rebuilding the database...
rpm --rebuilddb
--
rgds Stephen _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
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
Am 15.06.2014 02:14, schrieb Tim Dunphy:
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
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 rpm_db and not the old ones: elfutils*-0.137-3.el5. All at the same time.
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.
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? :/
On Sat, Jun 14, 2014 at 11:04 PM, Alexander Dalloz ad+lists@uni-x.org wrote:
Am 15.06.2014 02:14, schrieb Tim Dunphy:
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
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
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 06/15/2014 09:46 AM, Tim Dunphy wrote:
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
You are missing elfutils-libelf. There should be three packages.
Your original message doesn't make much sense to me, though.
[root at uszmpaplp005lc i386]# rpm -Uvh rpm-libs-4.4.2-37.el5.i386.rpm error: Failed dependencies: libelf.so.1 is needed by rpm-libs-4.4.2-37.el5.i386
Sure, and libelf.so.1 is in elfutils-libelf. But you also wrote:
[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?
On Sun, Jun 15, 2014 at 1:46 PM, Gordon Messmer gordon.messmer@gmail.com wrote:
... 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