Error Updating for about 2 weeks - JRE Conflict

Hi All -

Hitting the following error after running command sudo pacman -Syyu

:: Synchronizing package databases...
 core                                                                                                             146.8 KiB  83.6 KiB/s 00:02 [#######################################################################################] 100%
 extra                                                                                                              8.6 MiB  3.12 MiB/s 00:03 [#######################################################################################] 100%
 community                                                                                                         29.0   B  95.0   B/s 00:00 [#######################################################################################] 100%
 multilib                                                                                                         145.2 KiB   605 KiB/s 00:00 [#######################################################################################] 100%
:: Starting full system upgrade...
:: Replace kdsoap with extra/kdsoap-qt5? [Y/n] 
:: Replace kuserfeedback with extra/kuserfeedback5? [Y/n] 
:: Replace libqaccessibilityclient with extra/libqaccessibilityclient-qt5? [Y/n] 
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

Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

sudo pacman -Sy jdk-openjdk && sudo pacman -Syu

OR

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

or what I just did:
remove both of them
do the update
and then reinstall the one that you actually need

1 Like

Interestingly enough, neither one of these worked.

joel@joel-81sr:~$ sudo pacman -Sy jdk-openjdk && sudo pacman -Syu
[sudo] password for joel: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
resolving dependencies...
looking for conflicting packages...
:: jdk-openjdk and jre-openjdk are in conflict. Remove jre-openjdk? [y/N] 
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: jdk-openjdk and jre-openjdk are in conflict
joel@joel-81sr:~$ pamac install jdk-openjdk --no-upgrade; pamac update --no-aur
Preparing...
Resolving dependencies...
Checking inter-conflicts...

To upgrade (1):
  jdk-openjdk           21.u35-8  (21.u35-3)                     extra  479.7 MB
To remove (2):
  jre-openjdk           21.u35-3  (Conflicts With: jdk-openjdk)  extra
  jre-openjdk-headless  21.u35-3  (Conflicts With: jdk-openjdk)  extra

Total download size: 479.7 MB
Total installed size: 867.7 MB
Total removed size: 202.6 MB

Apply transaction ? [y/N] 

Transaction cancelled.
Preparing...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: Joel Madero (joel)
Password: 
==== AUTHENTICATION COMPLETE ====
Synchronizing package databases...
Resolving dependencies...
Checking inter-conflicts...
Error: unresolvable package conflicts detected
Error: Failed to prepare transaction:
conflicting dependencies:
- jdk-openjdk and jre-openjdk are in conflict

This did the trick. Just did

sudo pacman -Rcns [packageName]

for each package. Problem solved. Thanks

You pressed Enter instead of y, that’s why the transaction did not complete.

FYI, the capital letter is the default, so in this case you answered No.

pamac response shows it was not allowed to work

Apply transaction ? [y/N] 

Transaction cancelled.

As this has been a problem for 2 weeks, I suggest switching branches from unstable to stable to get better information from the update announcements to resolve known issues

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