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. |
Either do;
Install all at the same time: rpm -Uvh cups*.rpm or use yum: yum update cups |
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. |
So what files are in /etc/yum.repos.d?
|
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 |
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. |
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. |
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. |
All times are GMT -5. The time now is 03:25 PM. |