开发者社区> 问答> 正文

新手记一次安装jdk报错“erroropenof”

davisz 2015-07-04 10:16:45 12457

一起自己电脑装的centos7也是因为这个原因导致不能安装sun jdk
原因是通过wget没能重定向下载到正式的文件 原来的命令如下
wget --no-cookie --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" ht tp://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.rpm
在搞了一晚上后偶然看到一个国外网站说下载的文件大小不对 一看还真是只有5307(5.2k)
后来开始找怎样才能通过wget下载的想要的文件
找到这个帖子htt p://www.wiloon.com/wordpress/?p=5805
看了这个ht tp://www.iteye.com/topic/1125585
最后这个命令解决wget --no-cookie --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" htt p://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.rpm?AuthParam=1435975281_b48160b32ebf93d8cbc9eaa84bf42f94








为了让别人通过错误搜到这个答案 我决定了 我要把错误全贴出来

[root@iZ280qkcdxoZ java]# rpm -ivh jdk-8u45-linux-x64.rpm
error: open of <html> failed: No such file or directory
error: open of <head> failed: No such file or directory
error: open of <title>Unauthorized failed: No such file or directory
error: open of Request</title> failed: No such file or directory
error: open of <META failed: No such file or directory
error: open of NAME=ROBOTS failed: No such file or directory
error: open of CONTENT=NOINDEX, NOFOLLOW> failed: No such file or directory
error: open of <link failed: No such file or directory
error: open of rel=stylesheet failed: No such file or directory
error: open of type=text/css failed: No such file or directory
error: open of href=/errors/us/assets/hp-styles.css failed: No such file or directory
error: open of /> failed: No such file or directory
error: open of <link failed: No such file or directory
error: open of rel=stylesheet failed: No such file or directory
error: open of type=text/css failed: No such file or directory
error: open of href=/errors/us/assets/master-master.css failed: No such file or directory
error: open of /> failed: No such file or directory
error: open of <body failed: No such file or directory
error: open of style=margin: 0px failed: No such file or directory
error: open of bgcolor= failed: No such file or directory
error: open of <div failed: No such file or directory
error: open of id=banner> failed: No such file or directory
error: open of <table failed: No such file or directory
error: open of width=100% failed: No such file or directory
error: open of border=0 failed: No such file or directory
error: open of cellspacing=0 failed: No such file or directory
error: open of cellpadding=0> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <td failed: No such file or directory
error: open of rowspan=2 failed: No such file or directory
error: open of valign=middle failed: No such file or directory
error: open of nowrap><a failed: No such file or directory
error: open of href=http://www.oracle.com><img failed: No such file or directory
error: open of src=/errors/us/assets/oralogo-small.gif failed: No such file or directory
error: open of width=154 failed: No such file or directory
error: open of height=19 failed: No such file or directory
error: open of hspace=10 failed: No such file or directory
error: open of vspace=25 failed: No such file or directory
error: open of border=0 failed: No such file or directory
error: open of ></a></td> failed: No such file or directory
error: open of <td failed: No such file or directory
error: open of align=right failed: No such file or directory
error: open of valign=top failed: No such file or directory
error: open of width=70% failed: No such file or directory
error: open of nowrap failed: No such file or directory
error: open of class=padMid><div failed: No such file or directory
error: open of id=bannerMid> failed: No such file or directory
error: open of </div></td> failed: No such file or directory
error: open of <td failed: No such file or directory
error: open of width=30% failed: No such file or directory
error: open of align=left failed: No such file or directory
error: open of valign=bottom failed: No such file or directory
error: open of nowrap></td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <td failed: No such file or directory
error: open of align=right failed: No such file or directory
error: open of valign=bottom failed: No such file or directory
error: open of nowrap failed: No such file or directory
error: open of class=padMid></td> failed: No such file or directory
error: open of <td failed: No such file or directory
error: open of width=30% failed: No such file or directory
error: open of align=left failed: No such file or directory
error: open of valign=bottom failed: No such file or directory
error: open of nowrap></td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of </table> failed: No such file or directory
error: open of </div> failed: No such file or directory
error: open of <!-- failed: No such file or directory
error: open of Header failed: No such file or directory
error: open of END failed: No such file or directory
error: open of //--> failed: No such file or directory
error: open of <table failed: No such file or directory
error: open of BORDER=0 failed: No such file or directory
error: open of CELLPADDING=0 failed: No such file or directory
error: open of CELLSPACING=0 failed: No such file or directory
error: open of WIDTH=100%> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <TD><IMG failed: No such file or directory
error: open of SRC=/errors/us/assets/spacer.gif failed: No such file or directory
error: open of BORDER=0 failed: No such file or directory
error: open of ALT=></TD> failed: No such file or directory
error: open of <td><table failed: No such file or directory
error: open of width=100% failed: No such file or directory
error: open of border=0 failed: No such file or directory
error: open of cellspacing=0 failed: No such file or directory
error: open of cellpadding=0> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <td><IMG failed: No such file or directory
error: open of SRC=/errors/us/assets/spacer.gif failed: No such file or directory
error: open of BORDER=0 failed: No such file or directory
error: open of ALT= failed: No such file or directory
error: open of height=15></td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <td><h1>Sorry!</h1></td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <td><IMG failed: No such file or directory
error: open of SRC=/errors/us/assets/spacer.gif failed: No such file or directory
error: open of BORDER=0 failed: No such file or directory
error: open of ALT= failed: No such file or directory
error: open of height=5></td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <td failed: No such file or directory
error: open of colspan=2>In failed: No such file or directory
error: open of order failed: No such file or directory
error: open of to failed: No such file or directory
error: open of download failed: No such file or directory
error: open of products failed: No such file or directory
error: open of from failed: No such file or directory
error: open of Oracle failed: No such file or directory
error: open of Technology failed: No such file or directory
error: open of Network failed: No such file or directory
error: open of you failed: No such file or directory
error: open of must failed: No such file or directory
error: open of agree failed: No such file or directory
error: open of to failed: No such file or directory
error: open of the failed: No such file or directory
error: open of OTN failed: No such file or directory
error: open of license failed: No such file or directory
error: open of terms.</td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <td><IMG failed: No such file or directory
error: open of SRC=/errors/us/assets/spacer.gif failed: No such file or directory
error: open of BORDER=0 failed: No such file or directory
error: open of ALT= failed: No such file or directory
error: open of height=5></td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <td><IMG failed: No such file or directory
error: open of SRC=/errors/us/assets/spacer.gif failed: No such file or directory
error: open of BORDER=0 failed: No such file or directory
error: open of ALT= failed: No such file or directory
error: open of height=5></td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <td failed: No such file or directory
error: open of colspan=2><strong>Be failed: No such file or directory
error: open of sure failed: No such file or directory
error: open of that...</strong></td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <td><img failed: No such file or directory
error: open of alt= failed: No such file or directory
error: open of src=/errors/us/assets/004894.gif failed: No such file or directory
error: open of height=7 failed: No such file or directory
error: open of vspace=3> failed: No such file or directory
error: open of Your failed: No such file or directory
error: open of browser failed: No such file or directory
error: open of has failed: No such file or directory
error: open of cookies failed: No such file or directory
error: open of and failed: No such file or directory
error: open of JavaScript failed: No such file or directory
error: open of enabled.</td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <td failed: No such file or directory
error: open of colspan=2><img failed: No such file or directory
error: open of alt= failed: No such file or directory
error: open of src=/errors/us/assets/004894.gif failed: No such file or directory
error: open of height=7 failed: No such file or directory
error: open of vspace=3> failed: No such file or directory
error: open of You failed: No such file or directory
error: open of clicked failed: No such file or directory
error: open of on failed: No such file or directory
error: open of Accept License failed: No such file or directory
error: open of for failed: No such file or directory
error: open of the failed: No such file or directory
error: open of product failed: No such file or directory
error: open of you failed: No such file or directory
error: open of wish failed: No such file or directory
error: open of to failed: No such file or directory
error: open of download.</td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <td failed: No such file or directory
error: open of colspan=2><img failed: No such file or directory
error: open of alt= failed: No such file or directory
error: open of src=/errors/us/assets/004894.gif failed: No such file or directory
error: open of height=7 failed: No such file or directory
error: open of vspace=3> failed: No such file or directory
error: open of You failed: No such file or directory
error: open of attempt failed: No such file or directory
error: open of the failed: No such file or directory
error: open of download failed: No such file or directory
error: open of within failed: No such file or directory
error: open of 30 failed: No such file or directory
error: open of minutes failed: No such file or directory
error: open of of failed: No such file or directory
error: open of accepting failed: No such file or directory
error: open of the failed: No such file or directory
error: open of license.</td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <td><IMG failed: No such file or directory
error: open of SRC=/errors/us/assets/spacer.gif failed: No such file or directory
error: open of BORDER=0 failed: No such file or directory
error: open of ALT= failed: No such file or directory
error: open of height=5></td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <td failed: No such file or directory
error: open of colspan=2><strong>From failed: No such file or directory
error: open of here failed: No such file or directory
error: open of you failed: No such file or directory
error: open of can failed: No such file or directory
error: open of go...</strong></td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <td><IMG failed: No such file or directory
error: open of SRC=/errors/us/assets/spacer.gif failed: No such file or directory
error: open of BORDER=0 failed: No such file or directory
error: open of ALT= failed: No such file or directory
error: open of height=5></td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of <tr> failed: No such file or directory
error: open of <td><IMG failed: No such file or directory
error: open of SRC=/errors/us/assets/spacer.gif failed: No such file or directory
error: open of BORDER=0 failed: No such file or directory
error: open of ALT= failed: No such file or directory
error: open of height=5></td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of </table> failed: No such file or directory
error: open of <table failed: No such file or directory
error: open of width=100% failed: No such file or directory
error: open of border=0 failed: No such file or directory
error: open of align=center failed: No such file or directory
error: open of cellpadding=2 failed: No such file or directory
error: open of cellspacing=2> failed: No such file or directory
error: open of <tr failed: No such file or directory
error: open of valign=middle> failed: No such file or directory
error: open of <td failed: No such file or directory
error: open of align=right failed: No such file or directory
error: open of valign=top failed: No such file or directory
error: open of width=2%><img failed: No such file or directory
error: open of src=/errors/us/assets/004894.gif failed: No such file or directory
error: open of height=7 failed: No such file or directory
error: open of vspace=3></td> failed: No such file or directory
error: open of <td><a failed: No such file or directory
error: open of href=javascript:history.back(-1)>Back failed: No such file or directory
error: open of to failed: No such file or directory
error: open of Previous failed: No such file or directory
error: open of Page</a></td> failed: No such file or directory
error: open of </tr> failed: No such file or directory
error: open of <tr failed: No such file or directory
error: open of valign=middle> failed: No such file or directory
error: open of <td failed: No such file or directory
error: open of align=right failed: No such file or directory
error: open of valign=top><img failed: No such file or directory
error: open of src=/errors/us/assets/004894.gif failed: No such file or directory
error: open of height=7 failed: No such file or directory
error: open of vspace=3></td> failed: No such file or directory
error: open of <td><a failed: No such file or directory
error: open of href=http://www.oracle.com/us/sitemaps/index.html </tr> <tr valign=middle> <td align=right valign=top><img src=/errors/us/assets/004894.gif height=7 vspace=3></td> <td><a href=http://www.oracle.com/technetwork/index.html>OTN Homepage</a></td> </tr> </table> <br> <div id=footer> <table width=100%  border=0 cellspacing=0 cellpadding=0> <tr> <td width=50% class=legalese align=right valign=top> </td> <td width=50% class=legalese align=left valign=top > </td> </tr> <tr> <td width=50% class=legalese align=left valign=top> </td> <td width=50% class=legalese align=right valign=top><a class=legalese href=http://www.oracle.com/rss/index.html target=_top>RSS <img src=/errors/us/assets/feed-icon-14x14.png width=14 height=14 border=0></A><span class=navlink> | </span> <a class=legalese href=http://www.oracle.com/html/copyright.html target=_top>Legal Notices and Terms for Use</a><span class=navlink> | </span> <a class=legalese href=http://www.oracle.com/html/privacy.html target=_top>Privacy Statement</a><br /> </td> </tr> <tr> <td width=50% class=legalese align=right valign=top> </td> <td width=50% class=legalese align=left valign=top ></td> </tr> </table> </div> </td> <TD WIDTH=10><IMG SRC=/errors/us/assets/spacer.gif BORDER=0 ALT= WIDTH=10></TD> </tr> </table> </body> </html> failed: No such file or directory

前端开发 JavaScript Oracle Java 关系型数据库 Linux
分享到
取消 提交回答
全部回答(5)
  • 在路上2046
    2018-11-26 16:57:49
    Re新手记一次安装jdk报错“erroropenof”
    谢谢楼主
    特意注册
    注好人一生没bug
    0 0
  • 白七
    2017-03-22 12:48:20
    Re新手记一次安装jdk报错“erroropenof”
    我i就是通过搜索找过来的 ,特意注册了账号 真的谢谢楼主
    0 0
  • 孤城
    2015-07-04 12:55:58
    没必要非用7吧,6.5也不错啊
    0 0
  • 买醉
    2015-07-04 12:55:28
    Re新手记一次安装jdk报错“erroropenof”
    楼主这样好麻烦

    最简单的办法是下载tar.gz 包直接用,比如jdk-8u45-linux-x64.tar.gz(centos 5 / 6 / 7 都可以装,fedora系列系统也可以这样装)
    http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz

    1.把jdk-8u45-linux-x64.tar.gz解压到/usr/local目录,形成/usr/local/jdk1.8.0_45

    2.在/etc/profile.d/目录下建立一个jdk1.8.sh文件,内容为以下内容:
    JAVA_HOME=/usr/local/jdk1.8.0_45/
    JAVA_BIN=/usr/local/jdk1.8.0_45/bin/
    JRE_HOME=/usr/local/jdk1.8.0_45/jre/
    JRE_BIN=/usr/local/jdk1.8.0_45/jre/bin/
    CLASSPATH=/usr/local/jdk1.8.0_45/jre/lib:/usr/local/jdk1.8.0_45/lib:/usr/local/jdk1.8.0_45/jre/lib/charsets.jar
    PATH=$PATH:$JAVA_BIN:$JRE_BIN
    export JAVA_HOME JAVA_BIN JRE_HOME JRE_BIN PATH CLASSPATH

    3.输入命令:
    chmod +x /etc/profile.d/jdk1.8.sh
    source /etc/profile.d/jdk1.8.sh
    /usr/sbin/setenforce 0

    搞定收工


    这样装的好处是以后升级直接删除/usr/local/下的jdk目录,把新版本重新解压到/usr/local/目录下,最后修改下/etc/profile.d/jdk1.8.sh文件里的路径就行了




    0 0
  • 李逵
    2015-07-04 10:40:59
    看到你这一路走的艰辛!这错误你应该折腾了一个通宵
    0 0
添加回答

集结各类场景实战经验,助你开发运维畅行无忧

推荐文章
相似问题