Trouble updating via zypper

For the last few days I am seeing trouble running zypper up

What I see is

Installing: libgnutls28-3.0.20-1.4.1 …[error]
Installation of libgnutls28-3.0.20-1.4.1 failed:
(with --nodeps --force) Error: Subprocess failed. Error: RPM failed: error: rpmdb: __db_meta_setup: /var/lib/rpm/Obsoletename: unexpected file type or format
error: cannot open Obsoletename index using db4 - Invalid argument (22)

Abort, retry, ignore? [a/r/i] (a):

I presume something is corrupted but what and how do I fix?

Try to run:

sudo rpm --rebuilddb

Thank you; seems to br settled

Now al I nred is X on 12.3!