[Bug 1087723] New: `zypper patch` fails with error message that package is not installed while it is
http://bugzilla.opensuse.org/show_bug.cgi?id=1087723 Bug ID: 1087723 Summary: `zypper patch` fails with error message that package is not installed while it is Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.3 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@forge.provo.novell.com Reporter: okurz@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 765649 --> http://bugzilla.opensuse.org/attachment.cgi?id=765649&action=edit zypper.log of the session where zypper patch failed, reproducible with comparable content ## Observation Trying to call `zypper patch` or `zypper -n patch -l --upgrade` on an openSUSE Leap 42.3 installation where `zypper dup` actually reports no updates available yields error messages with "RPM failed: error: package enlightenment-theme-openSUSE-20170714-1.1.noarch is not installed" or other packages, e.g. "apparmor-docs". ## Further details See zypper.log attached -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1087723 http://bugzilla.opensuse.org/show_bug.cgi?id=1087723#c1 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |okurz@suse.com Flags| |needinfo?(okurz@suse.com) --- Comment #1 from Michael Andres <ma@suse.com> --- Oliver could you please add your complete /var/log/zypper.log (and maybe the last one rotated) so we can investigate this? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1087723 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mls@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1087723 http://bugzilla.opensuse.org/show_bug.cgi?id=1087723#c7 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vpelcak@suse.com --- Comment #7 from Michael Andres <ma@suse.com> --- *** Bug 1086783 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1087723 http://bugzilla.opensuse.org/show_bug.cgi?id=1087723#c8 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(mls@suse.com) --- Comment #8 from Michael Andres <ma@suse.com> --- @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.
participants (1)
-
bugzilla_noreply@novell.com