That should give a more detailed message on what the problem is (if there is a problem). It won’t actually install anything (because of the “-D” option).
Again, please, please, include the command with your copy/paste. In this case we may assume you did a zypper lr -d, because that was suggested, but better make it a good habit. It is only one line more and you avoid a lot of confusion, and of course also the typos.
# zypper patch --dry-run
Loading repository data...
Reading installed packages...
Resolving package dependencies...
Problem: the to be installed patch:openSUSE-SLE-15.4-2022-2548-1.noarch conflicts with 'python-cssselect.noarch < 1.0.3-150000.3.3.1' provided by the installed python-cssselect-1.0.3-22.2.noarch
Solution 1: deinstallation of python-cssselect-1.0.3-22.2.noarch
Solution 2: do not install patch:openSUSE-SLE-15.4-2022-2548-1.noarch
Choose from above solutions by number or cancel [1/2/c/d/?] (c):
I think a patch should not conflict with a package it patches, that wouldn’t make sense.
How can I tell what package the patch is applied to?
Do you really use those two source repos? When not, then better disable them. That is done by a fresh installation also, probably for a reason.
For the rest it looks fine to me (but please try to restrict the number of extra repos, from time top time ask yourself if you really still need all of them).
m
In any case, my personal idea is to trust the native tools zyppr/YaST > Software Management more then the KDE applet (but who am I? I do not even have it installed, nor PackageKit).
According the software database there is no official python-cssselect for Leap 15.4 yet. Only backports/testing.
You are still using the python-cssselect-1.0.3-22.2.noarch which is from/for Leap 15.3 and try to apply a patch for a version which is in testing/backports python-cssselect-1.1.0
So you should check your repos, make sure that you have python-cssselect-1.1.0 installed, remove python-cssselect-1.0.3, apply the patch. This can all be seen by using the software database properly…
You can check what python-cssselect you have and from which repo. On my system
boven:~ # zypper se -s python-css
Loading repository data...
Reading installed packages...
S | Name | Type | Version | Arch | Repository
--+------------------+------------+--------------------+--------+-------------------------------------------------------------
| python-cssselect | srcpackage | 1.0.3-150000.3.3.1 | noarch | Update repository with updates from SUSE Linux Enterprise 15
| python-cssselect | srcpackage | 1.0.3-150000.3.3.1 | noarch | Updates from SUSE Linux Enterprise 15
Note: For an extended search including not yet activated remote resources please use 'zypper
search-packages'.
boven:~ #
The version seems to differ from what you have installed. Thus your installed one (shown with an i in the first colimn, I do not have it insstalled as you can see) must come from a non-standard repo.
python-cssselect-1.1.0 was left after upgrading to Leap 15.4.
I just see, there is no python-cssselect for Leap 15.4 available… but have no complaints about dependencies…
I just see, Leap 15.4 misses other packages as well, there is no kdesu for Leap 15.4, that is strange.
henk@boven:~> zypper se -si kde-cli
Loading repository data...
Reading installed packages...
S | Name | Type | Version | Arch | Repository
--+---------------------+---------+-------------------+--------+-----------
i | kde-cli-tools5 | package | 5.24.4-bp154.1.23 | x86_64 | Main (OSS)
i | kde-cli-tools5-lang | package | 5.24.4-bp154.1.23 | noarch | Main (OSS)
Note: For an extended search including not yet activated remote resources please use 'zypper
search-packages'.
henk@boven:~>