Bugzilla – Bug 666463
update-alternatives: internal error: /var/lib/rpm/alternatives/java corrupt
Last modified: 2011-02-15 09:10:31 UTC
I had both java-1_6_0-openjdk-1.6.0.0_b20.1.9.2-0.2.1.i586 and java-1_6_0-sun-1.6.0.u23-0.2.1.i586 installed in my system. /usr/bin/java -> /etc/alternatives/java -> /usr/lib/jvm/jre-1.6.0-openjdk/bin/java rpm -e java-1_6_0-openjdk prints the following warning-error: warning: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/fontconfig.SuSE.properties saved as /usr/lib/jvm/java-1.6.0-openjdk-1.6.0/jre/lib/fontconfig.SuSE.properties.rpmsave update-alternatives: internal error: /var/lib/rpm/alternatives/java corrupt: priority /usr/lib/jvm/jre-1.6.0-sun /usr/share/man/man1/policytool-java-1_6_0-sun.1.gz and /etc/alternatives/java is unchanged, although the link target no longer exists. This leaves me with a ruined java installation. I have the following list of packages that depend on sun-1_6_0-java, so I cannot attempt by remove and re-install: error: Failed dependencies: jre >= 1.5.0 is needed by (installed) jarnal-9.23-25.1.noarch jre >= 1.6 is needed by (installed) OpenOffice_org-LanguageTool-1.0.0-5.1.noarch java >= 1.6 is needed by (installed) jxgrabkey-0.3.2-1.1.i586 java >= 1.4 is needed by (installed) batik-1.7-201.2.noarch jre-32 > 1.5 is needed by (installed) OpenOffice_org-writer-extensions-3.2.1.4-1.5.i586 jre-32 > 1.5 is needed by (installed) OpenOffice_org-calc-extensions-3.2.1.4-1.5.i586 jre-32 > 1.5 is needed by (installed) OpenOffice_org-base-3.2.1.4-1.6.i586 java-1_6_0-sun is needed by (installed) sikuli-0.10.2-8.1.i586
Can you give me a /var/lib/rpm/java?
I'm sure this is a dup of bnc#669716, so let's close it. *** This bug has been marked as a duplicate of bug 669716 ***