Skip to main content
Topic: Package A and package B are in conflict, should I remove one? Which one? (Read 532 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Package A and package B are in conflict, should I remove one? Which one?

Updating my system:

Code: [Select]
> 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:

Code: [Select]
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:

Code: [Select]
~> 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.


Re: Package A and package B are in conflict, should I remove one? Which one?

Reply #2
I'd pacman -Rdd jre-openjdk-headless, as jre-openjdk is now equivalent to jre-openjdk-headless plus more (see the Provides section).

But why removing jre-openjdk-headless I will get 9 packages removed, and getting rid of jre-openjdk I will get 5 removed? By the way, these are packages I need.

I have the impression that the packaging system does not realize that these packages can stay because there is the other (now conflicting) JRE that will stay...

Re: Package A and package B are in conflict, should I remove one? Which one?

Reply #3
Because before the change I linked to, these packages were not equivalent.

That's why I'm recommending -Rdd; temporarily break the 9 packages so the upgrade can proceed and install the new jre-openjdk, which will then satisfy both the 5 that wanted jre-openjdk and the 9 that wanted jre-openjdk-headless.

Re: Package A and package B are in conflict, should I remove one? Which one?

Reply #4
This the error I am getting now:

Code: [Select]
looking for conflicting packages...
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: analitza and analitza5 are in conflict

Should I do the same thing for `analitza`, and for all the following packages with the same issue?

Is there a quicker way?

Re: Package A and package B are in conflict, should I remove one? Which one?

Reply #5
Yes, though I'm not familiar enough with KDE to say which one you should keep.

I don't know any quicker way.

Re: Package A and package B are in conflict, should I remove one? Which one?

Reply #6
Now I am getting this different error message:

Code: [Select]
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing kactivities5 (5.115.0-1) breaks dependency 'kactivities' required by telepathy-kde-integration-module

No longer a conflict, but a broken dependency.

I am trying with: 
Code: [Select]
sudo pacman -Rdd kactivities5

 

Re: Package A and package B are in conflict, should I remove one? Which one?

Reply #7
The KDE apps that don't end with 5 are the latest versions.

Re: Package A and package B are in conflict, should I remove one? Which one?

Reply #8
The KDE apps that don't end with 5 are the latest versions.

But why am I often asked if I want to replace new apps with old ones, with affirmative default answer?

Re: Package A and package B are in conflict, should I remove one? Which one?

Reply #9
OK, the installation completed successfully.

Thank you for your help.

Re: Package A and package B are in conflict, should I remove one? Which one?

Reply #10
But why am I often asked if I want to replace new apps with old ones, with affirmative default answer?

You're currently on 5, maybe you want to stick to 5 🙃 but maybe not though? 😯

Re: Package A and package B are in conflict, should I remove one? Which one?

Reply #11
After an apparently successful system update, I am now having the following issues:

- KDE: clicking on the main menu icon (bottom left), instead of the usual menu I get this error message:
    "Sorry! There was an error loading Application Menu"
    file:///usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/main.qml:16:1: Cannot load library /usr/lib/qt6/qml/org/kde/plasma/private/kicker/libkickerplugin.so: libKF6Runner.so.6: cannot open shared object file: No such file or directory

- All desktop environments: no Internet access (ERR_INTERNET_DISCONNECTED). Neither the cable nor WiFi work. Nothing changed during/after the system update.

With no Internet access it may not be easy to fix my system...

Re: Package A and package B are in conflict, should I remove one? Which one?

Reply #12
With no Internet access it may not be easy to fix my system...
From the sounds of it, from the rest of the thread, even with internet access you are going to struggle.

Options for internet access
Boot from a livecd and chroot into the broken system. If you use search on the forum you should be able to find explanations of how.
Manually bring up the internet or use the command line programs of whatever network manager you have to start the network.
Quote
libKF6Runner.so.6: cannot open shared object file: No such file or directory
That file is part of an up to date krunner and you are missing it. You probably still have the old version somehow ?

Re: Package A and package B are in conflict, should I remove one? Which one?

Reply #13
Quote
libKF6Runner.so.6: cannot open shared object file: No such file or directory

Doing a search, libKF6Runner.so.6 is effectively missing, and libKF5Runner.so.5 is available in /usr/lib.

I also noticed that this is not only an Artix problem, but common to other distros. E.g.:

- https://forum.endeavouros.com/t/application-launcher-issues-after-plasma-6-upgrade/53243

The symptoms point to a partial upgrade as the main issue.

At the reported link, they suggest to refresh your mirrors, and run:
Code: [Select]
sudo pacman -Syyu

The problem is that with no Internet access it may not be easy:

Quote
error: failed retrieving file '...' from mirrors.* : Could not resolve host: ...




Re: Package A and package B are in conflict, should I remove one? Which one?

Reply #14
That's more or less what I told you