Package A and package B are in conflict, should I remove one? Which one?
Updating my system:
> sudo pacman -Syu
I am asked for many packages:
:: Replace kdsoap with world/kdsoap-qt5? [Y/n]
:: Replace kgamma5 with world/kgamma? [Y/n]
...
I tried answering to all these questions either with Y for all, n for all, default for all, or picking the most recent one for all. Same result.
- Does ":: Replace kdsoap with world/kdsoap-qt5?" mean I am asked whether to downgrade from a Qt6 app to a Qt5 app?
- Does ":: Replace kgamma5 with world/kgamma?" mean I am asked whether to upgrade from a Qt5 app to a Qt6 app?
The process ends with:
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
I then try to remove one or the other of the two conflicting packages, and I get the following:
~> sudo pacman -Rsc jre-openjdk-headless
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
:: libreoffice-fresh optionally requires java-runtime: adds java support
:: octave optionally requires java-runtime: java support
:: opencv optionally requires java-runtime: Java interface
:: texlive-latexextra optionally requires java-runtime: for pdfannotextractor
Package (9) Old Version Net Change
ditaa 0.11.0-3 -12.04 MiB
java-runtime-common 3-5 -0.01 MiB
jlatexmath 1.0.7-2 -0.64 MiB
jre-openjdk 21.u35-3 -0.58 MiB
libnet 1:1.1.6-1.1 -0.30 MiB
libreoffice-extension-writer2latex 1.6.1-2 -3.20 MiB
plantuml 1.2023.6-1 -10.96 MiB
plantuml-ascii-math 20171116-3 -4.13 MiB
jre-openjdk-headless 21.u35-3 -192.55 MiB
Total Removed Size: 224.41 MiB
:: Do you want to remove these packages? [Y/n] n
~>
~> sudo pacman -Rsc jre-openjdk
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
:: libreoffice-fresh optionally requires java-runtime: adds java support
:: octave optionally requires java-runtime: java support
:: opencv optionally requires java-runtime: Java interface
:: texlive-latexextra optionally requires java-runtime: for pdfannotextractor
Package (5) Old Version Net Change
ditaa 0.11.0-3 -12.04 MiB
jlatexmath 1.0.7-2 -0.64 MiB
plantuml 1.2023.6-1 -10.96 MiB
plantuml-ascii-math 20171116-3 -4.13 MiB
jre-openjdk 21.u35-3 -0.58 MiB
Total Removed Size: 28.35 MiB
:: Do you want to remove these packages? [Y/n] n
So, no matter my choice, I will always get some packages removed.
How can I fix this, and get a proper, smooth system update?
- Is this a Pacman bug?
- Am I doing anything wrong?
Thank you for your help.