PDA

View Full Version : KDE Dependency Problems


gonzalo76
2004-03-19, 04:24 PM CST
Hi, I was trying to update my KDE 3.1 version to the last 3.2.1 version. So I started to install the rpms in order.
I could install "arts" without any problem, but when I tried to install "kdelibs" this warning message appeared:

# rpm -Uvh kdelibs-3.2.1-0.1.i386.rpm
error: Failed dependencies:
qt >= 1:3.3.1 is needed by kdelibs-3.2.1-0.1
redhat-artwork >= 0.92 is needed by kdelibs-3.2.1-0.1

So, I tried to install qt-3.3.1
# rpm -Uvh qt-3.3.1-0.2.i386.rpm
error: Failed dependencies:
/usr/lib/qt-3.1 is needed by (installed) redhat-artwork-0.88-1

The funny thing here is that qt 3.1 and redhat-artwork 0.88 are installed in my system. I also checked my /etc/ld.so.conf and the link was there too.
/usr/X11R6/lib
/usr/lib/sane
/usr/lib/qt-3.1/lib <------

Conclusion, I can not upgrade my KDE to the new version and I really don't not why.
I need help !!! :(

johnrjr
2004-03-19, 09:14 PM CST
Check out the following site, http://fedoranews.org, it has a great howto for installing fresh or upgrading KDE. I followed the instructions and it worked like a charm. I used the rpm -fvh command, so it just upgraded whatever KDE files I all ready had installed... no dependency issues at all

gonzalo76
2004-03-19, 09:37 PM CST
I know that tutorial, I know a lot of tutorials about how to update or install KDE, but I never saw something like this:

[root@pc-gonzalo kde]# sudo rpm -Fvh arts-1.2.1-0.1.i386.rpm
[root@pc-gonzalo kde]# rpm -Fvh kdelibs-3.2.1-0.1.i386.rpm
error: Failed dependencies:
qt >= 1:3.3.1 is needed by kdelibs-3.2.1-0.1
redhat-artwork >= 0.92 is needed by kdelibs-3.2.1-0.1


[root@pc-gonzalo kde]# rpm -Fvh qt-3.3.1-0.2.i386.rpm
error: Failed dependencies:
/usr/lib/qt-3.1 is needed by (installed) redhat-artwork-0.88-1

The funny thing here is that qt 3.1 and redhat-artwork 0.88 are already installed in my system. I also checked my /etc/ld.so.conf and the link was there too.
/usr/X11R6/lib
/usr/lib/sane
/usr/lib/qt-3.1/lib <------

Any idea? :(

Another user had the same problem at linuxquestions.org http://www.linuxquestions.org/questions/archive/35/2004/02/2/142521

Jeffa
2004-03-19, 10:01 PM CST
Have you downloaded all the files in http://ftp.us.kde.org/pub/kde/stable/3.2/RedHat/Fedora/i386/
???

If so, I use the command: sudo rpm -Uvh --force --nodeps a* k* q* r*

You shouldnt get any errors with this :)

-Jeffa

gonzalo76
2004-03-19, 11:18 PM CST
Jeffa:

Well, finally I could install KDE 3.2.1 with the command:

rpm -Uvh --force --nodeps *

and everything went just fine !!!

In the future, do I have to use that command to upgrade my KDE version? Why couldn't I install it with rpm -Uvh command?
In this tutorial (http://fedoranews.org/krishnan/tutorial/kde3.2/index.shtml) they used -Uvh command, but for me it was impossible to use it. A lot of dependency warnings appeared with that command, do you know why?

Anyway, what a great update, 3.2.1, just excellent !!! Highly recommended

Greeetings

Jeffa
2004-03-19, 11:26 PM CST
Ok, well --force basiclly runs over everything in regards to conflicts, and --nodeps ignores dependencies....

The one conflict that normally comes up is sorted after the install is complete anyway, so there are no broken links anywhere.

-Jeffa

genci
2004-03-20, 12:47 AM CST
Originally posted by gonzalo76
Jeffa:
In the future, do I have to use that command to upgrade my KDE version? Why couldn't I install it with rpm -Uvh command?
In this tutorial (http://fedoranews.org/krishnan/tutorial/kde3.2/index.shtml) they used -Uvh command, but for me it was impossible to use it. A lot of dependency warnings appeared with that command, do you know why?


Welcome to circular dependencies :p

Using --force --nodeps as a general practice is not a good idea and you can break things that way.

The RPM program is good at sorting out circular dependencies if you install all the packages in a single hit using rpm -Uvh *.rpm within a directory that contains all the downloaded KDE rpm's. The wildcard * indicates that all files ending in .rpm are to be installed. The RPM program will check for any missing dependencies and then sorts out the correct installation order automatically so that there are no circular dependencies. You still might get missing individual dependencies, but these are quickly sorted out and the required file can be added to the installation directory.

I didn't install every package available either, rather I just choose what I wanted/needed. I did however check to see what packages I already had installed, and if I had xyz.rpm and xyz-devel.rpm, I made sure that I included the updated devel package when updating xyz. Worked well for me :)

gonzalo76
2004-03-20, 10:17 AM CST
genci:

Thanks for your reply !
I did not like the way I upgrade KDE with rpm -Uvh --force --nodeps command, so I uninstalled it and installed again KDE version 3.1 from the Fedora CD.

Well, finally, I could upgrade my KDE to version 3.2.1 with the command rpm -Uvh *.rpm without any dependency warnings. Everything worked just fine !!!

Here's the log:

[root@dhcp-4344-1 base]# rpm -Fvh *.rpm
Preparing... ########################################### [100%]
1:qt ########################################### [ 7%]
2:arts ########################################### [ 13%]
3:redhat-artwork ########################################### [ 20%]
4:kdelibs ########################################### [ 27%]
5:kdebase warning: /etc/X11/xdm/kdmrc saved as /etc/X11/xdm/kdmrc.rpmsave
########################################### [ 33%]
6:kdemultimedia ########################################### [ 40%]
7:kdepim ########################################### [ 47%]
8:kdegames ########################################### [ 53%]
9:kdegraphics ########################################### [ 60%]
10:kdenetwork ########################################### [ 67%]
11:kdeutils ########################################### [ 73%]
12:koffice ########################################### [ 80%]
13:kdeaddons ########################################### [ 87%]
14:kdeadmin ########################################### [ 93%]
15:kdeartwork ########################################### [100%]

Do you know what does it mean this warning?
5:kdebase warning: /etc/X11/xdm/kdmrc saved as /etc/X11/xdm/kdmrc.rpmsave

Greetings
gonzalo:)

gonzalo76
2004-03-22, 06:27 PM CST
Just one question, what does it mean the warning about kdebase ?

5:kdebase warning: /etc/X11/xdm/kdmrc saved as /etc/X11/xdm/kdmrc.rpmsave
########################################### [ 33%]


Greetings :)