plasma5-pk-updates gives error with patch

Hi there,
the Plasma5 updater says there’s a patch for python-cssselect, but when trying to install that patch, it gives this error:


the to be installed patch:openSUSE-SLE-15.4-2022-2548-1.noarch conflicts with 'python-cssselect.noarch 

But, zypper --up does not report any update available, everything is current.

How can it happen the updater widget reports a patch, while zypper does not?

Are patches released before full rpms? I guess zypper --up shows only full rpm updates, right?

You can try:

zypper patch -D

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).

boven:~ # zypper --up
The flag --up is not known.
boven:~ # 

And I can not find the --up flag in the man page of zypper. So, to me it is a bit confusing w hat you explain…

But in general I would believe the native to openSUSE zypper/YaST > Software Management rather then the KDE “update applet”.

I think perhaps the “–up” may have been a typo on the OP’s part.

@pinguin74

If you were using “zypper --up” then the correct command is:

zypper up

It might also be useful if you could provide the output from:

zypper lr -d

People should copy/paste between CODE tags. No typos needed. :wink:

Sure, I use zypper up, the --up was a typo.

OMG, how do you properly format zypper output for best reading…? It seems even the code tag wraps lines?



#  | Alias                                 | Name                                                         | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                       | Service
---+---------------------------------------+--------------------------------------------------------------+---------+-----------+---------+----------+--------+---------------------------------------------------------------------------+--------
 1 | KDE:Extra                             | KDE:Extra                                                    | Yes     | (rp) Yes  | Yes     |   90     | rpm-md | https://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Leap_15.4/ | 
 4 | Security                              | Security                                                     | Yes     | (rp) Yes  | Yes     |   90     | rpm-md | https://download.opensuse.org/repositories/security/15.4/                 |
 5 | X11:Utilities                         | X11:Utilities                                                | Yes     | (rp) Yes  | Yes     |   90     | rpm-md | https://download.opensuse.org/repositories/X11:/Utilities/15.4/           |
 7 | download.opensuse.org-non-oss         | Haupt-Repository (NON-OSS)                                   | Yes     | (rp) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/distribution/leap/15.4/repo/non-oss/        |
 8 | download.opensuse.org-non-oss_1       | Aktualisierungs-Repository (Nicht-Open-Source-Software)      | Yes     | (rp) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/update/leap/15.4/non-oss/                   |
 9 | download.opensuse.org-oss             | Haupt-Repository (OSS)                                       | Yes     | (rp) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/distribution/leap/15.4/repo/oss/            |
10 | download.opensuse.org-oss_1           | Hauptaktualisierungs-Repository                              | Yes     | (rp) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/update/leap/15.4/oss                        |
11 | ftp.gwdg.de-openSUSE_Leap_$releasever | Packman Repository                                           | Yes     | (rp) Yes  | Yes     |   70     | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.4/       |
13 | openSUSE_Leap_${releasever}_1         | Hardware                                                     | Yes     | (rp) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/hardware/15.4/                 |
15 | openSUSE_Leap_${releasever}_5         | Sauerland                                                    | Yes     | (rp) Yes  | Yes     |  100     | rpm-md | https://download.opensuse.org/repositories/home:/Sauerland/15.4/          |
17 | openSUSE_Leap_15.4                    | Science_Oscar                                                | Yes     | (rp) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/science/15.4/                  |
20 | repo-backports-update                 | Update repository of openSUSE Backports                      | Yes     | (rp) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/backports/                  |
26 | repo-sle-update                       | Update repository with updates from SUSE Linux Enterprise 15 | Yes     | (rp) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.4/sle/                        |
27 | repo-source                           | openSUSE-Leap-15.4-Source                                    | Yes     | (rp) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/source/distribution/leap/15.4/repo/oss/     |
28 | repo-source-non-oss                   | openSUSE-Leap-15.4-Source-Non-Oss                            | Yes     | (rp) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/source/distribution/leap/15.4/repo/non-oss/ |
~                                                                                                                                                                                                                                               



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?

On your repo list.

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).

Using YaST Online Update should give you details of the patch. See the documentation here:

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…

https://software.opensuse.org/package/python-cssselect

All patches installed smoothly with standard repos:

**Leap-15-4:~ #** zypper lr -uEP 
#  | Alias                 | Name                                                         | Enabled | GPG Check | Refresh | Priority | URI 
---+-----------------------+--------------------------------------------------------------+---------+-----------+---------+----------+------------------------------------------------------------------ 
 2 | packman               | packman                                                      | Yes     | (r ) Yes  | Yes     |   90     | http://ftp.fau.de/packman/suse/openSUSE_Leap_15.4/ 
 4 | repo-backports-update | Update repository of openSUSE Backports                      | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/update/leap/15.4/backports/ 
 9 | repo-non-oss          | Non-OSS Repository                                           | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/distribution/leap/15.4/repo/non-oss/ 
10 | repo-oss              | Main Repository                                              | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/distribution/leap/15.4/repo/oss/ 
12 | repo-sle-update       | Update repository with updates from SUSE Linux Enterprise 15 | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/update/leap/15.4/sle/ 
14 | repo-update           | Main Update Repository                                       | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/update/leap/15.4/oss/ 
15 | repo-update-non-oss   | Update Repository (Non-Oss)                                  | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/update/leap/15.4/non-oss/ 
**Leap-15-4:~ #**
**Leap-15-4:~ #** zypper patch --dry-run --details  
Loading repository data... 
Reading installed packages... 
Resolving package dependencies... 
Nothing to do. 
**Leap-15-4:~ #**

Conflicts are caused by additional repos and their priorities. A more canonical approach, frequently ignored advice: https://www.youtube.com/watch?v=x8kEaJU6hlw

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.

Thanks, this is the solution.

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.

It is on my system:

henk@boven:~> which kdesu
/usr/bin/kdesu
henk@boven:~>

And

henk@boven:~> rpm -q -f /usr/bin/kdesu
kde-cli-tools5-5.24.4-bp154.1.23.x86_64
henk@boven:~> 
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:~>

kdesu is in the

kde-cli-tools5

Check if it is installed

cnf kdesu