Jdk-openjdk and jre-openjdk are in conflict

I got this error today

error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: jdk-openjdk and jre-openjdk are in conflict

AND

$ paru -R jre-openjdk
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing jre-openjdk breaks dependency 'jre21-openjdk=21.u35-3' required by jdk-openjdk
1 Like

See

https://archlinux.org/news/incoming-changes-in-jdk-jre-21-packages-may-require-manual-intervention/

1 Like

I got

$ sudo pacman -Syu jdk-openjdk
:: Synchronizing package databases...
 mesa-nonfree is up to date
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 repo-ck is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: jdk-openjdk and jre-openjdk are in conflict

If you can’t be bothered to watch the Unstable Updates threads, then you have no business using the unstable branch.

I have tried this, it didn’t solve anything, see Jdk-openjdk and jre-openjdk are in conflict - #3 by Lycan

You have tried what? No one knows what this is.

$ sudo pacman -Syu jdk-openjdk
:: Synchronizing package databases...
 mesa-nonfree is up to date
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 repo-ck is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: jdk-openjdk and jre-openjdk are in conflict

Even more

$ sudo pacman -R jre-openjdk jdk-openjdk
[sudo] password for alex: 
checking dependencies...
:: brltty optionally requires java-runtime: Java support
:: erlang-nox optionally requires java-environment: for Java support
:: libbluray optionally requires java-runtime: BD-J library
:: libjpeg-turbo optionally requires java-runtime>11: for TurboJPEG Java wrapper
:: libjxl optionally requires java-runtime: for JNI bindings
:: opencv optionally requires java-runtime: Java interface
:: subversion optionally requires java-environment: for Java support
:: texlive-latexextra optionally requires java-runtime: for pdfannotextractor

Packages (2) jdk-openjdk-21.u35-3  jre-openjdk-21.u35-3

Total Removed Size:  309.56 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
(1/2) removing jdk-openjdk                                               [########################################] 100%
(2/2) removing jre-openjdk                                               [########################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating icon theme caches...
(3/3) Updating the desktop file MIME type cache...
--------------------------------------------------------------------------------------------------------------- 19:36:37
[alex@alex-b450aoruselite ~]$ sudo pacman -Syu jdk-openjdk
:: Synchronizing package databases...
 mesa-nonfree is up to date
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 repo-ck is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: jdk-openjdk and jre-openjdk-headless are in conflict

OK, I needed to remove also jre-openjdk-headless

$ paru -R jre-openjdk-headless
checking dependencies...

Packages (1) jre-openjdk-headless-21.u35-3

Total Removed Size:  192.59 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
(1/1) removing jre-openjdk-headless                                      [########################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

Then installing jdk-openjdk works

3 Likes

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.

Well, yes. That’s what it says:

@Lycan I realize I may have come across a little impolitely if not rude. That was not my intention and I apologize.

I’ve reopened the thread and unmarked the solution so you can reply and mark your own solution.

5 Likes

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.