How can I update my Minecraft server to Java 11?

La
- in Servers
7

I already have several years of experience with minecraft servers but now the problem is updating the Java but the server always says in the console no matter what I enter "E: Unable do locate package openjdk-11-jre-headless" I have I've tried everything and can't get any further.

Ja

Information such as the Linux distribution you are using would be helpful

La

I use linux debian 9 and I'm with Host-Unlimited, it was already in the sup and they also said that I should do it manually (LXC)

Re

For this old Debian there's apparently no JDK 11 in the normal package sources. But you can also unpack it manually: https://adoptopenjdk.net/installation.html#x64_linux-jdk

Or look in the backports: https://backports.debian.org

Ja

Give it a try

echo 'deb http://ftp.debian.org/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/stretch-backports.list

sudo apt update

sudo apt install openjdk-11-jre

La

Unfortunately that didn't work with the commands because when I enter echo 'deb http://ftp.debian.org/debian stretch-backports main' the console crashes and I can no longer execute commands, for which versions are there updates?

Ja

That's weird, the backports are the easiest way… You can download and unzip the archive manually if nothing else helps. There are enough instructions for this

La

Okay dnake