Updating java-1.8.0-ibm from RHEL6 to RHEL7 ends up with broken symlinks

Solution Verified - Updated -

Issue

  • After upgrading from RHEL 6 using redhat-upgrade-tool, updating java-1.8.0-ibm prints a the primary link ... message

    # yum -y update java-1.8.0-ibm
    ...
    Updating   : 1:java-1.8.0-ibm-1.8.0.5.15-1jpp.5.el7.x86_64                                            1/2 
    the primary link for jce_1.8.0_ibm_local_policy.x86_64 must be /usr/lib/jvm/jre-1.8.0-ibm.x86_64/lib/security/local_policy.jar
    Cleanup    : 1:java-1.8.0-ibm-1.8.0.5.15-1jpp.2.el6_9.x86_64                                          2/2 
    Verifying  : 1:java-1.8.0-ibm-1.8.0.5.15-1jpp.5.el7.x86_64                                            1/2 
    Verifying  : 1:java-1.8.0-ibm-1.8.0.5.15-1jpp.2.el6_9.x86_64                                          2/2 
    ...
    
  • Symbolic links being created point to non-existent paths

    # for f in $(find /etc/alternatives /usr/lib/jvm /usr/lib/jvm-exports -maxdepth 1 -type l); do [ -e "$(readlink -f "$f")" ] || echo "$f"; done
    /etc/alternatives/jce_1.8.0_ibm_local_policy.x86_64
    /etc/alternatives/jce_1.8.0_ibm_us_export_policy.x86_64
    /etc/alternatives/jce_1.8.0_ibm_limited_us_export_policy.x86_64
    /etc/alternatives/jce_1.8.0_ibm_limited_local_policy.x86_64
    /etc/alternatives/jce_1.8.0_ibm_unlimited_us_export_policy.x86_64
    /etc/alternatives/jce_1.8.0_ibm_unlimited_local_policy.x86_64
    /etc/alternatives/java
    /etc/alternatives/javaw
    /etc/alternatives/jcontrol
    /etc/alternatives/jdmpview
    /etc/alternatives/jextract
    /etc/alternatives/jjs
    /etc/alternatives/keytool
    /etc/alternatives/pack200
    /etc/alternatives/policytool
    /etc/alternatives/rmid
    /etc/alternatives/rmiregistry
    /etc/alternatives/tnameserv
    /etc/alternatives/unpack200
    /etc/alternatives/jre_exports
    /etc/alternatives/jre
    /etc/alternatives/jre_ibm
    /etc/alternatives/jre_ibm_exports
    /etc/alternatives/jre_1.8.0
    /etc/alternatives/jre_1.8.0_exports
    /usr/lib/jvm/jre
    /usr/lib/jvm/jre-ibm
    /usr/lib/jvm/jre-1.8.0
    /usr/lib/jvm-exports/jre
    /usr/lib/jvm-exports/jre-ibm
    /usr/lib/jvm-exports/jre-1.8.0
    

Environment

  • Red Hat Enterprise Linux 7
  • java-1.8.0-ibm
  • redhat-upgrade-tool

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.