这个问题与askubuntu.com 上已经存在的问题。
我使用以下方式安装了 Sun Javasudo apt-get install oracle-java9-installer
下载Java程序的tar.gz文件像下面的日志一样。
<trimmed>
Downloading Oracle Java 9...
--2015-06-11 02:48:37-- http://www.java.net/download/jdk9/archive/b66/binaries/jdk-9-ea-bin-b66-linux-x64-27_may_2015.tar.gz
Resolving www.java.net (www.java.net)... 209.189.227.38
Connecting to www.java.net (www.java.net)|209.189.227.38|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://www.java.net/download/jdk9/archive/b66/binaries/jdk-9-ea-bin-b66-linux-x64-27_may_2015.tar.gz [following]
--2015-06-11 02:48:39-- https://www.java.net/download/jdk9/archive/b66/binaries/jdk-9-ea-bin-b66-linux-x64-27_may_2015.tar.gz
<trimmed>
--2015-06-11 02:48:41-- http://download.java.net/jdk9/archive/b66/binaries/jdk-9-ea-bin-b66-linux-x64-27_may_2015.tar.gz?q=download/jdk9/archive/b66/binaries/jdk-9-ea-bin-b66-linux-x64-27_may_2015.tar.gz
Resolving download.java.net (download.java.net)... 137.254.120.26
Connecting to download.java.net (download.java.net)|137.254.120.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 117953013 (112M) [application/gzip]
Saving to: ‘jdk-9-ea-bin-b66-linux-x64-27_may_2015.tar.gz’
<trimmed>
2015-06-11 03:00:39 (161 KB/s) - ‘jdk-9-ea-bin-b66-linux-x64-27_may_2015.tar.gz’ saved [117953013/117953013]
Download done.
安装在我的计算机上按预期进行并成功完成。然而我想知道这个xx.tar.gz文件在当前电脑上的下载位置这样我就可以将其与下载的 *deb 文件一起复制到 apt-cache 中。这是为了在其他类似的计算机上复制 Java 安装,而不必每次都通过互联网访问下载站点来获取 112 M 文件。我查看了 和$HOME/Downloads
,但找不到此文件。/tmp
/var/cache/apt/archives
答案1
您的问题与 apt-get 完全无关。
Oracle-java9-installer 有一个安装脚本,可以从 Oracle 站点下载 Java 并进行安装。它特定于此包。
但你的答案是:tarball 位于/var/缓存/oracle-jdk9-安装程序/