Navigation

    ML
    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    Installing Java/JRE on Fedora 29 - Error Conflicting Requests

    IT Discussion
    fedora29 java 8 jre rpm wazuh
    6
    23
    2048
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • wrx7m
      wrx7m last edited by wrx7m

      I am trying to install JRE on Fedora 29 as part of a Wazuh server install. After I successfully download the latest jre installer with

      curl -Lo jre-8-linux-x64.rpm --header "Cookie: oraclelicense=accept-securebackup-cookie" "https://download.oracle.com/otn-pub/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jre-8u202-linux-x64.rpm"
      

      I run

      yum -y install jre-8-linux-x64.rpm
      

      and I get these errors

      Error:
       Problem: conflicting requests
        - nothing provides /bin/basename needed by jre1.8-1.8.0_202-fcs.x86_64
        - nothing provides /bin/cp needed by jre1.8-1.8.0_202-fcs.x86_64
        - nothing provides /bin/ls needed by jre1.8-1.8.0_202-fcs.x86_64
        - nothing provides /bin/mkdir needed by jre1.8-1.8.0_202-fcs.x86_64
        - nothing provides /bin/mv needed by jre1.8-1.8.0_202-fcs.x86_64
        - nothing provides /bin/pwd needed by jre1.8-1.8.0_202-fcs.x86_64
        - nothing provides /bin/sort needed by jre1.8-1.8.0_202-fcs.x86_64
      (try to add '--skip-broken' to skip uninstallable packages)
      

      I have seen some posts regarding Java not having updated the proper path, but I wouldn't know how to modify that. Anyone know how to get past this?

      dbeato 1 Reply Last reply Reply Quote 2
      • dbeato
        dbeato @wrx7m last edited by

        @wrx7m Found only this
        https://bugzilla.redhat.com/show_bug.cgi?id=1634200

        1 Reply Last reply Reply Quote 0
        • dbeato
          dbeato last edited by

          Also are you on the correct folder(where it was downloaded)? I assume so.

          1 Reply Last reply Reply Quote 0
          • dbeato
            dbeato last edited by

            And this
            https://github.com/fedy/fedy/issues/640

            1 Reply Last reply Reply Quote 0
            • wrx7m
              wrx7m last edited by wrx7m

              @dbeato Thanks. I did some research and found that elasticsearch needs at least java 8. JB suggested using dnf install java. It contained version 11 jdk. I have done that and am trying to complete the reset of the wazuh installation.

              travisdh1 dbeato 2 Replies Last reply Reply Quote 2
              • travisdh1
                travisdh1 @wrx7m last edited by

                @wrx7m said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                Thanks. I did some research and found that elasticsearch needs at least java 8. JB suggested using dnf install java. It contained version 11 jdk. I have done that and am trying to complete the reset of the wazuh installation.

                I've stuck with OpenJRE/OpenJDK when needed. Oracle never seems to get their installer right on linux.

                scottalanmiller wrx7m 2 Replies Last reply Reply Quote 1
                • dbeato
                  dbeato @wrx7m last edited by

                  @wrx7m said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                  @dbeato Thanks. I did some research and found that elasticsearch needs at least java 8. JB suggested using dnf install java. It contained version 11 jdk. I have done that and am trying to complete the reset of the wazuh installation.

                  Makes sense, latest version.

                  1 Reply Last reply Reply Quote 0
                  • scottalanmiller
                    scottalanmiller @travisdh1 last edited by

                    @travisdh1 said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                    @wrx7m said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                    Thanks. I did some research and found that elasticsearch needs at least java 8. JB suggested using dnf install java. It contained version 11 jdk. I have done that and am trying to complete the reset of the wazuh installation.

                    I've stuck with OpenJRE/OpenJDK when needed. Oracle never seems to get their installer right on linux.

                    that's what I generally do, too.

                    1 Reply Last reply Reply Quote 0
                    • wrx7m
                      wrx7m last edited by

                      Logstash doesn't like Java 11 :(

                        Running scriptlet: logstash-1:6.6.1-1.noarch                                                                                                                                                       1/1
                      Using provided startup.options file: /etc/logstash/startup.options
                      Unrecognized VM option 'UseParNewGC'
                      Error: Could not create the Java Virtual Machine.
                      Error: A fatal exception has occurred. Program will exit.
                      Unable to install system startup script for Logstash.
                      chmod: cannot access '/etc/default/logstash': No such file or directory
                      warning: %post(logstash-1:6.6.1-1.noarch) scriptlet failed, exit status 1
                      
                      Error in POSTIN scriptlet in rpm package logstash
                        Verifying        : logstash-1:6.6.1-1.noarch                                                                                                                                                       1/1
                      
                      Installed:
                        logstash-1:6.6.1-1.noarch
                      
                      
                      scottalanmiller 1 Reply Last reply Reply Quote 0
                      • wrx7m
                        wrx7m @travisdh1 last edited by

                        It looks like logstash is using an option that no longer exists in java, "UseParNewGC"
                        https://bugs.openjdk.java.net/browse/JDK-8151084

                        Argh.

                        1 Reply Last reply Reply Quote 1
                        • wrx7m
                          wrx7m last edited by wrx7m

                          OK. I found I could run

                          yum install java-1.8.0-openjdk
                          

                          to install version 8. After that, I was able to install logstash successfully.

                          scottalanmiller 1 Reply Last reply Reply Quote 1
                          • scottalanmiller
                            scottalanmiller @wrx7m last edited by

                            @wrx7m said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                            OK. I found I could run

                            yum install java-1.8.0-openjdk
                            

                            to install version 8. After that, I was able to install logstash successfully.

                            Is there a reason that you want an old version?

                            JaredBusch 1 Reply Last reply Reply Quote 0
                            • scottalanmiller
                              scottalanmiller @wrx7m last edited by

                              @wrx7m said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                              Logstash doesn't like Java 11 :(

                              NVM, just found this.

                              1 Reply Last reply Reply Quote 0
                              • JaredBusch
                                JaredBusch @scottalanmiller last edited by

                                @scottalanmiller said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                @wrx7m said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                OK. I found I could run

                                yum install java-1.8.0-openjdk
                                

                                to install version 8. After that, I was able to install logstash successfully.

                                Is there a reason that you want an old version?

                                Also wtf are you using yum for?

                                travisdh1 wrx7m 2 Replies Last reply Reply Quote 0
                                • travisdh1
                                  travisdh1 @JaredBusch last edited by

                                  @JaredBusch said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                  @scottalanmiller said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                  @wrx7m said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                  OK. I found I could run

                                  yum install java-1.8.0-openjdk
                                  

                                  to install version 8. After that, I was able to install logstash successfully.

                                  Is there a reason that you want an old version?

                                  Also wtf are you using yum for?

                                  I'd assume that is what Oracle says to use for Fedora.

                                  scottalanmiller 1 Reply Last reply Reply Quote 0
                                  • scottalanmiller
                                    scottalanmiller @travisdh1 last edited by

                                    @travisdh1 said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                    @JaredBusch said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                    @scottalanmiller said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                    @wrx7m said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                    OK. I found I could run

                                    yum install java-1.8.0-openjdk
                                    

                                    to install version 8. After that, I was able to install logstash successfully.

                                    Is there a reason that you want an old version?

                                    Also wtf are you using yum for?

                                    I'd assume that is what Oracle says to use for Fedora.

                                    That would just mean that Oracle's docs are out of date.

                                    travisdh1 1 Reply Last reply Reply Quote 0
                                    • travisdh1
                                      travisdh1 @scottalanmiller last edited by

                                      @scottalanmiller said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                      @travisdh1 said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                      @JaredBusch said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                      @scottalanmiller said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                      @wrx7m said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                      OK. I found I could run

                                      yum install java-1.8.0-openjdk
                                      

                                      to install version 8. After that, I was able to install logstash successfully.

                                      Is there a reason that you want an old version?

                                      Also wtf are you using yum for?

                                      I'd assume that is what Oracle says to use for Fedora.

                                      That would just mean that Oracle's docs are out of date.

                                      They always are.

                                      1 Reply Last reply Reply Quote 0
                                      • wrx7m
                                        wrx7m @JaredBusch last edited by

                                        @JaredBusch said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                        @scottalanmiller said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                        @wrx7m said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                        OK. I found I could run

                                        yum install java-1.8.0-openjdk
                                        

                                        to install version 8. After that, I was able to install logstash successfully.

                                        Is there a reason that you want an old version?

                                        Also wtf are you using yum for?

                                        It's wazuh's documentation. They have specific repos for other things too. Not sure why they are still using yum instead of dnf.

                                        JaredBusch 1 Reply Last reply Reply Quote 0
                                        • JaredBusch
                                          JaredBusch @wrx7m last edited by

                                          @wrx7m said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                          @JaredBusch said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                          @scottalanmiller said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                          @wrx7m said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                          OK. I found I could run

                                          yum install java-1.8.0-openjdk
                                          

                                          to install version 8. After that, I was able to install logstash successfully.

                                          Is there a reason that you want an old version?

                                          Also wtf are you using yum for?

                                          It's wazuh's documentation. They have specific repos for other things too. Not sure why they are still using yum instead of dnf.

                                          Pull your head out of your ass and don't blindly type what any guide says. Even one of mine.

                                          If you are using Fedora, you use dnf period. Yes, currently Fedora still has a reroute/alias for it to dnf, but you should not assume it will be there.

                                          8ab6bf8b-22c1-4b99-a848-c68040ee4a26-image.png

                                          black3dynamite wrx7m 2 Replies Last reply Reply Quote 2
                                          • black3dynamite
                                            black3dynamite @JaredBusch last edited by

                                            @JaredBusch said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:

                                            If you are using Fedora, you use dnf period. Yes, currently Fedora still has a reroute/alias for it to dnf, but you should not assume it will be there.

                                            Yep, yum will be retired when Fedora 31 or sooner. It was going to happen with Fedora 29 release.
                                            https://fedoraproject.org/wiki/Changes/Retire_YUM_3

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post