: Arjen beats me to it. Do as he says. But since I have some more detailed information, I'm still posting this.
hayden: I'm seeing "ppa" in your code. Do not try to use anything called "ppa" on a Debian system (except, maybe, if you exactly know what you are doing and are prepared to clean up the resulting mess on your own). PPA are for Ubuntu systems only.
hayden: What do you mean by FX? OpenJavaFX? It's in a separate package, install it with sudo apt install openjfx
hayden: You are getting a trace back from using the command "add-apt-repository". That command is obviously broken, it has nothing to do with Java. The command is part of software-properties-common and, as the error says, that packages doesn't seem to know anything about a lot of distributions. So, if you want to add a repository, do it manually: sudo nano /etc/apt/sources.list
or with the tee command as shown below.
@all: Now onto how to get Java 1.8 working on Debian 10. The better way would be to update the application to work with current java since version 8 is not supported upstream any more and has unfixed security issues (that's why it's not in buster). But I can understand if they are still working on updating ancestry. Although they should really update their installation howto since java8 is not provided by Oracle any more.
openjdk is in the debian stretch and sid repositories. You can install it from there. I think from stretch is the easier way because you don't risk upgrading the complete system.
You can either download the deb packages from here: https://packages.debian.org/stretch/amd ... s/download
and https://packages.debian.org/stretch/amd ... e/download
and then install them with gdebi (headless first). Then run update-alternatives as below.
Or use the stretch repositories:
Code: Select all
echo "deb http://ftp.be.debian.org/debian/ stretch main " | sudo tee -a /etc/apt/sources.list.d/stretch.list
echo "deb http://security.debian.org/ stretch/updates main" | sudo tee -a /etc/apt/sources.list.d/stretch.list
apt install -t stretch openjdk-8-jre
sudo update-alternatives --config java
I haven't tested this, so if you run into any problems, copy-save your terminal output and report back
Or use the adoptopenjdk repositories as explained here: https://adoptopenjdk.net/installation.html
(under "Linux RPM and DEB installer packages") - just remember to replace the sudo add-apt-repositorycommand with echo "deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb buster main" | sudo tee /etc/apt/sources.list.d/adoptopenjdk.list
Here is an explanation how to get it from sid if you prefer that: https://stackoverflow.com/questions/570 ... -10-buster
- the second answer hopefully stops you from upgrading your complete system to sid. Be careful.
Arjen, kurotsugi: Should we include the apt setting APT::Default-Release "stable";
by default? I don't think we have it.