Solution
Update package sources, add eclipse adoptium.
- wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo apt-key add -
- echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
- sudo apt update
- sudo apt install temurin-21-jdk