You are not logged in.

#1 2023-11-06 01:05:28

zerophase
Member
Registered: 2015-09-03
Posts: 229

[solved] Can't update when jdk-openjdk and jre-openjdk installed.

On my system Gradle requires jdk-openjdk, while libreoffice-extension-languagetool requires jre-openjdk. I even just updated libreoffice-extension-laguagetool, and still have the dependency issues. There are also some conflicts with some optional requires. How am I supposed to update to the latest version of jdk and jre?

Last edited by zerophase (2023-11-06 16:13:43)

Offline

#2 2023-11-06 02:08:41

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

Re: [solved] Can't update when jdk-openjdk and jre-openjdk installed.

The jre and jdk don't conflict, in fact the latter requires the former.  So what's the actual problem?  Post the actual errors.

Last edited by Trilby (2023-11-06 14:44:48)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2023-11-06 03:29:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,591

Re: [solved] Can't update when jdk-openjdk and jre-openjdk installed.

Trilby wrote:

The jre and jdk don't conflict, in fact the latter requires the former.  So what's the actual problem?  Post the actual errors.

That is no longer the case.

zerophase, libreoffice-extension-languagetool depends on java-runtime, which is provided by jdk-openjdk, it does not require jre-openjdk.

Offline

#4 2023-11-06 05:52:40

Awebb
Member
Registered: 2010-05-06
Posts: 6,298

Re: [solved] Can't update when jdk-openjdk and jre-openjdk installed.

Offline

#5 2023-11-06 11:30:07

zerophase
Member
Registered: 2015-09-03
Posts: 229

Re: [solved] Can't update when jdk-openjdk and jre-openjdk installed.

When I try 

 pacman -Syu jdk-openjdk

I get

 error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies) 
:: jdk-openjdk and jre-openjdk are in conflict

jre-openjdk on the system:

 Provides        : java-runtime=21  java-runtime-openjdk=21  jre21-openjdk=21.u35-3
Depends On      : jre21-openjdk-headless=21.u35-3  giflib  libgif.so  glibc  gcc-libs  libpng
Optional Deps   : alsa-lib: for basic sound support [installed]
                  gtk2: for the Gtk+ 2 look and feel - desktop usage [installed]
                  gtk3: for the Gtk+ 3 look and feel - desktop usage [installed]
Required By     : jdk-openjdk  libreoffice-extension-languagetool
Optional For    : clion  datagrip  libbluray  libjpeg-turbo  libjxl  libreoffice-fresh  opencv  webstorm

jdk-openjdk:

Provides        : java-environment=21  java-environment-openjdk=21  jdk21-openjdk=21.u35-3
Depends On      : jre21-openjdk=21.u35-3  java-environment-common=3  hicolor-icon-theme  libelf  glibc
                  gcc-libs
Optional Deps   : None
Required By     : gradle
Optional For    : astyle  libreoffice-fresh  subversion

jre-openjdk-headless:

Provides        : java-runtime-headless=21  java-runtime-headless-openjdk=21
                  jre21-openjdk-headless=21.u35-3
Depends On      : java-runtime-common>=3  ca-certificates-utils  nss  libjpeg-turbo  libjpeg.so=8-64
                  lcms2  liblcms2.so=2-64  libnet  freetype2  libfreetype.so=6-64  harfbuzz
                  libharfbuzz.so=0-64  glibc  gcc-libs
Optional Deps   : java-rhino: for some JavaScript support
Required By     : jre-openjdk  serviio

Offline

#6 2023-11-06 11:46:09

loqs
Member
Registered: 2014-03-06
Posts: 17,416

Re: [solved] Can't update when jdk-openjdk and jre-openjdk installed.

Install the updated jdk-openjdk first which will remove/provide jre-openjdk and jre-openjdk-headless  then perform a full system update.

Offline

#7 2023-11-06 11:47:56

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,892
Website

Re: [solved] Can't update when jdk-openjdk and jre-openjdk installed.

Try removing serviio, then updating.

Mod note: Moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2023-11-06 11:49:45

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,952

Re: [solved] Can't update when jdk-openjdk and jre-openjdk installed.

# pacman -S jdk-openjdk
# pacman -Syu

The first command should ask you to remove jre-openjdk-headless & jre-openjdk .

Note that this only works because the earlier pacman -Syu was effectively a pacman -Sy due to the u part failing.


edit :
too slow.
I disagree with Wormzy , this is NOT an aur issue.

Last edited by Lone_Wolf (2023-11-06 11:50:50)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#9 2023-11-06 16:10:53

zerophase
Member
Registered: 2015-09-03
Posts: 229

Re: [solved] Can't update when jdk-openjdk and jre-openjdk installed.

Lone_Wolf wrote:
# pacman -S jdk-openjdk
# pacman -Syu

The first command should ask you to remove jre-openjdk-headless & jre-openjdk .

Note that this only works because the earlier pacman -Syu was effectively a pacman -Sy due to the u part failing.

That worked. Thanks

Offline

#10 2024-04-11 02:13:14

zerophase
Member
Registered: 2015-09-03
Posts: 229

Re: [solved] Can't update when jdk-openjdk and jre-openjdk installed.

Same issue happens with upgrading the other versions of JDK. I do not believe this is solely an AUR issue.

Offline

Board footer

Powered by FluxBB