PDA

View Full Version : [help]how can I repair damaged software dependencies?



Jiaoziren
24th June 2006, 08:52 AM
hi there:

I've tried to uninstall Java Development Tools from "Add/Remove Application" program in FC4. Somehow a message popped out(the image below). So I use "rpm -qa java-1.4.2-gcj-compat" to query the rpm database, the output displays the package is already installed, then I typed in "rpm -Va" to find out the damaged dependencies, the output shocked me, there are a bunch of messages like this:

[root@localhost ~]# rpm -qa java-1.4.2-gcj-compat
java-1.4.2-gcj-compat-1.4.2.0-40jpp_31rh
[root@localhost ~]# rpm -Fvh java-1.4.2-gcj-compat
error: open of java-1.4.2-gcj-compat failed: No such file or directory
[root@localhost ~]# rpm -Va
..5....T c /etc/inittab
S.5....T c /etc/openldap/ldap.conf
S.5....T c /etc/pam_smb.conf
..?..... /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi/auto/Newt/Newt.bs
S.5....T /usr/lib/qt-3.3/etc/settings/kstylerc
S.5....T /usr/lib/qt-3.3/etc/settings/qtrc
prelink: /usr/bin/artsmessage: at least one of file's dependencies has changed since prelinking
S.?..... /usr/bin/artsmessage
prelink: /usr/bin/cupsdconf: at least one of file's dependencies has changed since prelinking
S.?..... /usr/bin/cupsdconf
prelink: /usr/bin/dcop: at least one of file's dependencies has changed since prelinking
S.?..... /usr/bin/dcop
prelink: /usr/bin/dcopfind: at least one of file's dependencies has changed since prelinking
S.?..... /usr/bin/dcopfind
prelink: /usr/bin/dcopquit: at least one of file's dependencies has changed since prelinking
S.?..... /usr/bin/dcopquit
prelink: /usr/bin/dcopserver: at least one of file's dependencies has changed since prelinking
S.?..... /usr/bin/dcopserver
prelink: /usr/bin/dcopstart: at least one of file's dependencies has changed since prelinking
S.?..... /usr/bin/dcopstart
prelink: /usr/bin/kab2kabc: at least one of file's dependencies has changed since prelinking
...................

How can I uninstall the java development tools package? Can I repair these failed dependencies?thanks in advance.

markkuk
24th June 2006, 09:29 AM
The package gnu-crypto is in the core repository, are you sure your repo configuration is working properly? The messages from rpm -Va don't say anything about missing dependecies, they simply inform you that some files have been updated since the last prelink run.
Try running "yum remove java-1.4.2-gcj-compat" from the command line, it should give better error messages than the GUI utility.

Jiaoziren
25th June 2006, 12:51 AM
The package gnu-crypto is in the core repository, are you sure your repo configuration is working properly? The messages from rpm -Va don't say anything about missing dependecies, they simply inform you that some files have been updated since the last prelink run.
Try running "yum remove java-1.4.2-gcj-compat" from the command line, it should give better error messages than the GUI utility.

thanks,my friend.this is what I got after typing "yum remove java-1.4.2-gcj-compat"


[root@localhost ~]# yum remove java-1.4.2-gcj-compat
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package java-1.4.2-gcj-compat.i386 0:1.4.2.0-40jpp_31rh set to be erased
--> Running transaction check
Setting up repositories
updates-released 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 391 kB 00:04
updates-re: ################################################## 1100/1100
Added 12 new packages, deleted 94 old in 6.51 seconds
primary.xml.gz 100% |=========================| 921 kB 00:07
extras : ################################################## 3228/3228
Added 87 new packages, deleted 24 old in 10.98 seconds
--> Processing Dependency: jdbc-stdext for package: avalon-logkit
--> Processing Dependency: jndi for package: ldapjdk
--> Processing Dependency: java >= 0:1.4 for package: jessie
--> Processing Dependency: jdbc-stdext for package: struts11
--> Processing Dependency: java-1.4.2-gcj-compat = 0:1.4.2.0-40jpp_31rh for package: java-1.4.2-gcj-compat-src
--> Processing Dependency: java-1.4.2-gcj-compat for package: openoffice.org-core
--> Processing Dependency: java-1.4.2-gcj-compat = 0:1.4.2.0-40jpp_31rh for package: java-1.4.2-gcj-compat-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package ldapjdk.noarch 0:4.17-1jpp_2fc set to be erased
---> Package struts11.i386 0:1.1-1jpp_7fc set to be erased
---> Package avalon-logkit.noarch 0:1.2-2jpp_4fc set to be erased
---> Package jessie.noarch 0:1.0.0-8 set to be erased
---> Package java-1.4.2-gcj-compat-devel.i386 0:1.4.2.0-40jpp_31rh set to be erased
---> Package openoffice.org-core.i386 1:1.9.104-2 set to be erased
---> Package java-1.4.2-gcj-compat-src.i386 0:1.4.2.0-40jpp_31rh set to be erased
--> Running transaction check
.
.
.
.
--> Processing Dependency: libuno_sal.so.3 for package: openoffice.org-math
--> Processing Dependency: openoffice.org-core = 1:1.9.104-2 for package: openoffice.org-draw
--> Processing Dependency: libsot680li.so for package: openoffice.org-math
--> Processing Dependency: libsb680li.so for package: openoffice.org-writer
--> Processing Dependency: libucbhelper3gcc3.so for package: openoffice.org-calc
--> Processing Dependency: libcomphelp4gcc3.so for package: openoffice.org-graphicfilter
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package openoffice.org-math.i386 1:1.9.104-2 set to be erased
---> Package openoffice.org-langpack-zh_CN.i386 1:1.9.104-2 set to be erased
---> Package openoffice.org-impress.i386 1:1.9.104-2 set to be erased
---> Package openoffice.org-calc.i386 1:1.9.104-2 set to be erased
---> Package openoffice.org-langpack-zh_TW.i386 1:1.9.104-2 set to be erased
---> Package openoffice.org-graphicfilter.i386 1:1.9.104-2 set to be erased
---> Package openoffice.org-draw.i386 1:1.9.104-2 set to be erased
---> Package openoffice.org-xsltfilter.i386 1:1.9.104-2 set to be erased
---> Package ant.i386 0:1.6.2-3jpp_8fc set to be erased
---> Package openoffice.org-writer.i386 1:1.9.104-2 set to be erased
--> Running transaction check
--> Processing Dependency: ant = 0:1.6.2-3jpp_8fc for package: ant-apache-oro
--> Processing Dependency: ant = 0:1.6.2-3jpp_8fc for package: ant-nodeps
--> Processing Dependency: ant = 0:1.6.2-3jpp_8fc for package: ant-javamail
--> Processing Dependency: ant = 0:1.6.2-3jpp_8fc for package: ant-junit
--> Processing Dependency: ant = 0:1.6.2-3jpp_8fc for package: ant-commons-logging
--> Processing Dependency: ant = 0:1.6.2-3jpp_8fc for package: ant-apache-regexp
--> Processing Dependency: ant = 0:1.6.2-3jpp_8fc for package: ant-jdepend
--> Processing Dependency: ant = 0:1.6.2-3jpp_8fc for package: ant-trax
--> Processing Dependency: ant = 0:1.6.2-3jpp_8fc for package: ant-apache-bcel
--> Processing Dependency: ant = 0:1.6.2-3jpp_8fc for package: ant-jmf
--> Processing Dependency: ant = 0:1.6.2-3jpp_8fc for package: ant-jsch
--> Processing Dependency: ant = 0:1.6.2-3jpp_8fc for package: ant-apache-log4j
--> Processing Dependency: ant = 0:1.6.2-3jpp_8fc for package: ant-apache-resolver
--> Processing Dependency: ant = 0:1.6.2-3jpp_8fc for package: ant-scripts
--> Processing Dependency: ant = 0:1.6.2-3jpp_8fc for package: ant-antlr
--> Processing Dependency: ant = 0:1.6.2-3jpp_8fc for package: ant-swing
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package ant-junit.i386 0:1.6.2-3jpp_8fc set to be erased
---> Package ant-apache-bcel.i386 0:1.6.2-3jpp_8fc set to be erased
---> Package ant-antlr.i386 0:1.6.2-3jpp_8fc set to be erased
---> Package ant-apache-resolver.i386 0:1.6.2-3jpp_8fc set to be erased
---> Package ant-jdepend.i386 0:1.6.2-3jpp_8fc set to be erased
---> Package ant-jsch.i386 0:1.6.2-3jpp_8fc set to be erased
---> Package ant-commons-logging.i386 0:1.6.2-3jpp_8fc set to be erased
---> Package ant-trax.i386 0:1.6.2-3jpp_8fc set to be erased
---> Package ant-javamail.i386 0:1.6.2-3jpp_8fc set to be erased
---> Package ant-jmf.i386 0:1.6.2-3jpp_8fc set to be erased
---> Package ant-nodeps.i386 0:1.6.2-3jpp_8fc set to be erased
---> Package ant-apache-regexp.i386 0:1.6.2-3jpp_8fc set to be erased
---> Package ant-apache-log4j.i386 0:1.6.2-3jpp_8fc set to be erased
---> Package ant-scripts.i386 0:1.6.2-3jpp_8fc set to be erased
---> Package ant-swing.i386 0:1.6.2-3jpp_8fc set to be erased
---> Package ant-apache-oro.i386 0:1.6.2-3jpp_8fc set to be erased
--> Running transaction check

Dependencies Resolved

================================================== ===========================
Package Arch Version Repository Size
================================================== ===========================
Removing:
java-1.4.2-gcj-compat i386 1.4.2.0-40jpp_31rh installed 1.7 k
Removing for dependencies:
ant i386 1.6.2-3jpp_8fc installed 7.6 M
ant-antlr i386 1.6.2-3jpp_8fc installed 5.6 k
ant-apache-bcel i386 1.6.2-3jpp_8fc installed 8.6 k
ant-apache-log4j i386 1.6.2-3jpp_8fc installed 3.0 k
ant-apache-oro i386 1.6.2-3jpp_8fc installed 65 k
ant-apache-regexp i386 1.6.2-3jpp_8fc installed 3.7 k
ant-apache-resolver i386 1.6.2-3jpp_8fc installed 4.0 k
ant-commons-logging i386 1.6.2-3jpp_8fc installed 3.9 k
ant-javamail i386 1.6.2-3jpp_8fc installed 6.7 k
ant-jdepend i386 1.6.2-3jpp_8fc installed 38 k
ant-jmf i386 1.6.2-3jpp_8fc installed 376
ant-jsch i386 1.6.2-3jpp_8fc installed 22 k
ant-junit i386 1.6.2-3jpp_8fc installed 115 k
ant-nodeps i386 1.6.2-3jpp_8fc installed 395 k
ant-scripts i386 1.6.2-3jpp_8fc installed 12 k
ant-swing i386 1.6.2-3jpp_8fc installed 3.3 k
ant-trax i386 1.6.2-3jpp_8fc installed 122 k
avalon-logkit noarch 1.2-2jpp_4fc installed 81 k
java-1.4.2-gcj-compat-devel i386 1.4.2.0-40jpp_31rh installed 2.2 k
java-1.4.2-gcj-compat-src i386 1.4.2.0-40jpp_31rh installed 0.0
jessie noarch 1.0.0-8 installed 391 k
ldapjdk noarch 4.17-1jpp_2fc installed 439 k
openoffice.org-calc i386 1:1.9.104-2 installed 15 M
openoffice.org-core i386 1:1.9.104-2 installed 188 M
openoffice.org-draw i386 1:1.9.104-2 installed 2.6 M
openoffice.org-graphicfilter i386 1:1.9.104-2 installed 300 k
openoffice.org-impress i386 1:1.9.104-2 installed 4.2 M
openoffice.org-langpack-zh_CN i386 1:1.9.104-2 installed 30 M
openoffice.org-langpack-zh_TW i386 1:1.9.104-2 installed 30 M
openoffice.org-math i386 1:1.9.104-2 installed 3.1 M
openoffice.org-writer i386 1:1.9.104-2 installed 5.7 M
openoffice.org-xsltfilter i386 1:1.9.104-2 installed 215 k
struts11 i386 1.1-1jpp_7fc installed 5.9 M

Transaction Summary
================================================== ===========================
Install 0 Package(s)
Update 0 Package(s)
Remove 34 Package(s)
Total download size: 0
Is this ok [y/N]: n
Exiting on user Command
Complete!

markkuk
25th June 2006, 09:26 AM
Ok, yum shows that if you want to remove java-1.4.2-gcj-compat, then you must give up OpenOffice as well. If you are ready to accept that, then the removal should work. You can also see that java-1.4.2-gcj-compat takes only 1.7 kB space on your system, so why not just let it stay?

Jiaoziren
26th June 2006, 02:05 AM
Ok, yum shows that if you want to remove java-1.4.2-gcj-compat, then you must give up OpenOffice as well. If you are ready to accept that, then the removal should work. You can also see that java-1.4.2-gcj-compat takes only 1.7 kB space on your system, so why not just let it stay?

ok,I've deleted the bundle cos I don't use openoffice as well and my harddisk's volume is fairly small.thank you for help. :)