Interrupted online update

I’m running Suse 13.1 on a Laptop. Lately my system somehow got stuck during a Yast driven online update. I had no choice but brutally turning off the machine.

Now I have the following problem:

Starting online update again it recommends an update for package apparmor-docs. I click “accept” but I get the message:
“Subprocess failed. Error: RPM failed: error: package apparmor-docs-2.8.2-4.13.1.noarch is not installed”

The overview inside the Yast Software Management also lists that package as installed. Trying to remove it there leads to the same problem as well.
So I neither can remove that package, nor am I able to update it. So there’s obviously a damage in maintaining informations about installed packeges.

Is there a way to restore these informations?

Thanks in advance

Open a terminal, su yourself to root and run; rpm --rebuilddb

Then run; zypper ref && zypper ve

On 2014-12-12 13:26, Miuku wrote:
>
> Open a terminal, su yourself to root and run; rpm --rebuilddb

If that fails, there is a backup of that database, kept as
/var/adm/backup/rpmdb/Packages-date.gz. Pick the latest, retry rebuild,
if it fails, go back one date, etc.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Miukus advice worked out perfectly.

What would I be without this community. You’re so great! Thank you all.