Incoming changes in JDK / JRE 21 packages may require manual intervention

Ok, I just had a little confusing update since I had both jre-openjdk and jre-openjdk-headless (previously “headless” was a direct dependency of jre-openjdk).
When I tried to update it failed with package conflict. Arch instruction did not help much. Running pacman -Syu jre-openjdk failed as well as pacman -Runs jre-openjdk-headless.

What worked was just running yay and selecting exclude package jre-openjdk-headless from update. Then it asked if it should be removed.

terminal output snippet
...

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
 -> error installing repo packages
~ >1> yay
:: Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Searching AUR for updates...
:: Searching databases for updates...
:: 6 packages to upgrade/install.
6  endeavouros/eos-bash-shared  23.20-1  -> 23.21-1
5  extra/jre-openjdk            21.u35-3 -> 21.u35-7
4  extra/jre-openjdk-headless   21.u35-3 -> 21.u35-7
3  extra/libreoffice-still      7.5.7-3  -> 7.5.8-1
2  extra/qt6-base               6.6.0-2  -> 6.6.0-3
1  extra/suitesparse            7.3.0-1  -> 7.3.1-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> Excluding packages may cause partial upgrades and break systems
==> 4
Sync Dependency (4): jre-openjdk-21.u35-7, qt6-base-6.6.0-3, suitesparse-7.3.1-1, eos-bash-shared-23.21-1
Sync Explicit (1): libreoffice-still-7.5.8-1
:: Synchronizing package databases...
 endeavouros is up to date
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
warning: jre-openjdk-headless: ignoring package upgrade (21.u35-3 => 21.u35-7)
resolving dependencies...
looking for conflicting packages...
:: jre-openjdk and jre-openjdk-headless are in conflict. Remove jre-openjdk-headless? [y/N] y

...
5 Likes