无法在RHEL 7.4中通过yum安装OpenJDK 1.8.0_45

时间:2018-01-23 16:24:11

标签: yum openjdk rhel7

我正在尝试通过yum在我的RHEL 7.4 VM中安装OpenJDK 1.8.0_45。目前安装了OpenJDK 1.7。  这是RHEL发布版本的输出  rpm -qa |grep release
redhat-release-server-7.4-18.el7.x86_64
我想要的是

openjdk version "1.8.0_45"`  
OpenJDK Runtime Environment (build 1.8.0_45-b13)  
OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode).

当我尝试yum install java-1.8.0-openjdk时,这是我收到的错误消息:

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager  
This system is not registered with an entitlement server. You can use subscription-manager to register.  
Bad id for repo: root@iotaasmon1 yum.repos.d, byte = @ 4  
Repository epel is listed more than once in the configuration  
Repository epel-debuginfo is listed more than once in the configuration  
Repository epel-source is listed more than once in the configuration  
No package java-1.8.0-openjdk available.  
Error: Nothing to do
当我执行OpenJDK 1.8时,

yum search也没有显示。

$ yum search openjdk  
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager  
This system is not registered with an entitlement server. You can use subscription-manager to register.  
Bad id for repo: root@iotaasmon1 yum.repos.d, byte = @ 4  
Repository epel is listed more than once in the configuration  
Repository epel-debuginfo is listed more than once in the configuration  
Repository epel-source is listed more than once in the configuration  
======================================================================================= N/S matched: openjdk ========================================================================================  
java-1.7.0-openjdk.x86_64 : OpenJDK Runtime Environment  
java-1.7.0-openjdk-headless.x86_64 : The OpenJDK runtime environment without audio and video support  
openprops.noarch : An improved java.util.Properties from OpenJDK  
rh-thermostat16-thermostat.x86_64 : A monitoring and serviceability tool for OpenJDK  
thermostat1-thermostat.x86_64 : A monitoring and serviceability tool for OpenJDK  

  Name and summary matches only, use "search all" for everything.  

有人可以告诉我如何安装或升级到OpenJDK 1.8 如果需要更多信息,请告诉我。

0 个答案:

没有答案