LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2007, 08:31 PM   #1
Tom Douglas
Member
 
Registered: Jun 2007
Posts: 89

Rep: Reputation: 15
Failed dependencies for RPM installs


Hello!

On occasion I attempt to install some RPM's on my Fecora Core 6 system. Many times I run into many failures for dependencies. Once in a while I'll find an RPM and successfully install a given set but not every time.

The failures, for example, is with CUPS. The following is my terminal snapshot.....

------------------
# rpm -Uvh cups-1.2.12-1.fc6.i386.rpm
warning: cups-1.2.12-1.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
cups-libs = 1:1.2.12 is needed by cups-1.2.12-1.fc6.i386
cups = 1:1.2.4 is needed by (installed) cups-lpd-1.2.4-9.i386

# rpm -Uvh cups-1.2.4-9.i386.rpmwarning: cups-1.2.4-9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ########################################### [100%]
package cups-1.2.4-9 is already installed

# rpm -Uvh cups-libs-1.2.12-1.fc6.i386.rpmwarning: cups-libs-1.2.12-1.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
cups-libs = 1:1.2.4 is needed by (installed) cups-1.2.4-9.i386

# rpm -Uvh cups-lpd-1.2.12-1.fc6.i386.rpmwarning: cups-lpd-1.2.12-1.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
cups = 1:1.2.12 is needed by cups-lpd-1.2.12-1.fc6.i386

---------------------------

As you can see, the first install is looking for the second and third, the second is already installed, and the third is looking for the second, etc.

Am I understanding things correctly? Or am I misinterpreting something? I'm lost here....

My FC6 machine is not accessible online; my Windows hog is used for downloading, and transfering via Samba.

Thanks!

Tom D.
 
Old 07-21-2007, 08:33 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
Either do;

Install all at the same time: rpm -Uvh cups*.rpm

or use yum: yum update cups
 
Old 07-25-2007, 05:25 AM   #3
Tom Douglas
Member
 
Registered: Jun 2007
Posts: 89

Original Poster
Rep: Reputation: 15
Hi, Lenard,

I wouldn't have thought of wildcards here in a thousand years! Makes sense! Anyhow, my results....

[root@tweety portal]# ls cups*
cups-1.2.12-1.fc6.i386.rpm cups-libs-1.2.12-1.fc6.i386.rpm
cups-1.2.4-9.i386.rpm cups-lpd-1.2.12-1.fc6.i386.rpm
[root@tweety portal]# rpm -Uvh cups-*
warning: cups-1.2.12-1.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
warning: package cups = 1:1.2.12-1.fc6 was already added, skipping cups < 1:1.2.4-9
error: error reading from file cups-1.2.4-9.i386.rpm
[root@tweety portal]#

This makes me wonder if I have a corrupt file. cups-1.2.4-9.i386.rpm is listed in the working directory. But continuing.....

[root@tweety portal]# rpm -e cups-1.2.12-1.fc6.i386.rpm
error: package cups-1.2.12-1.fc6.i386.rpm is not installed
[root@tweety portal]#

From the ls listing of cups, cups-1.2.12-1.fc6.i386.rpm is present in the current directory. So I'm puzzled as to what's going on with this.

Trying the other technique....

[root@tweety portal]# yum update cups
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Could not find update match for cups
No Packages marked for Update/Obsoletion
[root@tweety portal]#

puril (?) is showing that I stull have cups*-1.2.4-9.i386 (without fc6 showing) being current. Are there repositories that puril is looking for?

Thanks!

Tom D.
 
Old 07-25-2007, 05:54 AM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
So what files are in /etc/yum.repos.d?
 
Old 07-25-2007, 06:04 AM   #5
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
This is a typical newbie mistake: rpm -e cups-1.2.12-1.fc6.i386.rpm

Install by the file name: rpm -Uvh cups-1.2.12-1.fc6.i386.rpm
Remove by the package name: rpm -e cups-1.2.12-1.fc6

Since you already have one or more of the packages installed fist check which cups packages are installed;

rpm -qa 'cups*'

Only the newer version of the cups package should be installed, if you need to install the cups-lpd and cups-libs rpm packages since you alread seem to have cups installed then do;

rpm -Uvh cups-libs*.rpm cups-lpd*.rpm

or you can in this exampe shorten the command to:

rpm -Uvh cups-l*.rpm
 
Old 07-26-2007, 05:23 AM   #6
Tom Douglas
Member
 
Registered: Jun 2007
Posts: 89

Original Poster
Rep: Reputation: 15
Jay, I have nothing in /etc/repos.d. The files originally placed there my Fedora's install have ".org" appended so that puril (and I'm guessing yum too) doesn't see them.

I use puril to see what's installed.

Tom D.
 
Old 07-26-2007, 09:37 AM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
You do mean "/etc/yum.repos.d/", unlike what you wrote? If so, then yum is completely broken because it retrieves its internet sources precisely from that directory (as a rule, that is - unless this type of information was placed in yum.conf, but that woulnd't happen automatically).

If you are sure that the repository files are missing, you should have a look at this:

http://wiki.vpslink.com/index.php?ti..._Fedora_Core_6

It's still not complete as it covers only the official repositories; the third party repositories (audio and video codecs etc) need to be set up separately.
 
Old 08-19-2007, 07:30 PM   #8
Tom Douglas
Member
 
Registered: Jun 2007
Posts: 89

Original Poster
Rep: Reputation: 15
Failed dependencies for RPM installs

Hi, all!

Sorry for my long absence....I had a lot going on and couldn't get back online and troubleshoot my Linux boxes....

Anyhow, just an update.... I downloaded up-to-date cups* (three files) and system-config-printer* (2 files), deleted the old ones and now got all of those to install without any grief.

The old cups RPM version (cups*-1.2.4-9.i386) I had was probably the culprit to the whole process. Without that, things went smoothly.

So I consider this one resolved. I just have to figure out how to hook up to my printer on a Win-XP box. It's not working through my local net and I have to research that.

Jay, in regards to pirut's pointers, none of my Linux boxes have any Internet access. That's why I have no pointers enabled. I have to download manually using my Win-XP box. Having Internet access to all boxes is a someday thing when I build my security knowledge and control. You are right about "/etc/yum.repos.d/" being the repository for purit.

Anyhow, many thanks for your help!

Tom D.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
RPM Failed dependencies louisb Linux - Enterprise 3 01-27-2005 01:58 PM
Failed dependencies in RPM louisb Linux - Enterprise 1 01-12-2005 02:37 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:31 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration