[ https://issues.apache.org/jira/browse/CASSANDRA-18844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17765112#comment-17765112 ]
Stefan Miklosovic commented on CASSANDRA-18844: ----------------------------------------------- Well, this is even more interesting that I thought. There is no openjdk 11 on Bookworm. Only 17. So Cassandra 4 on Debian 12 (Bookworm) is not installable at all out of the box. You would need to enable sid repository with Java 11 available and install it first. To summarize what is there by default: Bookworm (Debian 12): openjdk-17-jre-headless default-jdk-headless -> installs openjdk-17-jre-headless Bullseye (Debian 11): openjdk-11-jre-headless openjdk-17-jre-headless default-jdk-headless -> installs openjdk-11-jre-headless Buster (Debian 10): openjdk-11-jre-headless default-jdk-headless -> installs openjdk-11-jre-headless build scripts for Debian packages in cassandra-builds repository are based on Bullseye but we have Java 8 available there just because we are enabling "sid" repository here Java 8 is available. However, when sid repository is enabled on Bullseye, before enablement, default-jdk-headless was installing Java 11, but after enablement of sid it installs Java 17. Same holds for Buster. java8-runtime,java11-runtime and java17-runtime are not installable. You can not "apt install java17-runtime". These are virtual packages. They are solely there for cases when some Java is installed (like your Corretto) and since Corretto provides java17-runtime, it would be just OK. But you need to care of this on your own. Now I want to go over each branch we have, this is quite complicated, maybe a matrix would be better ||x||Java 8||Java 11||Java 17|| |Bookworm (12)|n/a|n/a|openjdk-17-jre-headless| |Bullseye (11)|n/a|openjdk-11-jre-headless|openjdk-17-jre-headless| |Buster (10)|n/a|openjdk-11-jre-headless|n/a| Now Cassandra versions: ||x||Java 8||Java 11||Java 17|| |Cassandra 5+|no|yes|yes| |Cassandra 4|yes|yes|no| |Cassandra 3|yes|no|no| >From that we see that: Now Cassandra vs distribution ||x||Buster (10) ||Bullseye (11)||Bookworm (12)|| |Cassandra 5+|Java 11| Java 11/17|Java 17| |Cassandra 4|Java 11|Java 11|no| |Cassandra 3|no|no|no| Cassandra 3 can be run on any distro only with Sid repositories enabled. > Cassandra 5 Debian package only runs on OpenJDK > ----------------------------------------------- > > Key: CASSANDRA-18844 > URL: https://issues.apache.org/jira/browse/CASSANDRA-18844 > Project: Cassandra > Issue Type: Bug > Components: Packaging > Reporter: Jackson Fleming > Assignee: Jackson Fleming > Priority: Normal > Fix For: 5.x > > Attachments: image-2023-09-13-18-53-38-884.png, > image-2023-09-13-21-03-57-010.png, image-2023-09-13-21-04-42-525.png > > Time Spent: 20m > Remaining Estimate: 0h > > A recent change to the Cassandra 5 branch has caused the Cassandra deb > package to no longer install on systems that don't run OpenJDK > > The following line is too restrictive > [https://github.com/apache/cassandra/blob/trunk/debian/control#L14] > It should be modified to use the java11-runtime and java17-runtime virtual > packages. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org