on multiple new/clean installs of grep PRETTY /etc/os-release PRETTY_NAME="Fedora 32 (Server Edition)" with rpm -qa | egrep "jdk|jre|java|jvm" | sort copy-jdk-configs-3.7-5.fc32.noarch java-11-openjdk-11.0.8.10-2.fc32.x86_64 java-11-openjdk-devel-11.0.8.10-2.fc32.x86_64 java-11-openjdk-headless-11.0.8.10-2.fc32.x86_64 java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64 java-1.8.0-openjdk-devel-1.8.0.265.b01-1.fc32.x86_64 java-1.8.0-openjdk-headless-1.8.0.265.b01-1.fc32.x86_64 java-latest-openjdk-14.0.2.12-1.rolling.fc32.x86_64 java-latest-openjdk-devel-14.0.2.12-1.rolling.fc32.x86_64 java-latest-openjdk-headless-14.0.2.12-1.rolling.fc32.x86_64 javapackages-filesystem-5.3.0-9.fc32.noarch javapackages-tools-5.3.0-9.fc32.noarch tzdata-java-2020a-1.fc32.noarch no java et al alternatives are installed rpm -qa | grep alternatives alternatives-1.11-6.fc32.x86_64 alternatives --list | egrep -i "jdk|jre|java|jvm" (empty) there are no alternatives' symlinks in ls -al /usr/lib/jvm total 20K drwxr-xr-x 5 root root 4.0K Aug 29 08:33 ./ dr-xr-xr-x. 50 root root 4.0K Aug 3 12:58 ../ drwxr-xr-x 7 root root 4.0K Aug 29 08:32 java-11-openjdk-11.0.8.10-2.fc32.x86_64/ drwxr-xr-x 7 root root 4.0K Aug 29 08:33 java-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64/ drwxr-xr-x 7 root root 4.0K Aug 29 08:31 java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/ lrwxrwxrwx 1 root root 39 Jul 18 10:41 jre-11-openjdk-11.0.8.10-2.fc32.x86_64 -> java-11-openjdk-11.0.8.10-2.fc32.x86_64/ lrwxrwxrwx 1 root root 47 Jul 23 04:48 jre-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64 -> java-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64/ lrwxrwxrwx 1 root root 50 Jul 27 20:02 jre-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64 -> java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/jre/ by comparison on a java-alternatives-capable opensuse install, rpm -qa | egrep "jdk|jre|java|jvm" | sort java-11-openjdk-11.0.8.0-lp152.156.8.x86_64 java-11-openjdk-devel-11.0.8.0-lp152.156.8.x86_64 java-11-openjdk-headless-11.0.8.0-lp152.156.8.x86_64 java-14-openjdk-14.0.2.0-lp152.14.8.x86_64 java-14-openjdk-devel-14.0.2.0-lp152.14.8.x86_64 java-14-openjdk-headless-14.0.2.0-lp152.14.8.x86_64 javamail-1.5.2-lp152.11.3.noarch javapackages-filesystem-5.3.1-lp152.91.2.x86_64 javapackages-tools-5.3.1-lp152.91.2.x86_64 libjavascriptcoregtk-4_0-18-2.28.4-lp152.2.4.3.x86_64 libreadline-java-0.8.2-lp152.313.3.x86_64 timezone-java-2020a-lp152.2.1.noarch ls -al /usr/lib64/jvm total 392K drwxr-xr-x 5 root root 4.0K Aug 29 08:58 ./ drwxr-xr-x 301 root root 372K Aug 29 06:52 ../ lrwxrwxrwx 1 root root 26 Sep 5 2019 java -> /etc/alternatives/java_sdk/ lrwxrwxrwx 1 root root 29 Sep 5 2019 java-11 -> /etc/alternatives/java_sdk_11/ lrwxrwxrwx 1 root root 18 Aug 27 18:19 java-11-openjdk -> java-11-openjdk-11/ drwxr-xr-x 7 root root 4.0K Aug 27 18:19 java-11-openjdk-11/ lrwxrwxrwx 1 root root 29 Mar 19 08:44 java-14 -> /etc/alternatives/java_sdk_14/ lrwxrwxrwx 1 root root 18 Aug 27 19:12 java-14-openjdk -> java-14-openjdk-14/ drwxr-xr-x 7 root root 4.0K Aug 27 19:12 java-14-openjdk-14/ lrwxrwxrwx 1 root root 34 Sep 5 2019 java-openjdk -> /etc/alternatives/java_sdk_openjdk/ lrwxrwxrwx 1 root root 21 Sep 5 2019 jre -> /etc/alternatives/jre/ lrwxrwxrwx 1 root root 24 Sep 5 2019 jre-11 -> /etc/alternatives/jre_11/ lrwxrwxrwx 1 root root 18 Aug 27 18:19 jre-11-openjdk -> java-11-openjdk-11/ lrwxrwxrwx 1 root root 24 Mar 19 08:44 jre-14 -> /etc/alternatives/jre_14/ lrwxrwxrwx 1 root root 18 Aug 27 19:12 jre-14-openjdk -> java-14-openjdk-14/ lrwxrwxrwx 1 root root 29 Sep 5 2019 jre-openjdk -> /etc/alternatives/jre_openjdk/ rpm -qa | grep alternatives update-alternatives-1.19.0.4-lp152.4.104.x86_64 update-alternatives --get-selections | egrep -i "jdk|jre|java|jvm" java manual /usr/lib64/jvm/jre-14-openjdk/bin/java javac manual /usr/lib64/jvm/java-14-openjdk/bin/javac java_sdk_11 auto /usr/lib64/jvm/java-11-openjdk java_sdk_14 auto /usr/lib64/jvm/java-14-openjdk java_sdk_openjdk manual /usr/lib64/jvm/java-14-openjdk jaxp_transform_impl auto /usr/share/java/xalan-j2.jar jre_11 auto /usr/lib64/jvm/jre-11-openjdk jre_14 auto /usr/lib64/jvm/jre-14-openjdk jre_openjdk manual /usr/lib64/jvm/jre-14-openjdk servlet auto /usr/share/java/servletapi5-5.0.18.jar
anyone on this?
although the _why_ of it is unclear to me, the following works to *fix* the problem. the _first_ step is critical ... clearing out existing (broken? corrupt?) alternatives fron /var/lib/alternatives rm -f /var/lib/alternatives/{java,jre}* rpm -e --nodeps --noscripts \ java-11-openjdk \ java-11-openjdk-devel \ java-11-openjdk-headless \ java-1.8.0-openjdk \ java-1.8.0-openjdk-devel \ java-1.8.0-openjdk-headless \ java-latest-openjdk \ java-latest-openjdk-devel \ java-latest-openjdk-headless dnf -y install \ java-11-openjdk \ java-11-openjdk-devel \ java-11-openjdk-headless \ java-1.8.0-openjdk \ java-1.8.0-openjdk-devel \ java-1.8.0-openjdk-headless \ java-latest-openjdk \ java-latest-openjdk-devel \ java-latest-openjdk-headless dnf -y reinstall \ copy-jdk-configs.noarch \ javapackages-filesystem.noarch \ javapackages-tools.noarch \ tzdata-java.noarch ls -al /usr/lib/jvm total 20K drwxr-xr-x 5 root root 4.0K Sep 10 15:00 ./ dr-xr-xr-x. 41 root root 4.0K Sep 2 12:29 ../ lrwxrwxrwx 1 root root 26 Sep 10 15:00 java -> /etc/alternatives/java_sdk/ lrwxrwxrwx 1 root root 29 Sep 10 15:00 java-11 -> /etc/alternatives/java_sdk_11/ lrwxrwxrwx 1 root root 37 Sep 10 15:00 java-11-openjdk -> /etc/alternatives/java_sdk_11_openjdk/ drwxr-xr-x 7 root root 4.0K Sep 10 15:00 java-11-openjdk-11.0.8.10-2.fc32.x86_64/ lrwxrwxrwx 1 root root 29 Sep 10 15:00 java-14 -> /etc/alternatives/java_sdk_14/ lrwxrwxrwx 1 root root 37 Sep 10 15:00 java-14-openjdk -> /etc/alternatives/java_sdk_14_openjdk/ drwxr-xr-x 7 root root 4.0K Sep 10 15:00 java-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64/ lrwxrwxrwx 1 root root 32 Sep 10 15:00 java-1.8.0 -> /etc/alternatives/java_sdk_1.8.0/ lrwxrwxrwx 1 root root 40 Sep 10 15:00 java-1.8.0-openjdk -> /etc/alternatives/java_sdk_1.8.0_openjdk/ drwxr-xr-x 7 root root 4.0K Sep 10 15:00 java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/ lrwxrwxrwx 1 root root 34 Sep 10 15:00 java-openjdk -> /etc/alternatives/java_sdk_openjdk/ lrwxrwxrwx 1 root root 21 Sep 10 15:00 jre -> /etc/alternatives/jre/ lrwxrwxrwx 1 root root 24 Sep 10 15:00 jre-11 -> /etc/alternatives/jre_11/ lrwxrwxrwx 1 root root 32 Sep 10 15:00 jre-11-openjdk -> /etc/alternatives/jre_11_openjdk/ lrwxrwxrwx 1 root root 39 Jul 18 10:41 jre-11-openjdk-11.0.8.10-2.fc32.x86_64 -> java-11-openjdk-11.0.8.10-2.fc32.x86_64/ lrwxrwxrwx 1 root root 24 Sep 10 15:00 jre-14 -> /etc/alternatives/jre_14/ lrwxrwxrwx 1 root root 32 Sep 10 15:00 jre-14-openjdk -> /etc/alternatives/jre_14_openjdk/ lrwxrwxrwx 1 root root 47 Jul 23 04:48 jre-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64 -> java-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64/ lrwxrwxrwx 1 root root 27 Sep 10 15:00 jre-1.8.0 -> /etc/alternatives/jre_1.8.0/ lrwxrwxrwx 1 root root 35 Sep 10 15:00 jre-1.8.0-openjdk -> /etc/alternatives/jre_1.8.0_openjdk/ lrwxrwxrwx 1 root root 50 Jul 27 20:02 jre-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64 -> java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/jre/ lrwxrwxrwx 1 root root 29 Sep 10 15:00 jre-openjdk -> /etc/alternatives/jre_openjdk/ alternatives --list | egrep "java|jre|jdk" java_sdk_1.8.0 auto /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64 java_sdk_1.8.0_openjdk auto /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64 javac auto /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/bin/javac java_sdk_14_openjdk auto /usr/lib/jvm/java-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64 jre_openjdk auto /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/jre jre_14 auto /usr/lib/jvm/java-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64 java_sdk_11_openjdk auto /usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64 java_sdk_11 auto /usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64 jre_1.8.0 auto /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/jre jre_11_openjdk auto /usr/lib/jvm/jre-11-openjdk-11.0.8.10-2.fc32.x86_64 java_sdk_openjdk auto /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64 jre_1.8.0_openjdk auto /usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64 java auto /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.265.b01-1.fc32.x86_64/jre/bin/java java_sdk_14 auto /usr/lib/jvm/java-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64 jre_14_openjdk auto /usr/lib/jvm/jre-14-openjdk-14.0.2.12-1.rolling.fc32.x86_64 jre_11 auto /usr/lib/jvm/java-11-openjdk-11.0.8.10-2.fc32.x86_64 perhaps the spec can/should be modded to clear/re-create in that location on pkg *reinstall* with dnf?
Hi, sorry for the long wait, I was not available for the last few weeks. I am missing steps to reproduce. Did you install or reinstall these packages? Can you please add these? The bug might be related to this: https://bugzilla.redhat.com/show_bug.cgi?id=1200302 Thank you!
both. same situation for install/reinstall. the procedure above 'fixed' the currrent situation.
Is this issue still valid? There was a lot of work on jdk latest recently, and many small nits (which if hitted together) could have huge impact. As for reinstall - it is still broken: https://bugzilla.redhat.com/show_bug.cgi?id=1200302 there is no good cure for that unless small fix is done in dnf/rpm.
This message is a reminder that Fedora 32 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 32 on 2021-05-25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '32'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 32 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
still an issue after f33 -> f34 upgrades; lots of immediate breakage for any/all applications depending on those symlinks. f33 ls -al /usr/lib/jvm/ total 16K drwxr-xr-x 4 root root 4.0K Apr 25 21:17 ./ dr-xr-xr-x. 40 root root 4.0K Apr 28 06:24 ../ lrwxrwxrwx 1 root root 26 Jan 17 06:44 java -> /etc/alternatives/java_sdk/ lrwxrwxrwx 1 root root 29 Jan 13 10:18 java-11 -> /etc/alternatives/java_sdk_11/ lrwxrwxrwx 1 root root 37 Jan 13 10:18 java-11-openjdk -> /etc/alternatives/java_sdk_11_openjdk/ drwxr-xr-x 7 root root 4.0K Apr 25 21:17 java-11-openjdk-11.0.11.0.9-0.fc33.x86_64/ lrwxrwxrwx 1 root root 29 Mar 25 07:35 java-16 -> /etc/alternatives/java_sdk_16/ lrwxrwxrwx 1 root root 37 Mar 25 07:35 java-16-openjdk -> /etc/alternatives/java_sdk_16_openjdk/ drwxr-xr-x 7 root root 4.0K Mar 25 07:35 java-16-openjdk-16.0.0.0.36-1.rolling.fc33.x86_64/ lrwxrwxrwx 1 root root 34 Jan 17 06:44 java-openjdk -> /etc/alternatives/java_sdk_openjdk/ lrwxrwxrwx 1 root root 21 Jan 17 06:44 jre -> /etc/alternatives/jre/ lrwxrwxrwx 1 root root 24 Jan 13 10:18 jre-11 -> /etc/alternatives/jre_11/ lrwxrwxrwx 1 root root 32 Jan 13 10:18 jre-11-openjdk -> /etc/alternatives/jre_11_openjdk/ lrwxrwxrwx 1 root root 41 Apr 21 22:48 jre-11-openjdk-11.0.11.0.9-0.fc33.x86_64 -> java-11-openjdk-11.0.11.0.9-0.fc33.x86_64/ lrwxrwxrwx 1 root root 24 Mar 25 07:35 jre-16 -> /etc/alternatives/jre_16/ lrwxrwxrwx 1 root root 32 Mar 25 07:35 jre-16-openjdk -> /etc/alternatives/jre_16_openjdk/ lrwxrwxrwx 1 root root 49 Mar 11 02:47 jre-16-openjdk-16.0.0.0.36-1.rolling.fc33.x86_64 -> java-16-openjdk-16.0.0.0.36-1.rolling.fc33.x86_64/ lrwxrwxrwx 1 root root 29 Jan 17 06:44 jre-openjdk -> /etc/alternatives/jre_openjdk/ f33 -> f34 ls -al /usr/lib/jvm/ total 16K drwxr-xr-x 4 root root 4.0K Apr 29 07:48 ./ dr-xr-xr-x. 57 root root 4.0K Apr 29 07:34 ../ drwxr-xr-x 7 root root 4.0K Apr 29 07:32 java-11-openjdk-11.0.11.0.9-0.fc34.x86_64/ drwxr-xr-x 7 root root 4.0K Apr 29 07:34 java-16-openjdk-16.0.0.0.36-1.rolling.fc34.x86_64/ lrwxrwxrwx 1 root root 41 Apr 21 22:41 jre-11-openjdk-11.0.11.0.9-0.fc34.x86_64 -> java-11-openjdk-11.0.11.0.9-0.fc34.x86_64/ lrwxrwxrwx 1 root root 49 Mar 11 03:25 jre-16-openjdk-16.0.0.0.36-1.rolling.fc34.x86_64 -> java-16-openjdk-16.0.0.0.36-1.rolling.fc34.x86_64/ manual fix, exactly as above, works, exactly as before, rpm -e --nodeps --noscripts \ java-11-openjdk \ java-11-openjdk-devel \ java-11-openjdk-headless \ java-latest-openjdk \ java-latest-openjdk-devel \ java-latest-openjdk-headless dnf -y install \ java-11-openjdk \ java-11-openjdk-devel \ java-11-openjdk-headless \ java-latest-openjdk \ java-latest-openjdk-devel \ java-latest-openjdk-headless dnf -y reinstall \ copy-jdk-configs.noarch \ javapackages-filesystem.noarch \ javapackages-tools.noarch \ tzdata-java.noarch ls -al /usr/lib/jvm drwxr-xr-x 4 root root 4.0K Jan 26 19:47 ./ dr-xr-xr-x. 57 root root 4.0K Apr 29 07:34 ../ lrwxrwxrwx 1 root root 26 Apr 29 13:55 java -> /etc/alternatives/java_sdk/ lrwxrwxrwx 1 root root 29 Apr 29 13:55 java-11 -> /etc/alternatives/java_sdk_11/ lrwxrwxrwx 1 root root 37 Apr 29 13:55 java-11-openjdk -> /etc/alternatives/java_sdk_11_openjdk/ drwxr-xr-x 7 root root 4.0K Apr 29 13:55 java-11-openjdk-11.0.11.0.9-0.fc34.x86_64/ lrwxrwxrwx 1 root root 29 Apr 29 13:55 java-16 -> /etc/alternatives/java_sdk_16/ lrwxrwxrwx 1 root root 37 Apr 29 13:55 java-16-openjdk -> /etc/alternatives/java_sdk_16_openjdk/ drwxr-xr-x 7 root root 4.0K Apr 29 13:55 java-16-openjdk-16.0.0.0.36-1.rolling.fc34.x86_64/ lrwxrwxrwx 1 root root 34 Apr 29 13:55 java-openjdk -> /etc/alternatives/java_sdk_openjdk/ lrwxrwxrwx 1 root root 21 Apr 29 13:54 jre -> /etc/alternatives/jre/ lrwxrwxrwx 1 root root 24 Apr 29 13:55 jre-11 -> /etc/alternatives/jre_11/ lrwxrwxrwx 1 root root 32 Apr 29 13:55 jre-11-openjdk -> /etc/alternatives/jre_11_openjdk/ lrwxrwxrwx 1 root root 41 Apr 21 22:41 jre-11-openjdk-11.0.11.0.9-0.fc34.x86_64 -> java-11-openjdk-11.0.11.0.9-0.fc34.x86_64/ lrwxrwxrwx 1 root root 24 Apr 29 13:54 jre-16 -> /etc/alternatives/jre_16/ lrwxrwxrwx 1 root root 32 Apr 29 13:54 jre-16-openjdk -> /etc/alternatives/jre_16_openjdk/ lrwxrwxrwx 1 root root 49 Mar 11 03:25 jre-16-openjdk-16.0.0.0.36-1.rolling.fc34.x86_64 -> java-16-openjdk-16.0.0.0.36-1.rolling.fc34.x86_64/ lrwxrwxrwx 1 root root 29 Apr 29 13:54 jre-openjdk -> /etc/alternatives/jre_openjdk/
Hello, as you seems to keep hitting that - so it is not https://bugzilla.redhat.com/show_bug.cgi?id=1200302 - how to trigger that? I have never ever been able to reproduce it.
here, triggering it has been simple ... starting with a running 'old' system releasever, with jdks installed, and symlinks & alternatives properly configured (as after my 'manual fix', above), simply run/complete a 'dnf system-upgrade' to a 'new' releasever. so, previously, f32->f33. now f33->f34. _all_ of the upgrades here had the same issue. symlinks gone after upgrade. To fix, I manually pushed an after-action script (again, as above) to all machines. I do _not_ yet know what's deleting those scripts i have a _suspicion_ it's an ordering problem jdk upgrades &/or 'alternatives' if that dir is getting incorrectly/inadvertently wiped clean, and whatever is correctly building those symlinks upgrades/installs too late ...
This message is a reminder that Fedora Linux 34 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '34'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 34 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07. Fedora Linux 34 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. Thank you for reporting this bug and we are sorry it could not be fixed.