-
Bug
-
Resolution: Fixed
-
P2
-
8u101, 9
-
b143
-
x86
-
other
-
Fix failed
FULL PRODUCT VERSION :
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux fadheela 3.0.101-80-default #1 SMP Fri Jul 15 14:30:41 UTC 2016 (eb2ba81) x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
1) Installing java give an error
A- Installing give us error:
fadheela:~ # rpm -ivh jre-8u101-linux-x64.rpm
Preparing... ########################################### [100%]
1:jre1.8.0_101 ########################################### [100%]
Unpacking JAR files...
plugin.jar...
javaws.jar...
deploy.jar...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
/var/tmp/rpm-tmp.40318: line 638: /usr/sbin/alternatives: No such file or directory
error: %post(jre1.8.0_101-1.8.0_101-fcs.x86_64) scriptlet failed, exit status 127
B)
fadheela:~ # java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
C) un-installing give us error
A)
fadheela:~ # rpm -e jre1.8.0_101-1.8.0_101-fcs
/var/tmp/rpm-tmp.23896: line 583: /usr/sbin/alternatives: No such file or directory
error: %postun(jre1.8.0_101-1.8.0_101-fcs.x86_64) scriptlet failed, exit status 127
B)
fadheela:~ # rpm -qa | grep jre
jre1.8.0_101-1.8.0_101-fcs
REGRESSION. Last worked in version 8u101
ADDITIONAL REGRESSION INFORMATION:
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Install SUSE 11 SP4 and patch it fully.
install java using this rpm jre-8u101-linux-x64.rpm
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Install / un-install without error
ACTUAL -
1) Installing java give an error
A- Installing give us error:
fadheela:~ # rpm -ivh jre-8u101-linux-x64.rpm
Preparing... ########################################### [100%]
1:jre1.8.0_101 ########################################### [100%]
Unpacking JAR files...
plugin.jar...
javaws.jar...
deploy.jar...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
/var/tmp/rpm-tmp.40318: line 638: /usr/sbin/alternatives: No such file or directory
error: %post(jre1.8.0_101-1.8.0_101-fcs.x86_64) scriptlet failed, exit status 127
B)
fadheela:~ # java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
C) un-installing give us error
A)
fadheela:~ # rpm -e jre1.8.0_101-1.8.0_101-fcs
/var/tmp/rpm-tmp.23896: line 583: /usr/sbin/alternatives: No such file or directory
error: %postun(jre1.8.0_101-1.8.0_101-fcs.x86_64) scriptlet failed, exit status 127
B)
fadheela:~ # rpm -qa | grep jre
jre1.8.0_101-1.8.0_101-fcs
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
1) if java was not installed then:
ln -s /usr/sbin/update-alternatives /usr/sbin/alternatives
2) if java was installed with error, to uninstall it then
# run uninstall twice:
rpm -e "jre1.8.0_101-1.8.0_101-fcs"
rpm -e "jre1.8.0_101-1.8.0_101-fcs"
rpm -e "jre1.8.0_101-1.8.0_101-fcs" --allmatches --justdb
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux fadheela 3.0.101-80-default #1 SMP Fri Jul 15 14:30:41 UTC 2016 (eb2ba81) x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
1) Installing java give an error
A- Installing give us error:
fadheela:~ # rpm -ivh jre-8u101-linux-x64.rpm
Preparing... ########################################### [100%]
1:jre1.8.0_101 ########################################### [100%]
Unpacking JAR files...
plugin.jar...
javaws.jar...
deploy.jar...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
/var/tmp/rpm-tmp.40318: line 638: /usr/sbin/alternatives: No such file or directory
error: %post(jre1.8.0_101-1.8.0_101-fcs.x86_64) scriptlet failed, exit status 127
B)
fadheela:~ # java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
C) un-installing give us error
A)
fadheela:~ # rpm -e jre1.8.0_101-1.8.0_101-fcs
/var/tmp/rpm-tmp.23896: line 583: /usr/sbin/alternatives: No such file or directory
error: %postun(jre1.8.0_101-1.8.0_101-fcs.x86_64) scriptlet failed, exit status 127
B)
fadheela:~ # rpm -qa | grep jre
jre1.8.0_101-1.8.0_101-fcs
REGRESSION. Last worked in version 8u101
ADDITIONAL REGRESSION INFORMATION:
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Install SUSE 11 SP4 and patch it fully.
install java using this rpm jre-8u101-linux-x64.rpm
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Install / un-install without error
ACTUAL -
1) Installing java give an error
A- Installing give us error:
fadheela:~ # rpm -ivh jre-8u101-linux-x64.rpm
Preparing... ########################################### [100%]
1:jre1.8.0_101 ########################################### [100%]
Unpacking JAR files...
plugin.jar...
javaws.jar...
deploy.jar...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
/var/tmp/rpm-tmp.40318: line 638: /usr/sbin/alternatives: No such file or directory
error: %post(jre1.8.0_101-1.8.0_101-fcs.x86_64) scriptlet failed, exit status 127
B)
fadheela:~ # java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
C) un-installing give us error
A)
fadheela:~ # rpm -e jre1.8.0_101-1.8.0_101-fcs
/var/tmp/rpm-tmp.23896: line 583: /usr/sbin/alternatives: No such file or directory
error: %postun(jre1.8.0_101-1.8.0_101-fcs.x86_64) scriptlet failed, exit status 127
B)
fadheela:~ # rpm -qa | grep jre
jre1.8.0_101-1.8.0_101-fcs
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
1) if java was not installed then:
ln -s /usr/sbin/update-alternatives /usr/sbin/alternatives
2) if java was installed with error, to uninstall it then
# run uninstall twice:
rpm -e "jre1.8.0_101-1.8.0_101-fcs"
rpm -e "jre1.8.0_101-1.8.0_101-fcs"
rpm -e "jre1.8.0_101-1.8.0_101-fcs" --allmatches --justdb