本文介绍了apt-get安装oracle java 7停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 最近 apt-get install -y oracle-java7-installer 停止工作。我知道他们的路线图,我认为公共版本不再受支持,但直到最近才一直在运行。 http://www.oracle.com /technetwork/java/javase/downloads/jdk7-downloads-1880260.htmlI know in their roadmap, I think the public version is no longer supported, but it's been working all the way until recently.http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html任何人都可以解决这个问题吗?Anyone have a work around for this?http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1495560077_4041e14adcb5fd7e68827ab0e15dc3b1Connecting to download.oracle.com (download.oracle.com)|96.6.45.99|:80... connected.HTTP request sent, awaiting response... 404 Not Found2017-05-23 10:19:17 ERROR 404: Not Found.推荐答案看来Oracle已经移动了下载链接,你可以在跳过一些篮球后仍然从oracle网站上获取tar球。 WebUpd8安装程序目前已损坏。官方解释可在上找到。 http://www.webupd8.org/2017/06/why-oracle-java-7-and-6-installers-no.htmlIt appears Oracle has moved the download link, you can still fetch the tar ball from the oracle website after jumping through some hoops. The WebUpd8 installer is currently broken. The official explanation can be found at http://www.webupd8.org/2017/06/why-oracle-java-7-and-6-installers-no.html链接现在似乎是: http://download.oracle.com/otn/java/jdk /7u80-b15/jdk-7u80-linux-x64.tar.gz 注意otn而不是otn-pub,但至少从你似乎需要登录的网站上而且不仅接受许可协议。The link now seems to be: http://download.oracle.com/otn/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gznotice "otn" and not "otn-pub", but at least from the website you seem to need to be signed in and not only accept the license agreement.使用debconf可以将网址从otn-pub更改为otn并让安装程序正常工作,但我还没试过。您可以自己获取二进制文件,并手动安装或使用安装程序将其指向您放置下载的tar球的位置。It may be possible with debconf to change the url from otn-pub to otn and get the installer to work but I haven't tried. You can fetch the binary yourself and either install manually or with the installer pointing it to wherever you put the downloaded tar ball.编辑:似乎没有办法配置下载URL(虽然你可以像其他答案那样用主机劫持它)。 It seems there isn't a way to configure download URL (though you can hijack it with hosts as in another answer).如果要从脚本下载jdk-7u80-linux-x64.tar.gz没有登录到oracle它托管的位置包括:If you want to download jdk-7u80-linux-x64.tar.gz from a script without logging into to oracle it hosted locations include: http://ftp.osuosl.org/pub/funtoo/distfiles/oracle-java/ http://ftp.heanet.ie/mirrors/funtoo/distfiles/oracle-java /http://ftp.osuosl.org/pub/funtoo/distfiles/oracle-java/http://ftp.heanet.ie/mirrors/funtoo/distfiles/oracle-java/编辑:sha256已从此答案中删除,因为(如此编辑演示)任何人都可以编辑所述哈希。从受信任的来源获取哈希值。建议包括: The sha256 has been removed from this answer because (as this edit demonstrates) anyone can edit said hash. Get your hashes from a trusted source. Suggestions include: https://www.oracle.com/webfolder/s/digest/7u80checksum.htmlhttps://www.oracle.com/webfolder/s/digest/7u80checksum.html#put the file in the default cache location:sudo mv jdk-7u80-linux-x64.tar.gz /var/cache/oracle-jdk7-installer/#then install normally:sudo apt-get install oracle-java7-installer 安装方法2 :(更优雅的恕我直言)把tar球放到任何地方并告诉安装人员在哪里查看Install Method 2: (more elegant IMHO) put tar ball anywhere and tell the installer where to look#setup ppa (you probably came here after already doing this)sudo add-apt-repository ppa:webupd8team/javasudo apt-get update#put the file in a temporary location:sudo mv jdk-7u80-linux-x64.tar.gz /tmp/#set local path to /tmp (or any other path)echo oracle-java7-installer oracle-java7-installer/local select /tmp | \sudo /usr/bin/debconf-set-selections#While your at it you may want tp approve license (or skip this and approve when prompted)echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | \sudo /usr/bin/debconf-set-selections#then install normally:sudo apt-get install oracle-java7-installer 这篇关于apt-get安装oracle java 7停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-24 14:25