Hi,
I tried to update my system, and get the below error -
➜ ~ sudo pacman -Syyuu
[sudo] password for murtaza:
:: Synchronizing package databases…
endeavouros 26.7 KiB 15.2 KiB/s 00:02 [----------------------------------------------------------] 100%
core 132.8 KiB 50.4 KiB/s 00:03 [----------------------------------------------------------] 100%
extra 8.3 MiB 1641 KiB/s 00:05 [----------------------------------------------------------] 100%
multilib 141.2 KiB 52.3 KiB/s 00:03 [----------------------------------------------------------] 100%
:: 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
The above error started a couple of weeks back.
I only have one java environment installed -
➜ ~ archlinux-java status
Available Java environments:
java-21-openjdk (default)
➜ ~ java --version
openjdk 21 2023-09-19
OpenJDK Runtime Environment (build 21+35)
OpenJDK 64-Bit Server VM (build 21+35, mixed mode, sharing)
If I try to uninstall the jre I get the following error -
➜ ~ sudo pacman -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
:: removing jre-openjdk breaks dependency ‘java-runtime’ required by leiningen
How do I resolve the above conflict ?