LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-27-2005, 10:41 AM   #1
louisb
Member
 
Registered: Aug 2003
Posts: 199

Rep: Reputation: 15
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
 
Old 01-27-2005, 11:22 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
"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

Last edited by jailbait; 01-27-2005 at 11:27 AM.
 
Old 01-27-2005, 01:13 PM   #3
louisb
Member
 
Registered: Aug 2003
Posts: 199

Original Poster
Rep: Reputation: 15
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
 
Old 01-27-2005, 01:58 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RPM failed dependencies. unreal128 Linux - Software 4 09-13-2005 06:00 PM
Failed dependencies with rpm mourisj Linux - Software 1 04-03-2005 05:52 PM
rpm failed dependencies wedgeworth Linux - Software 4 12-30-2003 03:55 PM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 12:44 AM
Rpm Failed Dependencies how to??? l0f33t Linux - Software 10 09-06-2003 01:15 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration