Failure to update due to dependencies conflict

{ 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 )

This is end of outcome of < sudo pacman -Syyu >

I attempted to follow the steps in this solution
https://forum.manjaro.org/t/jdk-openjdk-and-jre-openjdk-are-in-conflict/150867/12
but I ran into this problem

:: Starting full system upgrade…
:: Replace kdsoap with extra/kdsoap-qt5? [Y/n] Y
:: Replace kuserfeedback with extra/kuserfeedback5? [Y/n] Y
:: Replace libqaccessibilityclient with extra/libqaccessibilityclient-qt5? [Y/n] Y
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
   ~  sudo pacman -R jre-openjdk jdk-openjdk  1 ✘  1m 8s 
[sudo] password for oldgadfly:
checking dependencies…
error: failed to prepare transaction (could not satisfy dependencies)
:: removing jdk-openjdk breaks dependency ‘java-environment’ required by junit

I am not wise enough to know what to do next,
Your assistance will be gratefully appreciated

MCD

Does that mean

sudo pacman -Syu jdk-openjdk

Use this command to install jdk-openjdk

sudo pacman -Sy jdk-openjdk

and then this command to update other repository packages:

sudo pacman -Syu

Or use Manjaro package manager pamac:

pamac install jdk-openjdk --no-upgrade; pamac update --no-aur

Problem with jdk and jre conflicting - #2 by nikgnomic

@cscs
pacman -Syu jdk-openjdk suggested by Philm in Known issues & solutions is not working for many users

1 Like

Entirely depends on the package set.

https://archlinux.org/

Should be pretty accurate:

But that may change slightly if AUR packages are added to the mix, or if Manjaro maintainers missed a thing or two with branch snapping.

1 Like

One would think so, but a thread in the Archlinux forums suggests that pacman -Sy jdk-openjdk works more consistently.

Interestingly, the announcement sent to the arch-announce mailing list also suggests the same.

1 Like

Indeed

1 Like

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