Mailinglist Archive: opensuse-bugs (6221 mails)

< Previous Next >
[Bug 1087723] `zypper patch` fails with error message that package is not installed while it is
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 13 Apr 2018 14:01:02 +0000
  • Message-id: <bug-1087723-21960-fh2jyjvfvc@http.bugzilla.opensuse.org/>
http://bugzilla.opensuse.org/show_bug.cgi?id=1087723
http://bugzilla.opensuse.org/show_bug.cgi?id=1087723#c8

Michael Andres <ma@xxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Flags| |needinfo?(mls@xxxxxxxx)

--- Comment #8 from Michael Andres <ma@xxxxxxxx> ---
@mls see ~ma/Export/bsc1087723:
/var/lib/rpm
/var/cache/zypp/solv/@System


In @System, beside the solv file:

rpmdb.index
solv.index

Content of the rpmdb and the solv file formated 'rpmdbid n v-r a' and sorted by
name. (side-by-side diff reveals the interesting parts).

multiple-entries

Excerpt of the solv.index listing all packages which claim to be installed in
multiple versions.


E.g. for enlightenment-theme-openSUSE:
rpmdb.index: 7896 enlightenment-theme-openSUSE 20170726-3.1 noarch
rpmdb.index: 7925 enlightenment-theme-openSUSE 20170726-3.1 noarch
rpmdb.index: 8777 enlightenment-theme-openSUSE 20170726-3.1 noarch

solv.index: 1568 enlightenment-theme-openSUSE 20170714-1.1 noarch
solv.index: 7925 enlightenment-theme-openSUSE 20170726-3.1 noarch
solv.index: 8777 enlightenment-theme-openSUSE 20170726-3.1 noarch

Other packages I checked show similar symptom. The rpmdb lists the same (new)
version for all entries. the solv file shows the same entries except for one,
which lists the old version and a different rpmdbid.

Also:
$ rpm -q enlightenment-theme-openSUSE --dbpath
/suse/ma/Export/bsc1087723/var/lib/rpm
package enlightenment-theme-openSUSE is not installed

$ rpm -qa enlightenment-theme-openSUSE --dbpath
/suse/ma/Export/bsc1087723/var/lib/rpm
enlightenment-theme-openSUSE-20170726-3.1.noarch
enlightenment-theme-openSUSE-20170726-3.1.noarch
enlightenment-theme-openSUSE-20170726-3.1.noarch

So the database index is broken.

But it does not explain me why rpmdb and solv file are out of sync... Maybe
there's something we can enhance.

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >
References