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.
Information such as the Linux distribution you are using would be helpful
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)
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
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
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?
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
Okay dnake