localization package installation error after computer died during update

My sister’s laptop just died during an update. Now when trying to update it I get the following error:

Subprocess failed. Error: RPM misslyckades: error: db4 error(-30986) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found
error: error(-30986) getting "System/Localization" records from Group index
error: kde3-i18n-sv-base-3.5.10-63.2.noarch: install failed

Your RPM database is corrupted.

If you are lucky, running “sudo rpm --rebuilddb” will fix it.

If not, you probably should restore the latest backup of the RPM database from /var/adm/backup/rpmdb/ to /var/lib/rpm/…

Thanks, “sudo rpm --rebuilddb” seems to have fixed it.