Installing Java/JRE on Fedora 29 - Error Conflicting Requests
-
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?
-
@wrx7m Found only this
https://bugzilla.redhat.com/show_bug.cgi?id=1634200 -
Also are you on the correct folder(where it was downloaded)? I assume so.
-
-
@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.
-
@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.
-
@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.
-
@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.
-
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
-
It looks like logstash is using an option that no longer exists in java, "UseParNewGC"
https://bugs.openjdk.java.net/browse/JDK-8151084Argh.
-
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.
-
@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?
-
@wrx7m said in Installing Java/JRE on Fedora 29 - Error Conflicting Requests:
Logstash doesn't like Java 11
NVM, just found this.
-
@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? -
@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.
-
@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.
-
@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.
-
@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.
-
@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 todnf
, but you should not assume it will be there. -
@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