I updated system using "apt update && apt upgrade", then issued command "apt install openjdk-17-jdk" and it returned an error:
Code: Select all
The following packages have unmet dependencies:
openjdk-17-jre-headless : Depends: ca-certificates-java (>= 20190405~) but it is not installable
E: Unable to correct problems, you have held broken packages.
Code: Select all
# apt-cache policy ca-certificates-java
ca-certificates-java:
Installed: (none)
Candidate: (none)
Version table:
20190909 -30000
500 http://ftp.pl.debian.org/debian bookworm/main amd64 Packages
500 http://ftp.pl.debian.org/debian bookworm/main i386 Packages
Code: Select all
# cat /etc/apt/sources.list
deb http://ftp.pl.debian.org/debian/ bookworm main contrib non-free
deb-src http://ftp.pl.debian.org/debian/ bookworm main contrib non-free
deb http://security.debian.org/ bookworm-security main contrib non-free
deb-src http://security.debian.org/ bookworm-security main contrib non-free
FIrst time I tried to install OpenJDK about a week or two ago, same error happened. I though this is temporarily broken package, but it looks persistent.
What can I do to install OpenJDK 17?