ubuntu@ip-111-11-11-11:~$ sudo add-apt-repository ppa:linuxuprising/java
Oracle Java 11 (LTS) and 13 installer for Ubuntu, Linux Mint and Debian.
Java binaries are not hosted in this PPA due to licensing. The packages in this PPA download and install Oracle Java, so a working Internet connection is required.
The packages in this PPA are based on the WebUpd8 Oracle Java PPA packages: https://launchpad.net/~webupd8team/+archive/ubuntu/java
Created for users of https://www.linuxuprising.com/
Installation instructions (with some tips), feedback, suggestions, bug reports etc.:
Oracle Java 11: https://www.linuxuprising.com/2019/06/new-oracle-java-11-installer-for-ubuntu.html
Oracle Java 13: https://www.linuxuprising.com/2019/09/install-oracle-java-13-on-ubuntu-linux.html
Important notice regarding Oracle Java 11 and newer: the Oracle JDK license has changed starting April 16, 2019. The new license permits certain uses, such as personal use and development use, at no cost -- but other uses authorized under prior Oracle JDK licenses may no longer be available. A FAQ is available here: https://www.oracle.com/technetwork/java/javase/overview/oracle-jdk-faqs.html . After this change, new Oracle Java 11 releases (11.0.3 and newer) require signing in using an Oracle account to download the binaries. This PPA has a new installer that requires the user to download the Oracle JDK 11 .tar.gz and place it in a folder, and only then install the "oracle-java11-installer-local" package. Details here: https://www.linuxuprising.com/2019/06/new-oracle-java-11-installer-for-ubuntu.html
About Oracle Java 10 and 12: These versions have reached the end of public updates, therefore they are longer available for download. The Oracle Java 10/12 packages in this PPA no longer worked due to this, so I have removed them. Switch to Oracle Java 11 or OpenJDK 11 instead, which is long term support, or the latest Java 13.
More info: https://launchpad.net/~linuxuprising/+archive/ubuntu/java
Press [ENTER] to continue or Ctrl-c to cancel adding it.
Hit:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Hit:4 http://ppa.launchpad.net/cloud-images/docker-k8s1.9/ubuntu bionic InRelease
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:6 http://ppa.launchpad.net/cloud-images/eks-01.10.0/ubuntu bionic InRelease
Get:7 http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic InRelease [15.9 kB]
Hit:8 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu bionic InRelease
Get:9 http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic/main amd64 Packages [1840 B]
Get:10 http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic/main Translation-en [692 B]
Fetched 270 kB in 3s (78.3 kB/s)
Reading package lists... Done
ubuntu@ip-111-11-11-11:~$ sudo apt update
Hit:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:5 http://ppa.launchpad.net/cloud-images/docker-k8s1.9/ubuntu bionic InRelease
Hit:6 http://ppa.launchpad.net/cloud-images/eks-01.10.0/ubuntu bionic InRelease
Hit:7 http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic InRelease
Hit:8 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu bionic InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
58 packages can be upgraded. Run 'apt list --upgradable' to see them.
ubuntu@ip-111-11-11-11:~$ sudo apt install oracle-java11-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package oracle-java11-installer is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
oracle-java11-installer-local
E: Package 'oracle-java11-installer' has no installation candidate
oracle-java11-installer가 설치 불가능하고 oracle-java11-installer-local로 변경됐을거라고 한다.
ubuntu@ip-111-11-11-11:~$ sudo apt install oracle-java11-installer-local
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libllvm7 linux-aws-headers-4.15.0-1044 linux-aws-headers-4.15.0-1045 linux-aws-headers-4.15.0-1047 linux-aws-headers-4.15.0-1048 linux-aws-headers-4.15.0-1050 linux-aws-headers-4.15.0-1051 linux-aws-headers-4.15.0-1052
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
gsfonts gsfonts-x11 locales oracle-java11-set-default-local xfonts-encodings xfonts-utils
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 firefox | firefox-2 | iceweasel | mozilla-firefox | iceape-browser | mozilla-browser
| epiphany-gecko | epiphany-webkit | epiphany-browser | galeon | midbrowser | moblin-web-browser | xulrunner | xulrunner-1.9 | konqueror | chromium-browser | midori | google-chrome
The following NEW packages will be installed:
gsfonts gsfonts-x11 locales oracle-java11-installer-local oracle-java11-set-default-local xfonts-encodings xfonts-utils
0 upgraded, 7 newly installed, 0 to remove and 58 not upgraded.
Need to get 7442 kB of archives.
After this operation, 20.4 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic/main amd64 oracle-java11-installer-local amd64 11.0.5-1~linuxuprising0 [34.1 kB]
Get:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic/main amd64 locales all 2.27-3ubuntu1 [3612 kB]
Get:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic/main amd64 gsfonts all 1:8.11+urwcyr1.0.7~pre44-4.4 [3120 kB]
Get:4 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic/main amd64 xfonts-encodings all 1:1.0.4-2 [573 kB]
Get:5 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic/main amd64 xfonts-utils amd64 1:7.7+6 [91.5 kB]
Get:6 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic/universe amd64 gsfonts-x11 all 0.25 [7264 B]
Get:7 http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic/main amd64 oracle-java11-set-default-local amd64 11.0.5-1~linuxuprising0 [3504 B]
Fetched 7442 kB in 2s (4937 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package locales.
(Reading database ... 265265 files and directories currently installed.)
Preparing to unpack .../locales_2.27-3ubuntu1_all.deb ...
Unpacking locales (2.27-3ubuntu1) ...
Selecting previously unselected package oracle-java11-installer-local.
Preparing to unpack .../oracle-java11-installer-local_11.0.5-1~linuxuprising0_amd64.deb ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Configuring oracle-java11-installer-local
-----------------------------------------
Oracle Technology Network License Agreement for Oracle Java SE
You MUST agree to the license available in https://www.oracle.com/technetwork/java/javase/terms/license/javase-license.html if you want to install Oracle JDK.
Oracle is willing to authorize Your access to software associated with this License Agreement (“Agreement”) only upon the condition that You accept that this Agreement governs Your use of the software. By selecting the "Accept License Agreement" button or
box (or the equivalent) or installing or using the Programs, You indicate Your acceptance of this Agreement and Your agreement, as an authorized representative of Your company or organization (if being acquired for use by an entity) or as an individual, to
comply with the license terms that apply to the software that You wish to download and access. If You are not willing to be bound by this Agreement, do not select the “Accept License Agreement” button or box (or the equivalent) and do not download or access
the software.
Definitions "Oracle" refers to Oracle America, Inc.
"You" and "Your" refers to (a) a company or organization (“Entity”) accessing the Programs, if use of the Programs will be on behalf of such Entity; or (b) an individual accessing the Programs (“Individual”), if use of the Programs will not be on behalf
of an Entity.
“Contractors” refers to Your agents and contractors (including, without limitation, outsourcers).
“Development Use” refers to Your internal use of the Programs to develop, test, prototype and demonstrate Your Applications. For purposes of clarity, the “to develop” grant includes using the Programs to run profilers, debuggers and Integrated
Development Environments (IDE Tools) where the primary purpose of the IDE Tools is profiling, debugging and source code editing Applications.
"Program(s)" refers to Oracle software provided by Oracle pursuant to this Agreement and any updates, error corrections, and/or Program Documentation provided by Oracle.
“Program Documentation” refers to the Licensing Information User Manual for Oracle Java SE for the applicable version accessible at https://www.oracle.com/technetwork/java/javase/documentation/ and other documentation provided by Oracle with the Programs or
accessible at https://docs.oracle.com/en/java.
“Separate Terms” refers to separate license terms that are specified in the Program Documentation, readmes or notice files and that apply to Separately Licensed Third Party Technology.
“Separately Licensed Third Party Technology” refers to third party technology that is licensed under Separate Terms and not under the terms of this Agreement.
“Application” refers to applications intended to run on the Java Platform, Standard Edition.
“Personal Use” refers to an Individual's use of the Programs solely on a desktop or laptop computer under such Individual's control only to run Personal Applications.
“Personal Applications” refers to Applications designed for individual personal use only, such as games or personal productivity tools.
“Oracle Approved Product Use” refers to Your internal use of the Programs only to run: (a) the product(s) identified as Schedule A Products at https://java.com/oaa; and/or (b) software Applications developed using the products identified as Schedule B
Products at java.com/oaa by an Oracle authorized licensee of such Schedule B Products. If You are unsure whether the Application You intend to run using the Programs is developed using a Schedule B Product, please contact your Application provider.
“Oracle Cloud Infrastructure Use (“OCI Use”)” refers to Your use of the Programs on Oracle's Cloud Infrastructure with the Oracle Cloud Infrastructure products identified in the Oracle PaaS and IaaS Universal Credits Service Descriptions available at
http://oracle.com/contracts during the period in which You maintain a subscription for such Oracle Cloud Infrastructure products.
License Rights and Restrictions Oracle grants You a nonexclusive, nontransferable, limited license to use the Programs, subject to the restrictions stated in this Agreement and Program Documentation, only for: (i) Personal Use, (ii) Development Use, (iii)
Oracle Approved Product Use, and/or (iv) Oracle Cloud Infrastructure Use.
You may allow Your Contractor(s) to use the Programs, provided they are acting on Your behalf to exercise license rights granted in this Agreement and further provided that You are responsible for their compliance with this Agreement in such use. You will have a
written agreement with Your Contractor(s) that strictly limits their right to use the Programs and that otherwise protects Oracle's intellectual property rights to the same extent as this Agreement. You may make copies of the Programs to the extent reasonably
necessary to exercise the license rights granted in this Agreement.
You may not: remove or modify any Program markings or any notice of Oracle's or a licensor's proprietary rights; make the Programs available in any manner to any third party (other than Contractors acting on Your behalf as set forth in this Agreement); assign
[More]
Progress: [ 11%] [##########################.......................................................................................................................................................................................................................]
this Agreement or distribute, give, or transfer the Programs or an interest in them to any third party, except as expressly permitted in this Agreement for Contractors (the foregoing shall not be construed to limit the rights You may otherwise have with respect
to Separately Licensed Third Party Technology); cause or permit reverse engineering (unless required by law for interoperability), disassembly or decompilation of the Programs; and create, modify, or change the behavior of, classes, interfaces, or subpackages
that are in any way identified as "java", "javax", "sun", “oracle” or similar convention as specified by Oracle in any naming convention designation. The Programs may contain source code that, unless expressly licensed in this Agreement for other purposes
(for example, licensed under an open source license), is provided solely for reference purposes pursuant to the terms of this Agreement and may not be modified.
All rights not expressly granted in this Agreement are reserved by Oracle. If You want to use the Programs for any purpose other than as expressly permitted under this Agreement, You must obtain from Oracle or an Oracle reseller a valid Program license under a
separate agreement permitting such use.
Ownership Oracle or its licensors retain all ownership and intellectual property rights to the Programs.
Third-Party Technology The Programs may contain or require the use of third party technology that is provided with the Programs. Oracle may provide certain notices to You in Program Documentation, readmes or notice files in connection with such third party
technology. Third party technology will be licensed to You either under the terms of this Agreement or, if specified in the Program Documentation, readmes or notice files, under Separate Terms. Your rights to use Separately Licensed Third Party Technology under
Separate Terms are not restricted in any way by this Agreement. However, for clarity, notwithstanding the existence of a notice, third party technology that is not Separately Licensed Third Party Technology shall be deemed part of the Programs and is licensed to
You under the terms of this Agreement.
Source Code for Open Source Software For software that You receive from Oracle in binary form that is licensed under an open source license that gives You the right to receive the source code for that binary, You can obtain a copy of the applicable source code
from https://oss.oracle.com/sources/ or http://www.oracle.com/goto/opensourcecode. If the source code for such software was not provided to You with the binary, You can also receive a copy of the source code on physical media by submitting a written request
pursuant to the instructions in the "Written Offer for Source Code" section of the latter website.
Export Controls Export laws and regulations of the United States and any other relevant local export laws and regulations apply to the Programs. You agree that such export control laws govern Your use of the Programs (including technical data) and any services
deliverables provided under this agreement, and You agree to comply with all such export laws and regulations (including "deemed export" and "deemed re-export" regulations). You agree that no data, information, program and/or materials resulting from Programs or
services (or direct products thereof) will be exported, directly or indirectly, in violation of these laws, or will be used for any purpose prohibited by these laws including, without limitation, nuclear, chemical, or biological weapons proliferation, or
development of missile technology. Accordingly, You confirm: You will not download, provide, make available or otherwise export or re-export the Programs, directly or indirectly, to countries prohibited by applicable laws and regulations nor to citizens,
nationals or residents of those countries. You are not listed on the United States Department of Treasury lists of Specially Designated Nationals and Blocked Persons, Specially Designated Terrorists, and Specially Designated Narcotic Traffickers, nor are You
listed on the United States Department of Commerce Table of Denial Orders. You will not download or otherwise export or re-export the Programs, directly or indirectly, to persons on the above mentioned lists. You will not use the Programs for, and will not allow
the Programs to be used for, any purposes prohibited by applicable law, including, without limitation, for the development, design, manufacture or production of nuclear, chemical or biological weapons of mass destruction. Information Collection The Programs'
installation and/or update processes, if any, may transmit a limited amount of data to Oracle or its service provider about those processes to help Oracle understand and optimize them. Oracle does not associate the data with personally identifiable information.
Refer to Oracle's Privacy Policy at www.oracle.com/privacy.
Disclaimer of Warranties; Limitation of Liability THE PROGRAMS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ORACLE FURTHER DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, OR NONINFRINGEMENT.
IN NO EVENT WILL ORACLE BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, OR DAMAGES FOR LOSS OF PROFITS, REVENUE, DATA OR DATA USE, INCURRED BY YOU OR ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT, EVEN IF ORACLE
HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. ORACLE'S ENTIRE LIABILITY FOR DAMAGES UNDER THIS AGREEMENT SHALL IN NO EVENT EXCEED ONE THOUSAND DOLLARS (U.S. 1,000).
No Technical Support Oracle does not provide technical support, phone support, or updates under this Agreement.
Audit; Termination Oracle may audit an Entity's use of the Programs. You may terminate this Agreement by destroying all copies of the Programs. This Agreement shall automatically terminate without notice if You fail to comply with any of the terms of this
Agreement, in which case You shall promptly destroy all copies of the Programs.
Relationship Between the Parties Oracle is an independent contractor and we agree that no partnership, joint venture, or agency relationship exists between us. We each will be responsible for paying our own employees, including employment related taxes and
insurance. Nothing in this Agreement shall be construed to limit either party's right to independently develop or distribute software that is functionally similar to the other party's products, so long as proprietary information of the other party is not
included in such software.
Entire Agreement; Governing Law You agree that this Agreement is the complete agreement for the Programs and this Agreement supersedes all prior or contemporaneous agreements or representations, including any clickwrap, shrinkwrap or similar licenses, or license
agreements for prior versions of the Programs. This Agreement may not be modified and the rights and restrictions may not be altered or waived except in a writing signed by authorized representatives of You and of Oracle. If any term of this Agreement is found
to be invalid or unenforceable, the remaining provisions will remain effective.
This Agreement is governed by the substantive and procedural laws of the State of California, USA, and You and Oracle agree to submit to the exclusive jurisdiction of, and venue in, the courts of San Francisco or Santa Clara counties in California in any dispute
arising out of or relating to this Agreement.
Notices Should You have any questions concerning this Agreement, or if You desire to contact Oracle for any reason, please write:
[More]
Progress: [ 11%] [##########################.......................................................................................................................................................................................................................]
Oracle America, Inc. 500 Oracle Parkway Redwood City, CA 94065
Oracle Employees: Under no circumstances are Oracle employees authorized to download software for the purpose of distributing it to customers. Oracle products are available to Oracle employees for internal use or demonstration purposes only. In keeping with
Oracle's trade compliance obligations under U.S. and applicable multilateral law, an Oracle employee's failure to comply with this policy could result in disciplinary action up to and including termination.
Last updated: April 10, 2019
In order to install this package, you must accept the license terms, the "Oracle Technology Network License Agreement for Oracle Java SE". Not accepting will cancel the installation.
Do you accept the Oracle Technology Network License Agreement for Oracle Java SE terms? [yes/no]
Progress: [ 11%] [##########################.......................................................................................................................................................................................................................]
Do you accept the Oracle Technology Network License Agreement for Oracle Java SE terms? [yes/no] y
Unpacking oracle-java11-installer-local (11.0.5-1~linuxuprising0) ...
Setting up locales (2.27-3ubuntu1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Generating locales (this might take a while)...
Generation complete.
Setting up oracle-java11-installer-local (11.0.5-1~linuxuprising0) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Before installing this package,
please download the Oracle JDK 11 .tar.gz file
with the same version as this package (version 11.0.4),
and place it in /var/cache/oracle-jdk11-installer-local,
E.g.:
sudo mkdir -p /var/cache/oracle-jdk11-installer-local
sudo cp jdk-11.0.4_linux-x64_bin.tar.gz /var/cache/oracle-jdk11-installer-local/
sha256sum mismatch jdk-11.0.5_linux-x64_bin.tar.gz
Oracle JDK 11 is NOT installed.
dpkg: error processing package oracle-java11-installer-local (--configure):
installed oracle-java11-installer-local package post-installation script subprocess returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)