JDK-8075409 : jre8-40 fails to install on SuSE 11.3
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 8u40
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux_suse_sles_11
  • CPU: x86_64
  • Submitted: 2015-03-18
  • Updated: 2018-03-16
  • Resolved: 2015-05-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u60 b19Fixed 9Fixed
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
Linux nms1 3.0.101-0.8-default #1 SMP Fri Nov 1 12:51:09 UTC 2013 (2417eb9) x86_64 x86_64 x86_64 GNU/Linux

A DESCRIPTION OF THE PROBLEM :
Java fails to install on SuSE 11.3 with the lastest version (JRE8-40). An rpm-i yields the following result:

#rpm -i jre-8u40-linux-x64.rpm
error: Failed dependencies:
        /usr/sbin/alternatives is needed by jre1.8.0_40-1.8.0_40-fcs.x86_64


/usr/sbin/alternatives appears to be a redhat directory (according to google). SuSE has a update-alternatives directory that appears to have the same function, but the rpm was not made to check for that directory. Additionally, creating a symbolic link for /usr/sbin/alternatives that points to the SuSE /usr/sbin/update-alternitives does not work.

REGRESSION.  Last worked in version 8u31

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
2 methods:
1)
- Obtain a SuSE server with 11.3 and latest patches from Novell
- Download rpm from oracle website and try to 'rpm -i' the rpm
2)
- Obtain a SuSE server with 11.3 and latest patches from Novell
- Install jre-8u31-linux-x64.rpm and preform a 'rpm -u' or 'rpm -i'

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The rpm will unpack and install
ACTUAL -
The rpm outputs the error:

error: Failed dependencies:
        /usr/sbin/alternatives is needed by jre1.8.0_40-1.8.0_40-fcs.x86_64

and does not install

ERROR MESSAGES/STACK TRACES THAT OCCUR :
error: Failed dependencies:
        /usr/sbin/alternatives is needed by jre1.8.0_40-1.8.0_40-fcs.x86_64

REPRODUCIBILITY :
This bug can be reproduced always.


Comments
Install succeed, Java -version works fine. But the install process still throws error/warning message. Opened a new bug JDK-8098811 to address the new issue.
24-06-2015

Verified with 8u60 b19 promoted bundle, still get below error. But "/user/java/jre1.8.0_60/bin/java -version" works correctly after installation. Opened a new bug JDK-8098811 for future monitor. joy@linux-0g8a:~/Downloads> sudo rpm -i jre-8u60-ea-linux-x64.rpm root's password: Unpacking JAR files... plugin.jar... javaws.jar... deploy.jar... rt.jar... jsse.jar... charsets.jar... localedata.jar... jfxrt.jar... /var/tmp/rpm-tmp.ylUjEs: line 638: /usr/sbin/alternatives: No such file or directory warning: %post(jre1.8.0_60-1.8.0_60-ea.x86_64) scriptlet failed, exit status 127 joy@linux-0g8a:~/Downloads> /usr/java/jre1.8.0_60/bin/java -version java version "1.8.0_60-ea" Java(TM) SE Runtime Environment (build 1.8.0_60-ea-b19) Java HotSpot(TM) 64-Bit Server VM (build 25.60-b19, mixed mode)
18-06-2015

Changing /usr/sbin/alternatives to /usr/sbin/update-alternatives in the Required category.
21-04-2015

Looks like /usr/sbin/update-alternatives is something common to both SLES and RedHat flavors; if so we should verify and update it from /usr/sbin/alternatives to /usr/sbin/update-alternatives
20-04-2015