Bug 441656

Summary: "zypper dup" erroneously switches architecture - Beta3/Beta 3plus --> Beta4
Product: [openSUSE] openSUSE 11.1 Reporter: Sid Boyce <sboyce>
Component: Update ProblemsAssignee: Stefan Schubert <schubi>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Critical    
Priority: P5 - None CC: ma
Version: Factory   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Sid Boyce 2008-11-04 22:07:48 UTC
Problem seen on a number of x86_64 boxes, but not in the numbers I've seen on the current box.
Progresses normally installing x86_64 packages until it somehow installs the i586 version "rpm" and switches to installing i586 packages and attempting further x86_64 package installs gives error message seen down the page. I think I see a pattern, x86_64 --> noarch --> i586. I can't say for certain what happened to change "rpm" from x86_64 to i586. 
 
Retrieving package cdrkit-cdrtools-compat-1.1.8-3.18.x86_64 (58/957), 6.0 K (0 B unpacked)
Retrieving: cdrkit-cdrtools-compat-1.1.8-3.18.x86_64.rpm [done]
Installing: cdrkit-cdrtools-compat-1.1.8-3.18 [done]
Retrieving package banshee-1-backend-platform-unix-1.3.3-1.7.x86_64 (59/957), 34.0 K (58.0 K unpacked)
Retrieving: banshee-1-backend-platform-unix-1.3.3-1.7.x86_64.rpm [done]
Installing: banshee-1-backend-platform-unix-1.3.3-1.7 [done]
Retrieving package banshee-1-backend-engine-gstreamer-1.3.3-1.7.x86_64 (60/957), 30.0 K (40.0 K unpacked)
Retrieving: banshee-1-backend-engine-gstreamer-1.3.3-1.7.x86_64.rpm [done]
Installing: banshee-1-backend-engine-gstreamer-1.3.3-1.7 [done]
Retrieving package atk-devel-1.24.0-1.9.x86_64 (61/957), 36.0 K (165.0 K unpacked)
Retrieving: atk-devel-1.24.0-1.9.x86_64.rpm [done]
Installing: atk-devel-1.24.0-1.9 [done]
Retrieving package art-sharp2-2.24.0-14.28.x86_64 (62/957), 26.0 K (96.0 K unpacked)
Retrieving: art-sharp2-2.24.0-14.28.x86_64.rpm [done]
Installing: art-sharp2-2.24.0-14.28 [done]
Retrieving package yast2-nfs-common-2.17.2-1.18.noarch (63/957), 7.0 K (4.0 K unpacked)
Retrieving: yast2-nfs-common-2.17.2-1.18.noarch.rpm [done]
Installing: yast2-nfs-common-2.17.2-1.18 [done]
Retrieving package ndesk-dbus-glib-0.4.1-1.51.noarch (64/957), 9.0 K (11.0 K unpacked)
Retrieving: ndesk-dbus-glib-0.4.1-1.51.noarch.rpm [done]
Installing: ndesk-dbus-glib-0.4.1-1.51 [done]
Retrieving package gtk-doc-1.10-45.7.noarch (65/957), 131.0 K (548.0 K unpacked)
Retrieving: gtk-doc-1.10-45.7.noarch.rpm [done]
Installing: gtk-doc-1.10-45.7 [done]
Retrieving package wv2-0.2.3-215.78.i586 (66/957), 194.0 K (699.0 K unpacked)
Retrieving: wv2-0.2.3-215.78.i586.rpm [done (6.0 K/s)]
Installing: wv2-0.2.3-215.78 [done]
Retrieving package wv-1.2.2-177.77.i586 (67/957), 222.0 K (681.0 K unpacked)
Retrieving: wv-1.2.2-177.77.i586.rpm [done]
Installing: wv-1.2.2-177.77 [done]
Retrieving package tkimg-1.3-214.7.i586 (68/957), 195.0 K (622.0 K unpacked)
Retrieving: tkimg-1.3-214.7.i586.rpm [done]
Installing: tkimg-1.3-214.7 [done]
Retrieving package t1lib-5.1.1-101.3.i586 (69/957), 144.0 K (385.0 K unpacked)
Retrieving: t1lib-5.1.1-101.3.i586.rpm [done]
Installing: t1lib-5.1.1-101.3 [done]
Retrieving package soprano-backend-redland-2.1.1-9.6.i586 (70/957), 39.0 K (95.0 K unpacked)
Retrieving: soprano-backend-redland-2.1.1-9.6.i586.rpm [done]
Installing: soprano-backend-redland-2.1.1-9.6 [done]
<SOME LINES DELETED>
Retrieving package ghostscript-omni-8.62-61.12.i586 (79/957), 5.3 M (60.5 M unpacked)
Retrieving: ghostscript-omni-8.62-61.12.i586.rpm [done (707.8 K/s)]
Installing: ghostscript-omni-8.62-61.12 [done]
Retrieving package spandsp-devel-0.0.5pre4-57.5.x86_64 (80/957), 967.0 K (10.7 M unpacked)
Retrieving: spandsp-devel-0.0.5pre4-57.5.x86_64.rpm [done (185.1 K/s)]
Installing: spandsp-devel-0.0.5pre4-57.5 [error]
Installation of spandsp-devel-0.0.5pre4-57.5 failed:
(with --nodeps --force) Error: Subprocess failed. Error: RPM failed:    package spandsp-devel-0.0.5pre4-57.5.x86_64 is intended for a x86_64 architecture


Abort, retry, ignore? [A/r/i]: a
Problem occured during or after installation or removal of packages:
rpmdb2solv -r '/' -p '/etc/products.d' '/var/cache/zypp/solv/@System/solv'  > '/var/cache/zypp/solv/@System/solvUTkChm'
     rpmdb2solv: error while loading shared libraries: librpmdb-4.4.so: cannot open shared object file: No such file or directory

Please see the above error message for a hint.

I can manually download and install the x86_64 files as below, but I have masses of packages that are unintentionally i586. 
No warnings of architecture changes before I reply "YES" to start the update.
barrabas:~ # file /bin/rpm
/bin/rpm: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), stripped
barrabas:~ # rpm -Uvh --nodeps --force --ignorearch rpm-4.4.2.3-10.2.x86_64.rpm
Preparing...                ########################################### [100%]
   1:rpm                    ########################################### [100%]
Updating etc/sysconfig/services...
Starting SuSEconfig, the SuSE Configuration Tool...
Running module permissions only
Reading /etc/sysconfig and updating the system...
Executing /sbin/conf.d/SuSEconfig.permissions...
Checking permissions and ownerships - using the permissions files
        /etc/permissions
Comment 1 Sid Boyce 2008-11-04 22:10:30 UTC
#  o /etc/products.d/openSUSE.prod
<?xml version="1.0" encoding="UTF-8"?>
<product id="openSUSE" schemeversion="0">
  <vendor>openSUSE Build Service</vendor>
  <name>openSUSE</name>
  <version>11.1</version>
  <release>0</release>
  <productline>openSUSE</productline>
  <register>
    <target>openSUSE-11.1-x86_64</target>
    <release></release>
  </register>
  <updaterepokey>000000000</updaterepokey>
  <summary>openSUSE</summary>
  <description>openSUSE is a distribution by the openSUSE.org project.</description>
  <linguas>
    <language>cs</language>
    <language>da</language>
    <language>de</language>
    <language>en</language>
    <language>en_GB</language>
    <language>en_US</language>
    <language>es</language>
    <language>fi</language>
    <language>fr</language>
    <language>hu</language>
    <language>it</language>
    <language>ja</language>
    <language>nb</language>
    <language>nl</language>
    <language>pl</language>
    <language>pt</language>
    <language>pt_BR</language>
    <language>ru</language>
    <language>sv</language>
    <language>zh</language>
    <language>zh_CN</language>
    <language>zh_TW</language>
  </linguas>
  <urls>
    <url name="releasenotes">http://www.suse.com/relnotes/i386/openSUSE/11.0.42/release-notes-openSUSE.rpm</url>
    <url name="smolt">http://smolt.opensuse.org/register.pl</url>
    <url name="register">http://register.novell.com/</url>
  </urls>
  <buildconfig producttheme="openSUSE" betaversion="Beta 4">
    <allowresolving>false</allowresolving>
    <packagemanager>zypper</packagemanager>
  </buildconfig>
  <installconfig defaultlang="en_US" datadir="suse" descriptiondir="suse/setup/descr">
    <releasepackage name="openSUSE-release" flag="EQ" version="11.1" />
    <distribution>openSUSE</distribution>
  </installconfig>
  <runtimeconfig />
</product>
Comment 2 Stefan Schubert 2008-11-06 15:31:11 UTC
I think it is a duplicate bug which we have fixed yesterday.
Thank you for the report :-)

*** This bug has been marked as a duplicate of bug 441004 ***