You are not logged in.
Yes.
See section "provides" on https://archlinux.org/packages/extra/x8 … k-openjdk/
Offline
I think we need two step solution:
1. pacman -Sy # without the common -u
2. pacman -S ${JAVA_PACKAGES_TO_KEEP}
I stumpled over the sources
[root@me me]# pacman -Sy
[root@me me]# pacman -S jdk-openjdk openjdk-src
resolving dependencies...
looking for conflicting packages...
:: jdk-openjdk and jre-openjdk are in conflict. Remove jre-openjdk? [y/N] y
:: jdk-openjdk and jre-openjdk-headless are in conflict. Remove jre-openjdk-headless? [y/N] y
Package (4) Old Version New Version Net Change Download Size
jre-openjdk 21.u35-3 -0.58 MiB
jre-openjdk-headless 21.u35-3 -192.59 MiB
extra/jdk-openjdk 21.u35-3 21.u35-7 827.49 MiB 457.81 MiB
extra/openjdk-src 21.u35-3 21.u35-7 0.00 MiB 46.27 MiB
Total Download Size: 504.08 MiB
Total Installed Size: 1187.46 MiB
Net Upgrade Size: 634.32 MiB
Maybe the news should be updated.
Offline
That's completely equivalent to "pacman -Sy ${JAVA_PACKAGES_TO_KEEP}" the the mandatory third (or now second) step is then "pacman -Su"
Offline
It seems to me that there could be a typo in the front page Latest News official notice regarding the jdk/jre conflict. The emailed newsletter states that to resolve it, use
sudo pacman -Sy jdk-openjdk
- not the
sudo pacman -Syu jdk-openjdk
that is on the front page Latest News. -Sy works, -Syu did not for me.
Thank you. Your correction worked for me.
Arch Linux with Openbox & Tint2
Offline
That's completely equivalent to "pacman -Sy ${JAVA_PACKAGES_TO_KEEP}" the the mandatory third (or now second) step is then "pacman -Su"
So I might have misunderstood the suggestions in this thread. Can you please suggest what should I do next?
I was trying to update:
[root@frankenstein ~]# pacman -Syu
:: Synchronizing package databases...
core 132.6 KiB 468 KiB/s 00:00 [##############################################################] 100%
extra 8.2 MiB 14.5 MiB/s 00:01 [##############################################################] 100%
community is up to date
multilib 141.1 KiB 1857 KiB/s 00:00 [##############################################################] 100%
:: Starting full system upgrade...
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
As most people here, I first did what is mentioned in the home page:
[root@frankenstein ~]# 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...
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
So, I then tried what people have mentioned in this thread:
[root@frankenstein ~]# pacman -Sy 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
resolving dependencies...
looking for conflicting packages...
:: jdk-openjdk and jre-openjdk are in conflict. Remove jre-openjdk? [y/N] y
:: jdk-openjdk and jre-openjdk-headless are in conflict. Remove jre-openjdk-headless? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: installing jdk-openjdk (21.u35-7) breaks dependency 'jdk20-openjdk=20.0.2.u9-3' required by openjdk-doc
:: installing jdk-openjdk (21.u35-7) breaks dependency 'jdk20-openjdk=20.0.2.u9-3' required by openjdk-src
Followed with:
[root@frankenstein ~]# pacman -Su
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: unresolvable package conflicts detected
And I still get an error. How can I fix this? I don't have any experience dealing with this kind of stuff.
Thanks
Offline
Either get rid of openjdk-doc and openjdk-src, or update them at the same time (in the same command) as jdk-openjdk
Offline
Either get rid of openjdk-doc and openjdk-src, or update them at the same time (in the same command) as jdk-openjdk
Ah Ok (hopefully I understood you correctly). I did:
[root@frankenstein ~]# pacman -Sy jdk-openjdk openjdk-doc openjdk-src
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
resolving dependencies...
looking for conflicting packages...
:: jdk-openjdk and jre-openjdk are in conflict. Remove jre-openjdk? [y/N] y
:: jdk-openjdk and jre-openjdk-headless are in conflict. Remove jre-openjdk-headless? [y/N] y
Packages (5) jre-openjdk-20.0.2.u9-3 [removal] jre-openjdk-headless-20.0.2.u9-3 [removal] jdk-openjdk-21.u35-7 openjdk-doc-21.u35-7 openjdk-src-21.u35-7
Total Download Size: 515.44 MiB
Total Installed Size: 1458.35 MiB
Net Upgrade Size: 655.71 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
jdk-openjdk-21.u35-7-x86_64 457.8 MiB 18.1 MiB/s 00:25 [##############################################################] 100%
openjdk-src-21.u35-7-x86_64 46.3 MiB 25.4 MiB/s 00:02 [##############################################################] 100%
openjdk-doc-21.u35-7-x86_64 11.4 MiB 22.7 MiB/s 00:01 [##############################################################] 100%
Total (3/3) 515.4 MiB 18.6 MiB/s 00:28 [##############################################################] 100%
(3/3) checking keys in keyring [##############################################################] 100%
(3/3) checking package integrity [##############################################################] 100%
(3/3) loading package files [##############################################################] 100%
(3/3) checking for file conflicts [##############################################################] 100%
(5/5) checking available disk space [##############################################################] 100%
:: Processing package changes...
(1/2) removing jre-openjdk [##############################################################] 100%
No Java environment is set as default anymore
(2/2) removing jre-openjdk-headless [##############################################################] 100%
(1/3) upgrading jdk-openjdk [##############################################################] 100%
New optional dependencies for jdk-openjdk
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]
java-rhino: for some JavaScript support
(2/3) upgrading openjdk-doc [##############################################################] 100%
(3/3) upgrading openjdk-src [##############################################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating icon theme caches...
(3/3) Updating the desktop file MIME type cache...
And then just:
pacman -Su
It all seems to have gone through correctly without any errors. Thanks a lot.
PS: Is there a way to check that I didn't mess things up? Or just the fact that running this:
[root@frankenstein ~]# pacman -Syu
:: 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...
there is nothing to do
Now means that everything is OK?
I would just want to avoid noticing that I broke something during my next update, and I have some free time now to fix things properly.
Offline
Now means that everything is OK
Offline
Except you have [community] still enabled, merge your pacnew files.
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.
Online
Hi all,
I seem to be stuck here.... any ideas?
:: Starting full system upgrade...
:: Replace kdsoap with extra/kdsoap-qt5? [Y/n] Y
:: Replace kuserfeedback with extra/kuserfeedback5? [Y/n] Y
:: Replace libqaccessibilityclient with extra/libqaccessibilityclient-qt5? [Y/n] Y
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing kcmutils5 (5.111.0-1) breaks dependency 'kcmutils' required by basket
:: installing kfilemetadata5 (5.111.0-1) breaks dependency 'kfilemetadata' required by basket
:: installing kparts5 (5.111.0-1) breaks dependency 'kparts' required by basket
:: installing knotifyconfig5 (5.111.0-1) breaks dependency 'knotifyconfig' required by choqok-git
:: installing kcmutils5 (5.111.0-1) breaks dependency 'kcmutils' required by choqok-git
:: installing kholidays5 (1:5.111.0-1) breaks dependency 'kholidays' required by kalarmcal
:: installing kvantum (1.0.10-2) breaks dependency 'kvantum-qt5' required by kvantum-theme-breeze-git
:: installing kxmlgui5 (5.111.0-1) breaks dependency 'kxmlgui' required by libkipi
:: installing kservice5 (5.111.0-1) breaks dependency 'kservice' required by libkipi
:: installing kio5 (5.111.0-1) breaks dependency 'kio' required by semantik
I'd appreciate any help or idea!
thank you!
Offline
Offline
thank you for pointing me in the right direction && apologies for being vastly off-topic
Offline
Nothing from above worked for me. My solution is:
pacman -S java-runtime
Abhängigkeiten werden aufgelöst …
Nach in Konflikt stehenden Paketen wird gesucht …
:: jdk-openjdk und jre-openjdk stehen miteinander in Konflikt. jre-openjdk entfernen? [j/N] j
:: jdk-openjdk und jre-openjdk-headless stehen miteinander in Konflikt. jre-openjdk-headless entfernen? [j/N] j
After that I could run a regular update via "pacman -SYu"
Offline
Nothing from above worked for me. My solution is:
pacman -S java-runtime Abhängigkeiten werden aufgelöst … Nach in Konflikt stehenden Paketen wird gesucht … :: jdk-openjdk und jre-openjdk stehen miteinander in Konflikt. jre-openjdk entfernen? [j/N] j :: jdk-openjdk und jre-openjdk-headless stehen miteinander in Konflikt. jre-openjdk-headless entfernen? [j/N] j
After that I could run a regular update via "pacman -SYu"
That worked for me too.
Offline
Problem solved: https://archlinux.org/news/incoming-cha … ervention/
This post shares the links to the actual cause of the conflict related to the jdk-openjdk, jre-openjdk and jre-openjdk-headless. As of 2023-11-02 you have to make a choice of which of them you need. The link also has the actions to take to solve your situation.
Offline