impossible update of several packages

Since several days I can’t update 14 packages with error messages like this:

Subprocess failed. Error: RPM failed: error: package akonadi-server-20.04.2-lp152.1.1.x86_64 is not installed 

Same result using YaST or plasma applet.
I updated other packages without any problem.

At the root command line, try:

zypper install akonadi-server

You might get better error messages.

This is what I get:

sudo zypper install akonadi-server
[sudo] password di root: 
Caricamento dati del repository in corso...
Lettura dei pacchetti installati in corso...
'akonadi-server' è già installato.
Nessun aggiornamento candidato per 'akonadi-server-20.04.2-lp152.2.3.1.x86_64'. La versione più recente disponibile è già installata.
Risoluzione dipendenze dei pacchetti in corso...

Nessuna operazione da eseguire.

I don’t know how to get message in english in console, anyway my translation is

...
akonadi server already installed
No update available for 'akonadi-server-20.04.2-lp152.2.3.1.x86_64'. The most recent version is already installed.
... 

Prefix the command with LANG=C. Like

LANG=C zypper install akonadi-server

Post:

LANG=C zypper lr -d
~> sudo LANG=C zypper install akonadi-server
[sudo] password di root: 
Loading repository data...
Reading installed packages...
'akonadi-server' is already installed.
No update candidate for 'akonadi-server-20.04.2-lp152.2.3.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.

~> LANG=C zypper lr -d     
#  | Alias                                | Name                                      | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                               | Service
---+--------------------------------------+-------------------------------------------+---------+-----------+---------+----------+--------+---------------------------------------------------------------------------------------------------+--------
 1 | dvd                                  | dvd                                       | No      | ----      | ----    |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_15.2/                                                | 
 2 | http-download.opensuse.org-a11213ba  | openSUSE:Leap:15.2:Update                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/oss/                                                | 
 3 | https-download.opensuse.org-07842155 | home:dominig:opencpn-sandbox              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/home:/dominig:/opencpn-sandbox/openSUSE_Leap_15.2/     | 
 4 | https-download.opensuse.org-317745b7 | electronics                               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/electronics/openSUSE_Leap_15.2/                        | 
 5 | https-download.opensuse.org-582b290a | home:dl8fcl                               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/home:/dl8fcl/openSUSE_Leap_15.2/                       | 
 6 | https-download.opensuse.org-81fac508 | home:opensuseitalia                       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/home:/opensuseitalia/openSUSE_Leap_15.2/               | 
 7 | https-download.opensuse.org-bffd06c1 | Application:Geo:OpenCPN                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/Application:/Geo:/OpenCPN/openSUSE_Leap_15.2/          | 
 8 | https-download.opensuse.org-e32405d0 | home:dominig:wxWidgets-3_2-nostl          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/home:/dominig:/wxWidgets-3_2-nostl/openSUSE_Leap_15.2/ | 
 9 | openSUSE-Leap-15.2-1                 | openSUSE-Leap-15.2-1                      | No      | ----      | ----    |   99     | rpm-md | hd:/?device=/dev/disk/by-id/usb-JetFlash_Transcend_16GB_ZFURB3G5-0:0-part2                        | 
10 | packman                              | packman                                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_15.2/                                                  | 
11 | repo-debug                           | Debug Repository                          | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/                               | 
12 | repo-debug-non-oss                   | Debug Repository (Non-OSS)                | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/                           | 
13 | repo-debug-update                    | Update Repository (Debug)                 | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.2/oss/                                          | 
14 | repo-debug-update-non-oss            | Update Repository (Debug, Non-OSS)        | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.2/non-oss/                                      | 
15 | repo-non-oss                         | Repository Non-OSS                        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/                                 | 
16 | repo-oss                             | Repository principale                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/                                     | 
17 | repo-source                          | Source Repository                         | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/                              | 
18 | repo-source-non-oss                  | Source Repository (Non-OSS)               | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/                          | 
19 | repo-update                          | Repository principale degli aggiornamenti | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/oss                                                 | 
20 | repo-update-non-oss                  | Repository degli aggiornamenti (Non-Oss)  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/non-oss/  

Please use

su -l

and the root-password as command to switch to root.
Then you can use the command posted here, so that LANG=C will work.

As root:

zypper clean -a
rpm --rebuilddb

Now post:

LANG=C zypper up

Here’s the result

~> su -l
Password: 
localhost:~ # LANG=C zypper up
Retrieving repository 'openSUSE:Leap:15.2:Update' metadata ..............................................................................................................[done]
Building repository 'openSUSE:Leap:15.2:Update' cache ...................................................................................................................[done]
Retrieving repository 'home:dominig:opencpn-sandbox' metadata ...........................................................................................................[done]
Building repository 'home:dominig:opencpn-sandbox' cache ................................................................................................................[done]
Retrieving repository 'electronics' metadata ............................................................................................................................[done]
Building repository 'electronics' cache .................................................................................................................................[done]
Retrieving repository 'home:dl8fcl' metadata ............................................................................................................................[done]
Building repository 'home:dl8fcl' cache .................................................................................................................................[done]
Retrieving repository 'home:opensuseitalia' metadata ....................................................................................................................[done]
Building repository 'home:opensuseitalia' cache .........................................................................................................................[done]
Retrieving repository 'Application:Geo:OpenCPN' metadata ................................................................................................................[done]
Building repository 'Application:Geo:OpenCPN' cache .....................................................................................................................[done]
Retrieving repository 'home:dominig:wxWidgets-3_2-nostl' metadata .......................................................................................................[done]
Building repository 'home:dominig:wxWidgets-3_2-nostl' cache ............................................................................................................[done]
Retrieving repository 'packman' metadata ................................................................................................................................[done]
Building repository 'packman' cache .....................................................................................................................................[done]
Retrieving repository 'Repository Non-OSS' metadata .....................................................................................................................[done]
Building repository 'Repository Non-OSS' cache ..........................................................................................................................[done]
Retrieving repository 'Repository principale' metadata ..................................................................................................................[done]
Building repository 'Repository principale' cache .......................................................................................................................[done]
Retrieving repository 'Repository principale degli aggiornamenti' metadata ..............................................................................................[done]
Building repository 'Repository principale degli aggiornamenti' cache ...................................................................................................[done]
Retrieving repository 'Repository degli aggiornamenti (Non-Oss)' metadata ...............................................................................................[done]
Building repository 'Repository degli aggiornamenti (Non-Oss)' cache ....................................................................................................[done]
Loading repository data...
Reading installed packages...

The following 61 package updates will NOT be installed:
  bubblewrap gegl-0_4 gegl-0_4-lang gettext-runtime gimp gimp-lang gimp-plugin-aa gimp-plugins-python glib-networking glib-networking-lang glib2-lang glib2-tools gtk2-data
  gtk2-immodule-amharic gtk2-immodule-inuktitut gtk2-immodule-thai gtk2-immodule-tigrigna gtk2-immodule-vietnamese gtk2-lang gtk2-tools inkscape inkscape-extensions-extra
  inkscape-extensions-gimp inkscape-lang libbabl-0_1-0 libfreetype6 libgegl-0_4-0 libgexiv2-2 libgimp-2_0-0 libgimpui-2_0-0 libgio-2_0-0 libglib-2_0-0 libgmodule-2_0-0
  libgobject-2_0-0 libgthread-2_0-0 libgtk-2_0-0 liblcms2-2 libmypaint-lang libostree libostree-1-1 libpng16-16 libpoppler-cpp0 libpoppler-glib8 libpoppler-qt5-1
  libpython2_7-1_0 libquazip5-1 libv4l libv4l1-0 libv4l2-0 libv4lconvert0 libvidstab1_1 libwebp7 libwebpdemux2 libwebpmux3 poppler-tools python python-base python-sip-common
  python-xml python3-qt5 python3-sip

The following 7 packages are going to be upgraded:
  avahi kio kio-lang libavahi-client3 libavahi-common3 libavahi-core7 libavahi-glib1

7 packages to upgrade.
Overall download size: 3.6 MiB. Already cached: 0 B. After the operation, 2.7 KiB will be freed.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package kio-5.71.0-lp152.2.9.1.x86_64                                                                                          (1/7),   1.2 MiB (  4.9 MiB unpacked)
Retrieving delta: ./x86_64/kio-5.71.0-lp152.2.6.1_lp152.2.9.1.x86_64.drpm, 109.5 KiB
Retrieving: kio-5.71.0-lp152.2.6.1_lp152.2.9.1.x86_64.drpm ..................................................................................................[done (2.2 KiB/s)]
Applying delta: ./kio-5.71.0-lp152.2.6.1_lp152.2.9.1.x86_64.drpm ........................................................................................................[done]
Retrieving package libavahi-common3-0.7-lp152.3.3.1.x86_64                                                                                (2/7),  34.4 KiB ( 51.2 KiB unpacked)
Retrieving delta: ./x86_64/libavahi-common3-0.7-lp152.2.7_lp152.3.3.1.x86_64.drpm, 12.7 KiB
Retrieving: libavahi-common3-0.7-lp152.2.7_lp152.3.3.1.x86_64.drpm ......................................................................................................[done]
Applying delta: ./libavahi-common3-0.7-lp152.2.7_lp152.3.3.1.x86_64.drpm ................................................................................................[done]
Retrieving package kio-lang-5.71.0-lp152.2.9.1.noarch                                                                                     (3/7),   2.1 MiB ( 11.4 MiB unpacked)
Retrieving delta: ./noarch/kio-lang-5.71.0-lp152.2.6.1_lp152.2.9.1.noarch.drpm, 159.7 KiB
Retrieving: kio-lang-5.71.0-lp152.2.6.1_lp152.2.9.1.noarch.drpm .........................................................................................................[done]
Applying delta: ./kio-lang-5.71.0-lp152.2.6.1_lp152.2.9.1.noarch.drpm ...................................................................................................[done]
Retrieving package libavahi-glib1-0.7-lp152.3.3.1.x86_64                                                                                  (4/7),  14.3 KiB ( 14.2 KiB unpacked)
Retrieving delta: ./x86_64/libavahi-glib1-0.7-lp152.2.10_lp152.3.3.1.x86_64.drpm, 6.2 KiB
Retrieving: libavahi-glib1-0.7-lp152.2.10_lp152.3.3.1.x86_64.drpm ...........................................................................................[done (2.2 KiB/s)]
Applying delta: ./libavahi-glib1-0.7-lp152.2.10_lp152.3.3.1.x86_64.drpm .................................................................................................[done]
Retrieving package libavahi-core7-0.7-lp152.3.3.1.x86_64                                                                                  (5/7),  92.7 KiB (216.7 KiB unpacked)
Retrieving delta: ./x86_64/libavahi-core7-0.7-lp152.2.7_lp152.3.3.1.x86_64.drpm, 12.8 KiB
Retrieving: libavahi-core7-0.7-lp152.2.7_lp152.3.3.1.x86_64.drpm ........................................................................................................[done]
Applying delta: ./libavahi-core7-0.7-lp152.2.7_lp152.3.3.1.x86_64.drpm ..................................................................................................[done]
Retrieving package libavahi-client3-0.7-lp152.3.3.1.x86_64                                                                                (6/7),  37.9 KiB ( 67.1 KiB unpacked)
Retrieving delta: ./x86_64/libavahi-client3-0.7-lp152.2.7_lp152.3.3.1.x86_64.drpm, 12.8 KiB
Retrieving: libavahi-client3-0.7-lp152.2.7_lp152.3.3.1.x86_64.drpm ......................................................................................................[done]
Applying delta: ./libavahi-client3-0.7-lp152.2.7_lp152.3.3.1.x86_64.drpm ................................................................................................[done]
Retrieving package avahi-0.7-lp152.3.3.1.x86_64                                                                                           (7/7), 124.8 KiB (411.1 KiB unpacked)
Retrieving delta: ./x86_64/avahi-0.7-lp152.2.7_lp152.3.3.1.x86_64.drpm, 29.0 KiB
Retrieving: avahi-0.7-lp152.2.7_lp152.3.3.1.x86_64.drpm .................................................................................................................[done]
Applying delta: ./avahi-0.7-lp152.2.7_lp152.3.3.1.x86_64.drpm ...........................................................................................................[done]

Checking for file conflicts: ............................................................................................................................................[done]
(1/7) Installing: kio-5.71.0-lp152.2.9.1.x86_64 .........................................................................................................................[done]
(2/7) Installing: libavahi-common3-0.7-lp152.3.3.1.x86_64 ...............................................................................................................[done]
(3/7) Installing: kio-lang-5.71.0-lp152.2.9.1.noarch ....................................................................................................................[done]
(4/7) Installing: libavahi-glib1-0.7-lp152.3.3.1.x86_64 .................................................................................................................[done]
(5/7) Installing: libavahi-core7-0.7-lp152.3.3.1.x86_64 .................................................................................................................[done]
(6/7) Installing: libavahi-client3-0.7-lp152.3.3.1.x86_64 ...............................................................................................................[done]
(7/7) Installing: avahi-0.7-lp152.3.3.1.x86_64 ..........................................................................................................................[done]
Additional rpm output:
Updating /etc/sysconfig/avahi ...
Updating /etc/sysconfig/security ...


There are running programs which still use files and libraries deleted or updated by recent upgrades. They should be restarted to benefit from the latest updates. Run 'zypper ps -s' to list these programs.

So all is running fine…

Updated 2 packages still in the list then checked for updates: no more updates available.
Problem solved, thanks to all.

Maybe avoid the applet?

As I wrote in first message I tried YaST but I get the same error.

Yes, but you tried YaST (and zypper) after you used the mechanism behind the applet (PackageKit) to try to update.

It is no prove of course, but every now and then such problems appear with users using the applet, scan the forum.

Now I understand, you suggest trying YaST as first method.
If I had the same problem in future I’ll try to remember.

In fact, my suggestion is NOT to use the applet for updating. (maybe at the most for getting the signal that there is something. Use either zypper up or YaST for updating, Again NOT the applet which uses Packagekit.

Maybe others think different, but as I said, earlier in this thread, I see often enough problems reported here on the forums where people used the applet and that had to be recovered the same as we let you do above.

I do not even have the applet installed, but that is a very personal approach.

I agree but given that this applet is part of KDE and is the easiest way to update it should work. May be openSuse staff could help.

Maybe “easiest”, but “best”? A matter of personal taste. I never would allow any automatic update on my systems.
Thus the only function that rests for the applet to offer me is the warning that there is something out there. But I am satisfied with my way of looking every week during “maintenance window” what YaST Online Update offers me.

And another personal thought. I would rather see that openSUSE developers spend their resources on future development of libzypp and the openSUSE native tools zypper and YaST > Software then on PackageKit