You are not logged in.

#1 2024-06-10 19:01:15

Gotit
Member
From: New England, USA
Registered: 2017-04-27
Posts: 73

[Solved] Cannot change to jdk due to jre dependency

Hi – have a bit of a problem installing jdk-openjdk22, as jre-openjdk22 has a dependency with Moneydance.

Failed to prepare transaction:
could not satisfy dependencies:
- removing jre-openjdk breaks dependency 'jre-openjdk' required by moneydance

I set java default to an older version of java thinking that would remove the dependency on jre-openjdk22, but no luck, still the same error.

$ archlinux-java status
Available Java environments:
  java-11-openjdk
  java-17-openjdk (default)
  java-22-openjdk

Is the only way I can install jdk-openjdk22 by removing Moneydance first, then re-installing after the installing jdk-openjdk22?

Last edited by Gotit (2024-08-04 20:09:04)

Offline

#2 2024-06-10 19:12:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [Solved] Cannot change to jdk due to jre dependency

Changing the system java interpreter is irrelevant - that has no effect on package dependencies.

But moneydance just depends on any java-runtime.  So you can install any package that provides that and you'll be fine.  If that package conflicts with another, then pacman will remove the other package in the same transaction (so dependency issues will not matter).

But you left out the actual command and other context of the error message so we can't say exactly why you got that error.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2024-07-14 21:25:15

Gotit
Member
From: New England, USA
Registered: 2017-04-27
Posts: 73

Re: [Solved] Cannot change to jdk due to jre dependency

Sorry for the delayed response.

Here's the full install attempt:

$ pacman -S jdk-openjdk
resolving dependencies...
looking for conflicting packages...
:: jdk-openjdk-22.0.1.u8-1 and jre-openjdk-22.0.1.u8-1 are in conflict. Remove jre-openjdk? [y/N] 
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: jdk-openjdk-22.0.1.u8-1 and jre-openjdk-22.0.1.u8-1 are in conflict

Does that help?

Offline

#4 2024-07-14 21:45:49

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,131

Re: [Solved] Cannot change to jdk due to jre dependency

Update moneydance. You're 7+ months behind.

Offline

#5 2024-07-14 22:08:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [Solved] Cannot change to jdk due to jre dependency

Gotit wrote:

Does that help?

Not really as there's nothing in that output about moneydance.  But I gather Scimmia is right - quite a while ago Moneydance depended directly on jre-openjdk which it should not have.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2024-08-04 20:08:31

Gotit
Member
From: New England, USA
Registered: 2017-04-27
Posts: 73

Re: [Solved] Cannot change to jdk due to jre dependency

@Scimmia - U nailed it.  After upgrading Moneydance to the current version (and incurring a license upgrade fee...) the dependency was gone, and I could switch to jdk.  Thanks!!!

Offline

Board footer

Powered by FluxBB