JDK/JRE Problem... once more

Just to have this mentioned, I tried this:
https://archlinux.org/news/incoming-changes-in-jdk-jre-21-packages-may-require-manual-intervention/

And I tried to either remove the non-headless/headless JRE package…

Problem is, I cannot delete any…

[Rechenknecht hans]# LANG=C pacman -R jre-openjdk-headless
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing jre-openjdk-headless breaks dependency 'jre21-openjdk-headless=21.u35-3' required by jre-openjdk
[Rechenknecht hans]# LANG=C 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
[Rechenknecht hans]# LANG=C pacman -R jdk-openjdk
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing jdk-openjdk breaks dependency 'java-environment>=17' required by ghidra
[Rechenknecht hans]# 

Any suggestions?

Please see this post… :point_down:

pamac install jre-openjdk
1 Like

As I said, none of these works… I always get the “stuff-conflicts” messages.

deleting one of the packages doesn’t work as well.

Installing one of the new packages manually also gets me the “stuff-conflict” error.

Nope, does not work!

LANG=C pamac install jre-openjdk
Preparing...
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

So what is the output of

sudo pacman -Syu jdk-openjdk
LANG=C pacman -Syu jdk-openjdk
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
:: 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

just for the sake of completeness…

LANG=C pacman -Syu jre-openjdk
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
:: 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)
:: jre-openjdk and jdk-openjdk are in conflict
LANG=C pacman -Syu jre-openjdk-headless
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
:: 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)
:: jre-openjdk-headless and jdk-openjdk are in conflict

Okay, whatever, skip dependency checks it is:

sudo pacman -Rdd jre-openjdk jre-openjdk-headless && sudo pacman -Syu jdk-openjdk

We can check it didnt leave orphans too:

pacman -Qtd
2 Likes

Well, that’s exactly what I tried not to do :slight_smile:

Anyhow, that certainly works… thanks!

2 Likes

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