ppa:linuxuprising/java && oracle-java11-installer
For anyone using the Linux Uprising Java 11 installer that stumble across this, see these:
- https://launchpad.net/~linuxuprising/+archive/ubuntu/java
- https://www.linuxuprising.com/2018/10/how-to-install-oracle-java-11-in-ubuntu.html
Instead of the commands in the answer (as listed on their site), you want this:
echo oracle-java11-installer shared/accepted-oracle-license-v1-2 select true | \
sudo /usr/bin/debconf-set-selections
Here's my Docker setup for an Ubuntu 18.04-based container:
RUN apt-get update && apt-install -y software-properties-common && \
add-apt-repository -y ppa:linuxuprising/java && \
apt-get update && \
echo oracle-java11-installer shared/accepted-oracle-license-v1-2 select true | sudo /usr/bin/debconf-set-selections && \
apt-get install -y oracle-java11-installer && \
apt install oracle-java11-set-default