LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   RPM Failed dependencies (https://www.linuxquestions.org/questions/linux-enterprise-47/rpm-failed-dependencies-282890/)

louisb 01-27-2005 10:41 AM

RPM Failed dependencies
 
Im tryng to install/Update an RPM package jkarta-commons-collections-2.1-4jpp_5rh.noarch.rpm

However I'm getting a failed dependencies error. I went to see if "lib-org-apache-commons-collection-2.1.so was present" was present in /usr/lib. I did find it there so I don't understand why I'm getting a failed dependency. I tried to re-apply the package us rpm -UV but I received the message that it was already installed which is true.

See below:
rpm -Uv /usr/src/redhat/RPMS/noarch/jakarta-commons-collections-2.1-4jpp_5rh.noarch.rpm /usr/src/redhat/RPMS/noarch/jakarta-commons-collections-javadoc-2.1-4jpp_5rh.noarch.rpm
error: Failed dependencies:
lib-org-apache-commons-collections-2.1.so is needed by (installed) commons-beanutils-1.6.1-10
lib-org-apache-commons-collections-2.1.so is needed by (installed) commons-digester-1.4.1-10

Does any body understand what's wrong here?

Should I delete the orignal "commons-collection" rpm and re-apply it with "commons-beanutils-1.6.1-10 and commons-digester-1.4.1-10"?

Thanks
Louis

jailbait 01-27-2005 11:22 AM

"Does any body understand what's wrong here? "

I don't know what is wrong but I know of a possible solution. If the file lib-org-apache-commons-collections-2.1.so exists and is in the right location then you can try to install jkarta-commons-collections-2.1-4jpp_5rh.noarch.rpm using the --nodeps option which tells rpm not to bother with dependency checking.

rpm --nodeps -i jkarta-commons-collections-2.1-4jpp_5rh.noarch.rpm

Another possible solution is to rebuild your rpm data base to get rid of any errors in the database.
rpm --rebuilddb

"Should I delete the orignal "commons-collection" rpm and re-apply it with "commons-beanutils-1.6.1-10 and commons-digester-1.4.1-10"?"

This may or may not work depending on the history of these package dependencies. If the developer has replaced the orignal "commons-collection" rpm with two packages, commons-beanutils-1.6.1-10 and commons-digester-1.4.1-10, and there are no other packages dependent on the old package name then the replacement should work.


---------------------
Steve Stites

louisb 01-27-2005 01:13 PM

Is there any way to list the packages that I'm having problems with and there dependencies?

Are the file dependency of files stored in the RPM database in relation to package information?

Example: PackageA requires files X, Y, Z
If this is true then how do I list dependencies by packages?
I'm assuming things are in the right palce because I haven't changed any of the packages.

Thanks

jailbait 01-27-2005 01:58 PM

I will use bash as the example package.

"Is there any way to list the packages that I'm having problems with and there dependencies?"

rpm --requires -qi bash | less

"Are the file dependency of files stored in the RPM database in relation to package information?"

Yes, provided that the package was installed using rpm. If it was installed by compiling then it is not recorded in the rpm data base.


"I'm assuming things are in the right palce because I haven't changed any of the packages."

For the questionable packages you can list where rpm thinks the files are with:
rpm -ql bash | less
and then check to see if that is where the files really are.

There are other useful query options that you can read about in man rpm.

------------------------
Steve Stites


All times are GMT -5. The time now is 08:33 PM.