Jre-openjdk and jre-openjdk-headless are in conflict

Hy,
Tried to install sass but i stumped dependencies problem. So i followed some guides and posts and removed jdk-openjdk and after that another dependencies problem jre-openjdk and jre-openjdk-headless are in conflict so tried to reinstall that but same error again and again
outputs:

    ~  pamac install dart-sass                                                                             ✔ 
Preparing...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: David (futui)
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
    ~                                                                                             1 ✘  8s  
    ~  sudo pacman -R jre-openjdk jdk-openjdk                                                          INT ✘ 
[sudo] password for futui: 
checking dependencies...
:: libbluray optionally requires java-runtime: BD-J library
:: libjpeg-turbo optionally requires java-runtime>11: for TurboJPEG Java wrapper
:: libjxl optionally requires java-runtime: for JNI bindings
:: opencv optionally requires java-runtime: Java interface

Packages (2) jdk-openjdk-21.u35-3  jre-openjdk-21.u35-3

Total Removed Size:  309,56 MiB

:: Do you want to remove these packages? [Y/n] n
    ~  sudo pacman -R jdk-openjdk                                                             1 ✘  2m 25s  
checking dependencies...

Packages (1) jdk-openjdk-21.u35-3

Total Removed Size:  308,99 MiB

:: Do you want to remove these packages? [Y/n] y
:: Processing package changes...
(1/1) removing jdk-openjdk                                            [######################################] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Refreshing PackageKit...
(3/4) Updating icon theme caches...
(4/4) Updating the desktop file MIME type cache...
    ~  pamac install dart-sass                                                                      ✔  4s  
Preparing...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: David (futui)
Password: 
==== AUTHENTICATION COMPLETE ====
Synchronizing package databases...
Resolving dependencies...
Checking inter-conflicts...
Error: unresolvable package conflicts detected
Error: Failed to prepare transaction:
conflicting dependencies:
- jre-openjdk and jre-openjdk-headless are in conflict
    ~  paru -R jre-openjdk-headless                                                               1 ✘  7s  
zsh: correct 'paru' to 'ptar' [nyae]? n
zsh: command not found: paru
    ~  sudo pacman -R jdk-openjdk-headless                                                             127 ✘ 
error: target not found: jdk-openjdk-headless
    ~  sudo pacman -R jre-openjdk-headless                                                               1 ✘ 
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
    ~  sudo pacman -R jre-openjdk-headless jre21-openjdk-headless=21.u35-3                               1 ✘ 
error: target not found: jre21-openjdk-headless=21.u35-3
    ~  sudo pacman -R jre-openjdk-headless                                                               1 ✘ 
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
    ~  pamac install dart-sass                                                                           1 ✘ 
Preparing...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: David (futui)
Password: 
==== AUTHENTICATION COMPLETE ====
Synchronizing package databases...
Resolving dependencies...
Checking inter-conflicts...
Error: unresolvable package conflicts detected
Error: Failed to prepare transaction:
conflicting dependencies:
- jre-openjdk and jre-openjdk-headless are in conflict
    ~  sudo pacman -Syu kpeoplevcard                                                              1 ✘  8s  
:: Synchronising package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
warning: kpeoplevcard-0.1-2 is up to date -- reinstalling
:: Starting full system upgrade...
:: Replace appstream-qt with extra/appstream-qt5? [Y/n] y
:: Replace grub-update with core/update-grub? [Y/n] y
:: Replace kdsoap with extra/kdsoap-qt5? [Y/n] y
:: Replace kgamma5 with extra/kgamma? [Y/n] y
:: Replace kuserfeedback with extra/kuserfeedback5? [Y/n] y
:: Replace libkcddb with extra/libkcddb5? [Y/n] y
:: Replace libkdcraw with extra/libkdcraw5? [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)
:: jre-openjdk and jre-openjdk-headless are in conflict
    ~  sudo pacman syuu                                                                          1 ✘  10s  
error: no operation specified (use -h for help)
    ~  sudo pacman -Syuu                                                                                 1 ✘ 
:: Synchronising 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 appstream-qt with extra/appstream-qt5? [Y/n] y
:: Replace grub-update with core/update-grub? [Y/n] y
:: Replace kdsoap with extra/kdsoap-qt5? [Y/n] y
:: Replace kgamma5 with extra/kgamma? [Y/n] y
:: Replace kuserfeedback with extra/kuserfeedback5? [Y/n] y
:: Replace libkcddb with extra/libkcddb5? [Y/n] y
:: Replace libkdcraw with extra/libkdcraw5? [Y/n] y
:: Replace libqaccessibilityclient with extra/libqaccessibilityclient-qt5? [Y/n] y
y
resolving dependencies...
looking for conflicting packages...
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: jre-openjdk and jre-openjdk-headless are in conflict

so i tried updating the system and the same conflicts…i understand nothing now, help please?
This is what i have

Generated on 2024-01-05 22:07:1704485259

#################### inxi -Fxzc0 ########################

System:
  Kernel: 6.1.60-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1 Desktop: KDE Plasma
    v: 5.27.9 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 82EY v: IdeaPad Gaming 3 15ARH05
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <superuser required> UEFI: LENOVO v: FCCN13WW
    date: 06/29/2020
Battery:
  ID-1: BAT0 charge: 24.0 Wh (59.1%) condition: 40.6/45.5 Wh (89.2%) volts: 11.7 min: 11.4
    model: Sunwoda L19D3PF4 status: not charging
CPU:
  Info: 6-core model: AMD Ryzen 5 4600H with Radeon Graphics bits: 64 type: MT MCP arch: Zen 2
    rev: 1 cache: L1: 384 KiB L2: 3 MiB L3: 8 MiB
  Speed (MHz): avg: 2078 high: 3371 min/max: 1400/3000 boost: enabled cores: 1: 3326 2: 3371
    3: 3323 4: 3232 5: 1658 6: 1647 7: 1400 8: 1397 9: 1397 10: 1396 11: 1397 12: 1396
    bogomips: 71900
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: Lenovo driver: nvidia
    v: 535.129.03 arch: Turing bus-ID: 01:00.0
  Device-2: AMD Renoir vendor: Lenovo driver: amdgpu v: kernel arch: GCN-5 bus-ID: 05:00.0
    temp: 47.0 C
  Device-3: IMC Networks [] driver: uvcvideo type: USB bus-ID: 1-3:3
  Display: x11 server: X.Org v: 21.1.9 with: Xwayland v: 23.2.2 driver: X:
    loaded: modesetting,nvidia dri: radeonsi gpu: amdgpu resolution: 1920x1080~60Hz
  API: EGL Message: No EGL data available.
  API: OpenGL v: 4.6.0 vendor: nvidia v: 535.129.03 glx-v: 1.4 direct-render: yes renderer: NVIDIA
    GeForce GTX 1650/PCIe/SSE2
  API: Vulkan v: 1.3.269 drivers: nvidia,radv surfaces: xcb,xlib devices: 2
Audio:
  Device-1: NVIDIA driver: snd_hda_intel v: kernel bus-ID: 01:00.1
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo driver: N/A bus-ID: 05:00.5
  Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel
    bus-ID: 05:00.6
  API: ALSA v: k6.1.60-1-MANJARO status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 0.3.83 status: off
  Server-3: PulseAudio v: 16.1 status: active
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169
    v: kernel port: 3000 bus-ID: 03:00.0
  IF: eno1 state: down mac: <filter>
  Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter vendor: Lenovo
    driver: rtw_8822ce v: N/A port: 2000 bus-ID: 04:00.0
  IF: wlp4s0 state: up mac: <filter>
Bluetooth:
  Device-1: Realtek [] driver: btusb v: 0.8 type: USB bus-ID: 3-3:2
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Drives:
  Local Storage: total: 238.47 GiB used: 105.4 GiB (44.2%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZALQ256HAJD-000L2 size: 238.47 GiB temp: 32.9 C
Partition:
  ID-1: / size: 233.38 GiB used: 105.4 GiB (45.2%) fs: ext4 dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 299.4 MiB used: 312 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 16 GiB used: 0 KiB (0.0%) file: /swapfile
Sensors:
  System Temperatures: cpu: 56.4 C mobo: N/A gpu: amdgpu temp: 48.0 C
  Fan Speeds (rpm): N/A
Info:
  Processes: 294 Uptime: 20m Memory: total: 8 GiB note: est. available: 7.14 GiB
  used: 4.98 GiB (69.7%) Init: systemd Compilers: gcc: 13.2.1 clang: 16.0.6 Packages: 1676
  Client: KDE Plasma v: 5.27.9 inxi: 3.3.31

And yes, i searched the forum.


Moderator edit: Removed useless screenshot

Please read Announcement for Stable Updates. This issue has been discussed since November.

1 Like

The issue and a workaround is mentioned under Changes in JDK / JRE 21 packages may require manual intervention and dates back to the [Stable Update] 2023-11-13 announcement.

1 Like

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