Bug 565525

Summary: Updates stop working with rpmdb2solv error message
Product: [openSUSE] openSUSE 11.2 Reporter: Christoph Stoppe <stoppe>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: ma
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.2   
Whiteboard: maint:released:sle11:30963 maint:released:sle11:31435 maint:released:sle11:31968 maint:released:sle11:32970 maint:released:11.2:32913 maint:released:11.1:32481 maint:released:sle11:33015
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: zypper Logfile of affected system
History file from /var/log/zypp

Description Christoph Stoppe 2009-12-17 07:07:12 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.5) Gecko/20091103 SUSE/3.5.5-1.1.2 Firefox/3.5.5

I freshly installed my laptop with openSUSE 11.2 x86_64. After some time installing updates by entering "zypper up" stopped working with this error message:

linux-qen3:~ # zypper up
Target initialization failed:
rpmdb2solv -r '/' -p '/etc/products.d'  > '/var/cache/zypp/solv/@System/solvyhuhJn'
     rpmdb2solv: /usr/src/packages/BUILD/satsolver-0.14.10/src/repodata.c:2194: repodata_add_dirnumnum: Assertion `dir' failed.
     /bin/sh: line 1: 29721 Aborted                 rpmdb2solv -r '/' -p '/etc/products.d' > '/var/cache/zypp/solv/@System/solvyhuhJn'

Yesterday i installed a VMware VM with the same version of openSUSE 64Bit, where zypper also will not work with the same error message.

kind regards,

Christoph Stoppe

Reproducible: Always

Steps to Reproduce:
1. Enter "zypper lu" or "zypper up"

Actual Results:  
Target initialization failed:
rpmdb2solv -r '/' -p '/etc/products.d'  > '/var/cache/zypp/solv/@System/solvyhuhJn'
     rpmdb2solv: /usr/src/packages/BUILD/satsolver-0.14.10/src/repodata.c:2194: repodata_add_dirnumnum: Assertion `dir' failed.
     /bin/sh: line 1: 29721 Aborted                 rpmdb2solv -r '/' -p '/etc/products.d' > '/var/cache/zypp/solv/@System/solvyhuhJn'
Comment 1 Christoph Stoppe 2009-12-17 11:20:54 UTC
I found the source of the problem:

I installed the RPM Version of Suns JDK and used the "--prefix=/opt" parameter when doing this. To reproduce this just download jdk-6u17-linux-x64-rpm.bin from Sun (http://java.sun.com/javase/downloads/widget/jdk6.jsp, choose the 64Bit version, click "Countinue" and select the first file in list) and do this:

1. sh jdk-6u17-linux-x64-rpm.bin (this will extract the .rpm used in step 3)
2. rpm -e jdk (default installation directory ist under /usr/java - i didn't wanted it there, so i removed it)
3. rpm -i --prefix=/opt jdk-6u17-linux-amd64.rpm
4. zypper lu

The last step will lead to the above mentioned error. When removing the jdk wich "rpm -e jdk" again, everything will be fine...

kind regards,

Christoph Stoppe
Comment 2 Shuang Qiu 2009-12-18 06:21:15 UTC
Could you please attach /var/log/zypper.log and /var/log/zypp/history.
Thanks.
Comment 3 Christoph Stoppe 2009-12-18 08:29:02 UTC
Created attachment 333346 [details]
zypper Logfile of affected system
Comment 4 Christoph Stoppe 2009-12-18 08:29:43 UTC
Created attachment 333347 [details]
History file from /var/log/zypp
Comment 5 Michael Schröder 2009-12-18 18:22:02 UTC
That's actually caused by a bug in rpm when --prefix is used. Instead of using a dirname of "/" and basename "opt" it uses dirname "" and basename "/opt" when adding the prefix directory to the file list.
I've committed a workaround into git.
Comment 6 Michael Andres 2010-01-28 12:02:51 UTC
.
Comment 7 Michael Andres 2010-02-11 12:21:21 UTC
*** Bug 573805 has been marked as a duplicate of this bug. ***
Comment 8 Swamp Workflow Management 2010-02-13 19:15:45 UTC
Update released for: kde4-kupdateapplet, kde4-kupdateapplet-debuginfo, kde4-kupdateapplet-debugsource, kde4-kupdateapplet-packagekit, kde4-kupdateapplet-zypp, libsatsolver, libsatsolver-debuginfo, libsatsolver-debugsource, libsatsolver-devel, libzypp, libzypp-debuginfo, libzypp-debugsource, libzypp-devel, perl-satsolver, python-satsolver, ruby-satsolver, satsolver-tool, satsolver-tools, yast2-pkg-bindings, yast2-pkg-bindings-debuginfo, yast2-pkg-bindings-debugsource, yast2-pkg-bindings-devel-doc, yast2-registration, yast2-registration-branding-SLE, yast2-registration-branding-openSUSE, yast2-update, yast2-update-FACTORY, yast2-wagon
Products:
SLE-DEBUGINFO 11-BETA (i386, ia64, ppc64, s390x, x86_64)
SLE-DESKTOP 11-BETA (i386, x86_64)
SLE-SDK 11-BETA (i386, ia64, ppc64, s390x, x86_64)
SLE-SERVER 11-BETA (i386, ia64, ppc64, s390x, x86_64)
Comment 9 Swamp Workflow Management 2010-02-24 16:48:01 UTC
Update released for: gnome-packagekit, gnome-packagekit-debuginfo, gnome-packagekit-debugsource, gnome-packagekit-lang, kde4-kupdateapplet, kde4-kupdateapplet-debuginfo, kde4-kupdateapplet-debugsource, kde4-kupdateapplet-packagekit, kde4-kupdateapplet-zypp, libsatsolver, libsatsolver-debuginfo, libsatsolver-debugsource, libsatsolver-devel, libzypp, libzypp-debuginfo, libzypp-debugsource, libzypp-devel, perl-satsolver, python-satsolver, ruby-satsolver, satsolver-tool, satsolver-tools, yast2-pkg-bindings, yast2-pkg-bindings-debuginfo, yast2-pkg-bindings-debugsource, yast2-pkg-bindings-devel-doc, yast2-registration, yast2-registration-branding-SLE, yast2-registration-branding-openSUSE, yast2-update, yast2-update-FACTORY, yast2-wagon
Products:
SLE-DEBUGINFO 11-BETA (i386, ia64, ppc64, s390x, x86_64)
SLE-DESKTOP 11-BETA (i386, x86_64)
SLE-SDK 11-BETA (i386, ia64, ppc64, s390x, x86_64)
SLE-SERVER 11-BETA (i386, ia64, ppc64, s390x, x86_64)
Comment 10 Swamp Workflow Management 2010-03-25 13:26:26 UTC
Update released for: gnome-packagekit, gnome-packagekit-debuginfo, gnome-packagekit-debugsource, gnome-packagekit-lang, kde4-kupdateapplet, kde4-kupdateapplet-debuginfo, kde4-kupdateapplet-debugsource, kde4-kupdateapplet-packagekit, kde4-kupdateapplet-zypp, libsatsolver, libsatsolver-debuginfo, libsatsolver-debugsource, libsatsolver-devel, libzypp, libzypp-debuginfo, libzypp-debugsource, libzypp-devel, perl-satsolver, python-satsolver, ruby-satsolver, satsolver-tool, satsolver-tools, yast2-pkg-bindings, yast2-pkg-bindings-debuginfo, yast2-pkg-bindings-debugsource, yast2-pkg-bindings-devel-doc, yast2-registration, yast2-registration-branding-SLE, yast2-registration-branding-openSUSE, yast2-update, yast2-update-FACTORY, yast2-wagon
Products:
SLE-DEBUGINFO 11-BETA (i386, ia64, ppc64, s390x, x86_64)
SLE-DESKTOP 11-BETA (i386, x86_64)
SLE-SDK 11-BETA (i386, ia64, ppc64, s390x, x86_64)
SLE-SERVER 11-BETA (i386, ia64, ppc64, s390x, x86_64)
Comment 11 Swamp Workflow Management 2010-04-26 12:09:54 UTC
Update released for: gnome-packagekit, gnome-packagekit-debuginfo, gnome-packagekit-debugsource, gnome-packagekit-lang, kde4-kupdateapplet, kde4-kupdateapplet-debuginfo, kde4-kupdateapplet-debugsource, kde4-kupdateapplet-packagekit, kde4-kupdateapplet-zypp, libsatsolver, libsatsolver-debuginfo, libsatsolver-debugsource, libsatsolver-devel, libzypp, libzypp-debuginfo, libzypp-debugsource, libzypp-devel, perl-satsolver, python-satsolver, ruby-satsolver, satsolver-tool, satsolver-tools, yast2-pkg-bindings, yast2-pkg-bindings-debuginfo, yast2-pkg-bindings-debugsource, yast2-pkg-bindings-devel-doc, yast2-registration, yast2-registration-branding-SLE, yast2-registration-branding-openSUSE, yast2-update, yast2-update-FACTORY, yast2-wagon
Products:
SLE-DEBUGINFO 11-BETA (i386, ia64, ppc64, s390x, x86_64)
SLE-DESKTOP 11-BETA (i386, x86_64)
SLE-SDK 11-BETA (i386, ia64, ppc64, s390x, x86_64)
SLE-SERVER 11-BETA (i386, ia64, ppc64, s390x, x86_64)
Comment 12 Swamp Workflow Management 2010-05-06 15:05:33 UTC
Update released for: PackageKit, PackageKit-debuginfo, PackageKit-debugsource, PackageKit-devel, PackageKit-doc, PackageKit-lang, libpackagekit-glib12, libpackagekit-glib12-debuginfo, libpackagekit-glib12-devel, libpackagekit-qt12, libpackagekit-qt12-debuginfo, libpackagekit-qt12-devel, libsatsolver, libsatsolver-debugsource, libsatsolver-demo, libsatsolver-demo-debuginfo, libsatsolver-devel, libsatsolver-devel-debuginfo, libzypp, libzypp-bindings, libzypp-debuginfo, libzypp-debugsource, libzypp-devel, perl-satsolver, perl-satsolver-debuginfo, perl-zypp, python-satsolver, python-satsolver-debuginfo, python-zypp, ruby-satsolver, ruby-satsolver-debuginfo, ruby-zypp, ruck, satsolver-tools, satsolver-tools-debuginfo, yast2-ncurses, yast2-ncurses-debuginfo, yast2-ncurses-debugsource, yast2-ncurses-devel, yast2-ncurses-pkg, yast2-ncurses-pkg-debuginfo, yast2-ncurses-pkg-debugsource, yast2-qt-pkg, yast2-qt-pkg-debuginfo, yast2-qt-pkg-debugsource, zypp-testsuite-tools, zypper, zypper-debuginfo, zypper-debugsource
Products:
openSUSE 11.2 (debug, i586, x86_64)
Comment 13 Swamp Workflow Management 2010-05-17 10:56:54 UTC
Update released for: libsatsolver, libsatsolver-debuginfo, libsatsolver-debugsource, libsatsolver-devel, libzypp, libzypp-bindings, libzypp-debuginfo, libzypp-debugsource, libzypp-devel, perl-satsolver, perl-zypp, python-satsolver, python-zypp, ruby-satsolver, ruby-zypp, satsolver-tools, zypper, zypper-debuginfo, zypper-debugsource
Products:
openSUSE 11.1 (debug, i586, ppc, x86_64)
Comment 14 Swamp Workflow Management 2010-05-17 18:09:14 UTC
Update released for: gnome-packagekit, gnome-packagekit-debuginfo, gnome-packagekit-debugsource, gnome-packagekit-lang, kde4-kupdateapplet, kde4-kupdateapplet-debuginfo, kde4-kupdateapplet-debugsource, kde4-kupdateapplet-packagekit, kde4-kupdateapplet-zypp, libsatsolver, libsatsolver-debuginfo, libsatsolver-debugsource, libsatsolver-devel, libzypp, libzypp-debuginfo, libzypp-debugsource, libzypp-devel, perl-satsolver, python-satsolver, ruby-satsolver, satsolver-tool, satsolver-tools, yast2-pkg-bindings, yast2-pkg-bindings-debuginfo, yast2-pkg-bindings-debugsource, yast2-pkg-bindings-devel-doc, yast2-registration, yast2-registration-branding-SLE, yast2-registration-branding-openSUSE, yast2-update, yast2-update-FACTORY, yast2-wagon
Products:
SLE-DEBUGINFO 11 (i386, ia64, ppc64, s390x, x86_64)
SLE-DESKTOP 11 (i386, x86_64)
SLE-POS 11 (i386)
SLE-SDK 11 (i386, ia64, ppc64, s390x, x86_64)
SLE-SERVER 11 (i386, ia64, ppc64, s390x, x86_64)
SLE-SMT 11 (i386, s390x, x86_64)
SLE-WEBYAST 1.0 (i386, x86_64)