您好我需要在mu RHEL 5中安装最新版本的java我从我的操作系统中成功卸载它但是当我再次尝试安装它时我收到错误我正在粘贴我做错误的整个事情
[root@localhost bin]# rpm -qa | grep jdk
jdk-1.5.0_14-fcs
[root@localhost bin]# rpm -e jdk-1.5.0_14-fcs
[root@localhost bin]# rpm -qa | grep jdk
[root@localhost bin]# yum install java
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating Red Hat repositories.
There was an error communicating with RHN.
RHN Satellite or RHN Classic support will be disabled.
Error Message:
Service not enabled for system profile: "192.168.1.105"
Error Class Code: 31
Error Class Info:
This system does not have a valid entitlement for Red Hat Network.
Please visit https://rhn.redhat.com/rhn/systems/SystemEntitlements.do
or login at https://rhn.redhat.com, and from the "Your RHN" tab,
select "Subscription Management" to enable RHN service for this system.
Explanation:
Your organization does not have enough Management entitlements to register this
system to Red Hat Network. Please notify your organization administrator of this error.
You should be able to register this system after your organization frees existing
or purchases additional entitlements. Additional entitlements may be purchased by your
organization administrator by logging into Red Hat Network and visiting
the 'Subscription Management' page in the 'Your RHN' section of RHN.
A common cause of this error code is due to having mistakenly setup an
Activation Key which is set as the universal default. If an activation key is set
on the account as a universal default, you can disable this key and retry to avoid
requiring a Management entitlement.
file://var/cache/yum/rhel-i386-server-5/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/cache/yum/rhel-i386-server-5/repodata/repomd.xml'
Trying other mirror.
file://var/cache/yum/rhel-i386-server-vt-5/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/cache/yum/rhel-i386-server-vt-5/repodata/repomd.xml'
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package java-1.6.0-openjdk.i386 1:1.6.0.0-1.23.1.9.10.el5_7 set to be updated
--> Processing Dependency: tzdata-java for package: java-1.6.0-openjdk
--> Running transaction check
---> Package tzdata-java.i386 0:2011l-4.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
java-1.6.0-openjdk i386 1:1.6.0.0-1.23.1.9.10.el5_7 rhel-i386-server-5 38 M
Installing for dependencies:
tzdata-java i386 2011l-4.el5 rhel-i386-server-5 180 k
Transaction Summary
================================================================================
Install 2 Package(s)
Upgrade 0 Package(s)
Total download size: 38 M
Is this ok [y/N]: y
Downloading Packages:
Error Downloading Packages:
tzdata-java-2011l-4.el5.i386: failure: getPackage/tzdata-java-2011l-4.el5.i386.rpm from rhel-i386-server-5: [Errno 256] No more mirrors to try.
1:java-1.6.0-openjdk-1.6.0.0-1.23.1.9.10.el5_7.i386: failure: getPackage/java-1.6.0-openjdk-1.6.0.0-1.23.1.9.10.el5_7.i386.rpm from rhel-i386-server-5: [Errno 256] No more mirrors to try.
如何安装最新版本的java请帮帮我
先谢谢
答案 0 :(得分:0)
从以下链接下载最新的JDK rpm:
请参阅以下链接,了解JDK 1.7的安装说明,该说明目前是最新的: