Ubuntu 17.10の新規インストールを行いました。現在、UbuntuにJava 9をインストールしようとしています。私は this askubuntuの答えに従い、Sudo apt-get install Oracle-Java9-installer
を実行すると、これが得られます
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gsfonts-x11 Oracle-Java9-set-default
Suggested packages:
binfmt-support visualvm ttf-baekmuk | ttf-unfonts | ttf-unfonts-core
ttf-kochi-gothic | ttf-sazanami-gothic ttf-kochi-mincho
| ttf-sazanami-mincho ttf-arphic-uming
The following NEW packages will be installed:
gsfonts-x11 Oracle-Java9-installer Oracle-Java9-set-default
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
Need to get 35.2 kB/42.5 kB of archives.
After this operation, 231 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ppa.launchpad.net/webupd8team/Java/ubuntu artful/main AMD64 Oracle-Java9-installer AMD64 9.0.1-1~webupd8~0 [30.8 kB]
Get:2 http://ppa.launchpad.net/webupd8team/Java/ubuntu artful/main AMD64 Oracle-Java9-set-default AMD64 9.0.1-1~webupd8~0 [4,442 B]
Fetched 35.2 kB in 2s (13.2 kB/s)
Preconfiguring packages ...
Selecting previously unselected package Oracle-Java9-installer.
(Reading database ... 256251 files and directories currently installed.)
Preparing to unpack .../Oracle-Java9-installer_9.0.1-1~webupd8~0_AMD64.deb ...
Oracle-license-v1-1 license has already been accepted
Unpacking Oracle-Java9-installer (9.0.1-1~webupd8~0) ...
Setting up Oracle-Java9-installer (9.0.1-1~webupd8~0) ...
No /var/cache/Oracle-jdk9-installer/wgetrc file found.
Creating /var/cache/Oracle-jdk9-installer/wgetrc and
using default Oracle-Java9-installer wgetrc settings for it.
Downloading Oracle Java 9...
--2018-01-17 06:08:30-- http://download.Oracle.com/otn-pub/Java/jdk/9.0.1+11/jdk-9.0.1_linux-x64_bin.tar.gz
Resolving download.Oracle.com (download.Oracle.com)... 23.66.247.173
Connecting to download.Oracle.com (download.Oracle.com)|23.66.247.173|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.Oracle.com/otn-pub/Java/jdk/9.0.1+11/jdk-9.0.1_linux-x64_bin.tar.gz [following]
--2018-01-17 06:08:30-- https://edelivery.Oracle.com/otn-pub/Java/jdk/9.0.1+11/jdk-9.0.1_linux-x64_bin.tar.gz
Resolving edelivery.Oracle.com (edelivery.Oracle.com)... 118.214.58.117, 2402:d000:130:281::2d3e, 2402:d000:130:289::2d3e
Connecting to edelivery.Oracle.com (edelivery.Oracle.com)|118.214.58.117|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.Oracle.com/otn-pub/Java/jdk/9.0.1+11/jdk-9.0.1_linux-x64_bin.tar.gz?AuthParam=1516149631_fbfbf47dc4fd2a5e471045e2cd2db76f [following]
--2018-01-17 06:08:33-- http://download.Oracle.com/otn-pub/Java/jdk/9.0.1+11/jdk-9.0.1_linux-x64_bin.tar.gz?AuthParam=1516149631_fbfbf47dc4fd2a5e471045e2cd2db76f
Connecting to download.Oracle.com (download.Oracle.com)|23.66.247.173|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-01-17 06:08:34 ERROR 404: Not Found.
download failed
Oracle JDK 9 is NOT installed.
dpkg: error processing package Oracle-Java9-installer (--configure):
subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
ダウンロードが失敗し、Oracle JDK 9がインストールされない理由。どうすれば修正できますか?
Oracleの公式Webサイトから手動でOracle Java 9をダウンロードしようとしました: http://www.Oracle.com/technetwork/Java/javase/downloads/jdk9-downloads-3848520.html およびjdk-9.0.4_linux-x64_bin.tar.gzをダウンロードするリンクが機能しています。他の選択肢は、デフォルトのUbuntu 17.10リポジトリからopenjdk-9-jdkをインストールすることです。
Java 9をReact JavaScriptライブラリで適切に動作させるのに問題がある場合は、複数のバージョンのJavaを一緒にインストールできるため、giveめないでください。 デフォルトのJavaバージョンを設定する方法? の指示に従って、ターミナルからJavaバージョンを設定します。