LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 10-07-2008, 03:02 PM   #1
zimon
Member
 
Registered: Sep 2004
Posts: 38

Rep: Reputation: 16
Thumbs down Yum update conflicts when there is both i386 and x86_64 rpm packages installed.


I may have found the solution already, but Is there some easier way of doing the same?

Is there any way to tell yum to automatically ignore or prefer files coming from x86_64 rpm packages over i386 packages, if both should be installed but both have same == conflicting files?

Also in the future, the system is unable unattentively update even critical packages, because there will be conflicts.

The story
Upgrading from Fedora core 6 to fc9.

Lots of conflicts when doing the "yum update" after the upgrade with the "Fedora 9 X86_64"-install-DVD has been done.

The problem comes from the fact there is both x86_64 and i386 rpm-packages installed on the system and some package, say somepackage-2.x86_64.rpm and somepackage-2.i386.rpm both have same files in them, like configuration files, man pages and so on.

Googled around, checked yum FAQ and yum bugzilla, but the solutions all need lots of handwork. :-(
Would have filed a bug in yum bugzilla, but they have made it difficult.

What helps abit, is to have
Code:
%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}
...in /etc/rpm/macros so when trying to find which rpm files conflic, rpm and yum programs will tell the architecture with the package name. (i385/x86_64)

So instead of telling:
Quote:
86 conflicts with file from package pam-1.0.1-2.fc9
file /usr/share/man/man8/pam_selinux.8.gz from install of pam-1.0.1-4.fc9 conflicts with file from package pam-1.0.1-2.fc9
....it will tell:
Quote:
86 conflicts with file from package pam-1.0.1-2.fc9.x86_64
file /usr/share/man/man8/pam_selinux.8.gz from install of pam-1.0.1-4.fc9.i386 conflicts with file from package pam-1.0.1-2.fc9.x86_64
First I tried to "yum remove" the conflicting i386-packages, but it would had needed lots of handwork and besides, I will need also those i386-libraries because some programs are not compiled or even compatible with x86_64; say Firefox (i.e. Flash-plugin, java-plugin), matlab student version, and some other programs.

So what I did, was manually install the rpm packages yum had retrieved from the yum repositories:
Quote:
# cd /var/cache/yum/updates-newkey/packages/
# rpm -Uvh --force *.rpm
.....(and the same thing for other package-directories under /var/cache/yum/ )
Or if one is brave enough (and is sure what is doing):
Quote:
# yum clean packages
# yum -y update # will fail with many errors
# find /var/cache/yum/ -type f -name *.rpm | xargs rpm -Uvh --force
The error log and some of the conflicts which I got when doing yum update:
Quote:
# yum -y update

Loaded plugins: refresh-packagekit
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package qt-x11.x86_64 1:4.4.1-2.fc9 set to be updated
---> Package perl-libwww-perl.noarch 0:5.814-3.fc9 set to be updated
---> Package system-config-network.noarch 0:1.5.10-1.fc9 set to be updated
---> Package authconfig.x86_64 0:5.4.4-1.fc9 set to be updated
---> Package nscd.x86_64 0:2.8-8 set to be updated

.......(had to be clipped so it is not too long for linuxquestions.org)

---> Package gnome-games.x86_64 1:2.22.3-1.fc9 set to be updated
---> Package udev.x86_64 0:124-2.fc9 set to be updated
--> Running transaction check
---> Package ntp.x86_64 0:4.2.4p4-7.fc9 set to be updated
---> Package NetworkManager.x86_64 1:0.7.0-0.11.svn4022.4.fc9 set to be updated
---> Package html2ps.noarch 0:1.0-0.1.b5.fc9 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
NetworkManager-glib x86_64 1:0.7.0-0.11.svn4022.4.fc9 updates-newkey 148 k
replacing NetworkManager.i386 1:0.7.0-0.9.3.svn3623.fc9

kdelibs3 x86_64 3.5.10-1.fc9 updates-newkey 18 M
replacing crystalsvg-icon-theme.x86_64 4.0.3-3.fc9

kernel x86_64 2.6.26.5-45.fc9 updates-newkey 19 M
ntp-perl x86_64 4.2.4p4-7.fc9 updates-newkey 21 k
replacing ntp.x86_64 4.2.4p4-6.fc9

system-config-firewall noarch 1.2.10-1.fc9 updates-newkey 508 k
replacing system-config-securitylevel.x86_64 1.6.27-3

xorg-x11-drv-synaptics x86_64 0.15.0-3.fc9 updates-newkey 50 k
replacing synaptics.x86_64 0.14.6-7.fc9

Updating:
MySQL-python x86_64 1.2.2-7.fc9 updates-newkey 97 k
NetworkManager x86_64 1:0.7.0-0.11.svn4022.4.fc9 updates-newkey 818 k
NetworkManager-glib i386 1:0.7.0-0.11.svn4022.4.fc9 updates-newkey 146 k
NetworkManager-gnome x86_64 1:0.7.0-0.11.svn4022.4.fc9 updates-newkey 338 k
PolicyKit x86_64 0.8-3.fc9 updates-newkey 166 k
PyOpenGL noarch 3.0.0-0.8.b6.fc9 updates-newkey 1.3 M
a2ps x86_64 4.14-5.fc9 updates-newkey 1.3 M
alsa-lib i386 1.0.17-2.fc9 updates-newkey 411 k
alsa-lib-devel x86_64 1.0.17-2.fc9 updates-newkey 994 k
alsa-utils x86_64 1.0.17-2.fc9 updates-newkey 1.0 M
anacron x86_64 2.3-61.fc9 updates-newkey 40 k
arts x86_64 8:1.5.10-1.fc9 updates-newkey 1.2 M
at x86_64 3.1.10-24.fc9 updates-newkey 61 k
audit-libs-python x86_64 1.7.5-1.fc9 updates-newkey 77 k
authconfig x86_64 5.4.4-1.fc9 updates-newkey 470 k
authconfig-gtk x86_64 5.4.4-1.fc9 updates-newkey 48 k
autofs x86_64 1:5.0.3-15 updates-newkey 953 k
banshee x86_64 1.2.1-2.fc9 updates-newkey 2.8 M
bind x86_64 32:9.5.0-35.P2.fc9 updates-newkey 1.6 M
bind-utils x86_64 32:9.5.0-35.P2.fc9 updates-newkey 198 k
bluez-gnome x86_64 0.26-1.fc9 updates-newkey 228 k
bluez-utils x86_64 3.35-5.fc9 updates-newkey 492 k
control-center x86_64 1:2.22.2.1-1.fc9 updates-newkey 2.7 M
cronie x86_64 1.0-7.fc9 updates-newkey 73 k
cups x86_64 1:1.3.8-2.fc9 updates-newkey 3.6 M
curl x86_64 7.18.2-6.fc9 updates-newkey 155 k
cvs x86_64 1.11.22-14.fc9 updates-newkey 743 k
cyrus-sasl x86_64 2.1.22-15.fc9 updates-newkey 80 k
cyrus-sasl-devel x86_64 2.1.22-15.fc9 updates-newkey 352 k
dbus-glib-devel x86_64 0.74-8.fc9 updates-newkey 40 k
dbus-glib-devel i386 0.74-8.fc9 updates-newkey 40 k
dbus-python x86_64 0.83.0-2.fc9 updates-newkey 222 k
dhclient x86_64 12:4.0.0-18.fc9 updates-newkey 308 k
docbook-style-xsl noarch 1.73.2-10.fc9 updates-newkey 2.9 M
docbook-utils noarch 0.6.14-14.fc9 updates-newkey 69 k
driconf noarch 0.9.1-8.fc9 updates-newkey 157 k
eclipse-platform x86_64 1:3.3.2-12.fc9 updates-newkey 33 M
eel2 x86_64 2.22.2-1.fc9 updates-newkey 272 k
eel2-devel x86_64 2.22.2-1.fc9 updates-newkey 48 k
ekiga x86_64 2.0.12-2.fc9 updates-newkey 7.2 M

....(clipped) ....

xorg-x11-server-Xorg x86_64 1.5.0-2.fc9 updates-newkey 1.5 M
xorg-x11-xinit x86_64 1.0.9-1.fc9 updates-newkey 41 k
yum noarch 3.2.19-3.fc9 updates-newkey 833 k
yum-utils noarch 1.1.16-1.fc9 updates-newkey 67 k
Installing for dependencies:
html2ps noarch 1.0-0.1.b5.fc9 updates-newkey 92 k

Transaction Summary
=============================================================================
Install 7 Package(s)
Update 219 Package(s)
Remove 0 Package(s)

Total size: 355 M
Total download size: 283 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
file /etc/alsa/alsa.conf from install of alsa-lib-1.0.17-2.fc9.i386 conflicts with file from package alsa-lib-1.0.16-3.fc9.x86_64
file /etc/alsa/cards/HDA-Intel.conf from install of alsa-lib-1.0.17-2.fc9.i386 conflicts with file from package alsa-lib-1.0.16-3.fc9.x86_64
file /etc/alsa/cards/NFORCE.conf from install of alsa-lib-1.0.17-2.fc9.i386 conflicts with file from package alsa-lib-1.0.16-3.fc9.x86_64
file /etc/alsa/cards/PC-Speaker.conf from install of alsa-lib-1.0.17-2.fc9.i386 conflicts with file from package alsa-lib-1.0.16-3.fc9.x86_64
file /usr/share/man/man5/ldap.conf.5.gz from install of openldap-2.4.10-1.fc9.i386 conflicts with file from package openldap-2.4.8-3.fc9.x86_64
file /usr/share/man/man5/ldif.5.gz from install of openldap-2.4.10-1.fc9.i386 conflicts with file from package openldap-2.4.8-3.fc9.x86_64
file /usr/share/doc/pam-1.0.1/Linux-PAM_SAG.txt from install of pam-1.0.1-4.fc9.i386 conflicts with file from package pam-1.0.1-2.fc9.x86_64
file /usr/share/doc/pam-1.0.1/html/sag-pam_namespace.html from install of pam-1.0.1-4.fc9.i386 conflicts with file from package pam-1.0.1-2.fc9.x86_64
file /usr/share/doc/pam-1.0.1/html/sag-pam_selinux.html from install of pam-1.0.1-4.fc9.i386 conflicts with file from package pam-1.0.1-2.fc9.x86_64
file /usr/share/doc/pam-1.0.1/txts/README.pam_selinux from install of pam-1.0.1-4.fc9.i386 conflicts with file from package pam-1.0.1-2.fc9.x86_64
file /usr/share/man/man5/namespace.conf.5.gz from install of pam-1.0.1-4.fc9.i386 conflicts with file from package pam-1.0.1-2.fc9.x86_64
file /usr/share/man/man8/pam_namespace.8.gz from install of pam-1.0.1-4.fc9.i386 conflicts with file from package pam-1.0.1-2.fc9.x86_64
file /usr/share/man/man8/pam_selinux.8.gz from install of pam-1.0.1-4.fc9.i386 conflicts with file from package pam-1.0.1-2.fc9.x86_64

Error Summary
-------------

Last edited by zimon; 10-09-2008 at 06:07 AM. Reason: clipped the log abit and made some improvements
 
Old 10-07-2008, 04:57 PM   #2
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL 5
Posts: 220

Rep: Reputation: 31
I had this figured out before. I was trying to get a pure 64bit system. I believe I added the below to the yum.conf. However, even a purely 64bit system still needs 32bit libraries. What I did ultimately was a clean install with the base minimal packages. Then I removed all 32 bit packages and added the exclude to my yum.conf then tried to install the 64 bit versions of what I removed. It took some effort but I got it working. I realized it was more of a headached than it was worth later on when I could do flash or many other things due to the lack of 64bit support.

exclude=*.i386

good luck!
 
Old 10-09-2008, 06:30 AM   #3
zimon
Member
 
Registered: Sep 2004
Posts: 38

Original Poster
Rep: Reputation: 16
conflicting text files from same packages of different architectures

Quote:
Originally Posted by cuco76 View Post
Then I removed all 32 bit packages and added the exclude to my yum.conf then tried to install the 64 bit versions of what I removed.
...
more of a headached than it was worth later on when I could do flash or many other things due to the lack of 64bit support.

exclude=*.i386
Yep, that is why I do not want to remove the 32 bit packages, because it is a headache to use 64bit Firefox when plugins are not working (and nspluginwrapper has SIGSEGVs too often).
Also I need to run 32bit Matlab in my system.

Would think this is indeed an old problem which would had been solved already in rpm programs.

Say, if rpm/yum would tolerate collides in multiple packages of same name, but just with different architecture suffixes. (.i386 and .x86_64). At least for files which are marked as document or configuration files in the rpm SPEC-file.

I know there is a problem because some semantically exact same configuration and document files can have automatically created comments by compiler version and platform. Therefore probably the mechanism would have to be optional and in some configuration file in /etc/rpm/ it should be told which architecture text-files are preferred if they collide and have a different checksum, and which ones are just renamed.

i.e. foobar-2.i386.rpm and foobar-2.x86_64.rpm have both a file /etc/foobar.conf
IF the checksums of foobar.conf files differs, consult /etc/rpm/arch_conflicts.conf and see what to do when there is a conflict; for example save /etc/foobar.conf as it is from x86_64 package, but from i386 package rename it to /etc/foobar.conf.i386.rpmconflict
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
# yum --enablerepo=updates-testing update ./kdelibs-4.0.5-2.fc9.i386.rpm 'kde*' cfo Linux - Newbie 2 06-17-2008 04:08 PM
Is it possible to building i386 rpm on x86_64 system? MikeyCarter Linux - Software 2 06-02-2008 03:41 PM
How does yum (or rpm or other pm) update/upgrade in use packages engineman Linux - Software 2 09-26-2007 12:06 PM
I386 packages messing up x86_64 install? cuco76 Fedora - Installation 3 04-13-2007 01:29 PM
vte-0.11.10-1.i386.rpm conflicts its older version and gnome-terminal sybatter Linux - Software 0 12-06-2003 07:47 PM


All times are GMT -5. The time now is 01:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration