Welcome.
Search “jre-openjdk and jre-openjdk-headless are in conflict” in this forum, various solutions exist.