I've been trying to install Java 15. I installed it a few weeks later on Elementary OS without issues. I switched to Ubuntu today and tried to install it again but this error is driving me mad:
download failed
Oracle JDK 15 is NOT installed.
dpkg: error processing package oracle-java15-installer (--configure):
installed oracle-java15-installer package post-installation script subprocess
returned error exit status 1
Errors were encountered while processing:
oracle-java15-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
I used the following commands:
sudo add-apt-repository ppa:linuxuprising/java
sudo apt update
sudo apt install oracle-java15-installer