Bug 666463 - update-alternatives: internal error: /var/lib/rpm/alternatives/java corrupt
Summary: update-alternatives: internal error: /var/lib/rpm/alternatives/java corrupt
Status: RESOLVED DUPLICATE of bug 669716
Alias: None
Product: openSUSE 11.3
Classification: openSUSE
Component: Java (show other bugs)
Version: Final
Hardware: Other Other
: P2 - High : Normal (vote)
Target Milestone: ---
Assignee: Michal Vyskocil
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-23 23:05 UTC by Juergen Weigert
Modified: 2011-02-15 09:10 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Weigert 2011-01-23 23:05:24 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
Comment 1 Michal Vyskocil 2011-02-14 13:19:06 UTC
Can you give me a /var/lib/rpm/java?
Comment 2 Michal Vyskocil 2011-02-15 09:10:31 UTC
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 ***