System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

error while installing/upgrading rpm

Sunny Jaisinghani
Trusted Contributor

error while installing/upgrading rpm

Hello,

I am trying to install krb5-libs-1.4-4.pp-rh73.i386.rpm on my Red Hat 7.X server, however while installing/upgrading it fails due to dependencies.

I checked for these dependencies and i already found them on the server.
I wonder why it is giving these errors.
I tried copying these libraries to /usr/lib and then trying upgrading the package with no success.

#rpm -Uvh krb5-libs-1.4-4.pp-rh73.i386.rpm
error: failed dependencies:
libdyn.so.1 is needed by pam_krb5-1.31-1
libgssrpc.so.3 is needed by pam_krb5-1.31-1
libkadm5clnt.so.4 is needed by pam_krb5-1.31-1
libkdb5.so.3 is needed by pam_krb5-1.31-1



# rpm -qa | grep -i krb5
pam_krb5-1.31-1
krb5-libs-1.2.2-24


#pwd; ll libdyn.so.1 libgssrpc.so.3 libkadm5clnt.so.4 libkdb5.so.3
/usr/kerberos/lib
lrwxrwxrwx 1 root root 13 Oct 18 2001 libdyn.so.1 -> libdyn.so.1.0
lrwxrwxrwx 1 root root 16 Oct 18 2001 libgssrpc.so.3 -> libgssrpc.so.3.0
lrwxrwxrwx 1 root root 19 Oct 18 2001 libkadm5clnt.so.4 -> libkadm5clnt.so.4.0
lrwxrwxrwx 1 root root 14 Oct 18 2001 libkdb5.so.3 -> libkdb5.so.3.0


Please suggest a solution to this

Thanks
Sunny
4 REPLIES
Matti_Kurkela
Honored Contributor

Re: error while installing/upgrading rpm

You need to install one or more RPM packages that will provide the necessary libraries.

The rpm command tracks dependencies by looking at its package database, not at the actual filesystem. If someone has copied the library files to the system without installing the appropriate RPM, the rpm command will not know about them and will assume the libraries are not there.

MK
MK
Sunny Jaisinghani
Trusted Contributor

Re: error while installing/upgrading rpm

I installed the rpm with --nodeps filter
Gerardo Arceri
Trusted Contributor

Re: error while installing/upgrading rpm

Try using --nodeps --force (highly unrecommended)
dirk dierickx
Honored Contributor

Re: error while installing/upgrading rpm

those libraries have been installed outside of the 'rpm' system, either by compilation or a tar package? if not, and you used an rpm package, then your rpm database is corrupt.

you should never mix rpm and non-rpm packages.

also rh7.3 is very very old, we're talking second half of the 90's here. rpm didn't do dependency resolving for you in those days.

if this is an install to test or learn RH, i suggest you move along to something more recent.