LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Depency problems when updating system (https://www.linuxquestions.org/questions/fedora-35/depency-problems-when-updating-system-527417/)

Micro420 02-10-2007 05:24 PM

Dependency problems when updating system
 
I ran the FC6 updater that is on my desktop. Told me I had 71 updates. I clicked on it, told it to apply the updates, and then I get:
Code:

Unable to resolve dependencies for some packages selected for installation:

elfutils-libels conflicts with blah blah blah blah blah

How do I fix this? Never understood the RPM system and why it rarely works. If it knows what the problem is, why can't it fix it?

reddazz 02-10-2007 05:32 PM

That error is more to do with mirrors that have not synced properly than rpm itself although at times badly built rpms can cause similar problems. What you need to do is use the exclude option for yum, so that the problematic package is not upgraded e.g.
Code:

#yum upgrade --exclude=somepackage
Alternatively, if you are using the GUI updater, just deselect the problematic packages and then try to upgrade them again after a few hours.

Lenard 02-10-2007 05:34 PM

Since your to lazy to report the actual errors or any useful related information, my wild in the dark guess is you have a mixed mode installation (32 and 64-bit apps and libs). A quick check using your "reported" error;

$ rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" elfutils-libs
elfutils-libs-0.125-1.fc6.x86_64
elfutils-libs-0.125-1.fc6.i386


Break the updates into smaller chunks, since your have and issue with elfutils-libs (note the correct package name) try just updating this;

yum update elfutils-libs

Micro420 02-10-2007 05:59 PM

Okay, I did the exclude and the rest of the packages have updated correctly except this one elfutils. Here is the error as requested by Lenard:

Quote:

Error: elfutils-libelf conflicts with elfutils-libelf-devel > 0.123-1.fc6
Error: elfutils-libelf conflicts with elfutils > 0.123-1.fc6
Error: elfutils-libs conflicts with elfutils > 0.123-1.fc6
Code:

rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" elfutils-libs
elfutils-libs-0.123-1.fc6.i386
elfutils-libs-0.125-1.fc6.i386

Now what confuses me more is that this is a pretty fresh install of Fedora Core 6 that has been sitting on my hard drive since FC6 first came out. Never really did much with it or touched it, yet it somehow hosed itself with its own dependency problems. Is this common with Fedora Core??

Lenard 02-10-2007 06:11 PM

Please run this rpm command, it will assist in the resolution of this issue;

rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" 'elfutils*' | sort

Micro420 02-10-2007 06:21 PM

This is what I get:

elfutils-0.123-1.fc6.i386
elfutils-libelf-0.123-1.fc6.i386
elfutils-libelf-0.125-1.fc6.i386
elfutils-libelf-devel-0.123-1.fc6.i386
elfutils-libs-0.123-1.fc6.i386
elfutils-libs-0.125-1.fc6.i386

Lenard 02-10-2007 06:36 PM

OK, it looks like you can resolve this issue by hand. Download the four elfutils rpms from Fedora Updates directly into a common location where they are the only rpm packages.

http://download.fedora.redhat.com/pu...pdates/6/i386/

Then as root type something like;

rpm -Uvh elfutils*.rpm --force

Normally it is not a good idea to use the force switch, but in this case it is appropriate to use. You have both older and newer versions of some elfutils rpm packages installed, this will re-install the newer versions and remove the older at the same time.


Why this happened is beyond me, but this does happen when yum (and the related rpm packages) are updated at the same time as other packages. In the future if you happen to notice any yum updates it would be a good idea to first update yum first then the rest;

yum update yum
yum update

.

Junior Hacker 02-10-2007 07:16 PM

Another popular way is to ask yum to un-install offending packages, it will remove anything associated (dependencies). Then turn around and tell yum to install that package and it will install the newer with dependencies.

yum remove packagename

yum install packagename

Here I would go for elfutils-libelf-devel, or elfutils

Micro420 02-10-2007 09:09 PM

Quote:

Originally Posted by Junior Hacker
Another popular way is to ask yum to un-install offending packages, it will remove anything associated (dependencies). Then turn around and tell yum to install that package and it will install the newer with dependencies.

yum remove packagename

yum install packagename

Here I would go for elfutils-libelf-devel, or elfutils

Uninstalling and reinstalling the elfutils still gives me errors.
Quote:

Originally Posted by Lenard
OK, it looks like you can resolve this issue by hand. Download the four elfutils rpms from Fedora Updates directly into a common location where they are the only rpm packages.

http://download.fedora.redhat.com/pu...pdates/6/i386/

Then as root type something like;

rpm -Uvh elfutils*.rpm --force

I downloaded each of those elfutils RPM's into a directory. When I run your command to force it to install and upgrade, it still won't let me! Still gives me dependency conflicts, even with the --force option!
Code:

[root@localhost elfutils]# ls
elfutils-0.125-1.fc6.i386.rpm
elfutils-devel-0.125-1.fc6.i386.rpm
elfutils-devel-static-0.125-1.fc6.i386.rpm
elfutils-libelf-0.125-1.fc6.i386.rpm
elfutils-libelf-devel-0.125-1.fc6.i386.rpm
elfutils-libelf-devel-static-0.125-1.fc6.i386.rpm
[root@localhost elfutils]# rpm -Uvh --force elfutils*.rpm
error: Failed dependencies:
        elfutils > 0.123-1.fc6 conflicts with elfutils-libs-0.123-1.fc6.i386
        elfutils-devel > 0.123-1.fc6 conflicts with elfutils-libs-0.123-1.fc6.i386
        elfutils-libs < 0.125-1.fc6 conflicts with elfutils-libelf-0.125-1.fc6.i386
        elfutils-libelf = 0.123-1.fc6 is needed by (installed) elfutils-libs-0.123-1.fc6.i386


Now what do I do?

Junior Hacker 02-10-2007 09:42 PM

Have you tried removeing both elfutils, elfutils-devel (if installed) & re-installing, because some of the errors relate to elfutils-devel.

Junior Hacker 02-10-2007 09:51 PM

Make sure elfutils-libs, elfutils-libelf appear in the list of dependencies getting removed also, if not you may need to remove them also. Best to put them all in one command.

Micro420 02-10-2007 10:04 PM

When I tried removing elfutils, it told me I had to remove 150+ dependencies, ranging from X server to OpenOffice. It sounds like if I remove elfutils, I will hose my system. I'd be better off reinstalling. I'm going to wait to hear back from others and if nobody has a solution, then I will have to reinstall. Such a shame because I need to learn RedHat/Fedora Core for my Linux+ certification which I may take. I really hate the whole Red Hat Package Manager and never understood it. I am more comfortable with Ubuntu and their 'aptitude' for installing programs

Junior Hacker 02-10-2007 10:10 PM

These are the ones I have listed in /var/log/rpmpkgs (installed)

elfutils-0.125-1.fc6.x86_64.rpm
elfutils-libelf-0.125-1.fc6.i386.rpm
elfutils-libelf-0.125-1.fc6.x86_64.rpm
elfutils-libelf-devel-0.125-1.fc6.x86_64.rpm
elfutils-libelf-devel-static-0.125-1.fc6.x86_64.rpm
elfutils-libs-0.125-1.fc6.x86_64.rpm

I have 64bit, I do not have elfutils-devel installed, I noticed you have two versions of elfutils-libelf and elfutils-libs, is this list from the cache or what is installed? To me all you need to do is remove the two (123) presumably older ones before upgrading the elfutils & elfutils-libelf-devel to version (125) based on what my packages are (all 125)

elfutils-0.123-1.fc6.i386
elfutils-libelf-0.123-1.fc6.i386
elfutils-libelf-0.125-1.fc6.i386
elfutils-libelf-devel-0.123-1.fc6.i386
elfutils-libs-0.123-1.fc6.i386
elfutils-libs-0.125-1.fc6.i386

What's funny is that the last error you showed has 123 conflicting with 123 and 125 conflicting with 125.

Junior Hacker 02-10-2007 10:17 PM

You may already know, but there is a list in /root called install.log of all packages installed in the order they were installed if the /var/log/rpmpkgs list is not there as I believe it shows up after first instance of an update and is also updated once a week. The GUI software updater is good for showing all available, installed, not installed on the list tab. Just put the radio button on "All packages".

EDIT: re-installing probably won't make a difference. Never had such experiences with Mandrake/Mandriva which is also Red Hat based, I find their rpm extension "urpmi" is fairly flawless compared to "yum".

Micro420 02-10-2007 11:16 PM

Here's what happens when I do yum remove elfutils-devel elfutils-libelf
Code:

Loading "installonlyn" plugin
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
Dependencies Resolved

=============================================================================
 Package                Arch      Version          Repository        Size
=============================================================================
Removing:
 elfutils-libelf        i386      0.125-1.fc6      installed          80 k
 elfutils-libelf        i386      0.123-1.fc6      installed          80 k
Removing for dependencies:
 ImageMagick            i386      6.2.8.0-3.fc6.1  installed          11 M
 beagle                  i386      0.2.13-1.fc6    installed        3.3 M
 beagle-evolution        i386      0.2.13-1.fc6    installed          66 k
 beagle-gui              i386      0.2.13-1.fc6    installed        469 k
 chkfontpath            i386      1.10.1-1.1      installed          13 k
 compiz                  i386      0.0.13-0.32.20060817git.fc6  installed        1.9 M
 elfutils                i386      0.123-1.fc6      installed        340 k
 elfutils-libelf-devel  i386      0.123-1.fc6      installed        216 k
 elfutils-libs          i386      0.123-1.fc6      installed        208 k
 elfutils-libs          i386      0.125-1.fc6      installed        209 k
 eog                    i386      2.16.0.1-2.fc6  installed        1.8 M
 evince                  i386      0.6.0-6.fc6      installed        2.7 M
 evolution              i386      2.8.2.1-3.fc6    installed          36 M
 evolution-sharp        i386      0.11.1-10.fc6    installed        500 k
 firstboot              noarch    1.4.23-1        installed        933 k
 firstboot-tui          noarch    1.4.23-1        installed        621 k
 gedit                  i386      1:2.15.9-1.fc6  installed          16 M
 ghostscript            i386      8.15.3-3.fc6    installed          18 M
 ghostscript-fonts      noarch    5.50-13.1.1      installed        1.4 M
 gimp                    i386      2:2.2.13-1.fc6  installed          25 M
 gimp-data-extras        noarch    2.0.1-1.1.1      installed        7.6 M
 gimp-help              noarch    2-0.1.0.10.1.1  installed          64 M
 gimp-print              i386      4.2.7-23.fc6    installed        4.1 M
 gimp-print-plugin      i386      4.2.7-23.fc6    installed          95 k
 gimp-print-utils        i386      4.2.7-23.fc6    installed          35 k
 gnome-python2-gnomeprint  i386      2.16.0-1.fc6    installed        427 k
 gnome-python2-gtksourceview  i386      2.16.0-1.fc6    installed        347 k
 gnome-session          i386      2.16.0-7.fc6    installed        1.3 M
 gnome-sharp            i386      2.16.0-1.fc6    installed        1.7 M
 gnome-utils            i386      1:2.16.0-1.fc6  installed        8.5 M
 gnome-volume-manager    i386      2.15.0-4.fc6    installed        1.9 M
 gthumb                  i386      2.7.8-3.fc6      installed        5.6 M
 gtkhtml3                i386      3.12.2-1.fc6    installed        2.8 M
 gtksourceview          i386      1.8.0-1.fc6      installed        1.6 M
 libgnomeprint22        i386      2.12.1-9.fc6    installed        1.3 M
 libgnomeprint22-devel  i386      2.12.1-9.fc6    installed        537 k
 libgnomeprintui22      i386      2.12.1-6        installed        1.0 M
 libgnomeprintui22-devel  i386      2.12.1-6        installed        577 k
 linuxwacom              i386      0.7.4_1-2.1      installed        402 k
 ltrace                  i386      0.5-6.45svn.fc6  installed        145 k
 man                    i386      1.6d-2.fc6      installed        344 k
 openoffice.org-calc    i386      1:2.0.4-5.5.10  installed          19 M
 openoffice.org-core    i386      1:2.0.4-5.5.10  installed        220 M
 openoffice.org-draw    i386      1:2.0.4-5.5.10  installed        2.6 M
 openoffice.org-graphicfilter  i386      1:2.0.4-5.5.10  installed        421 k
 openoffice.org-impress  i386      1:2.0.4-5.5.10  installed        4.2 M
 openoffice.org-math    i386      1:2.0.4-5.5.10  installed        3.2 M
 openoffice.org-writer  i386      1:2.0.4-5.5.10  installed        6.7 M
 openoffice.org-xsltfilter  i386      1:2.0.4-5.5.10  installed        212 k
 pirut                  noarch    1.2.8-1.fc6      installed        934 k
 planner                i386      0.14.2-1.fc6    installed        5.9 M
 policycoreutils        i386      1.34.1-4.fc6    installed        1.4 M
 prelink                i386      0.3.9-2          installed        1.6 M
 redhat-lsb              i386      3.1-11          installed          22 k
 rhpxl                  i386      0.39-2          installed        368 k
 rpm                    i386      4.4.2-32        installed        1.6 M
 rpm-build              i386      4.4.2-32        installed        2.0 M
 rpm-devel              i386      4.4.2-32        installed        3.5 M
 rpm-libs                i386      4.4.2-32        installed        2.0 M
 rpm-python              i386      4.4.2-32        installed        113 k
 selinux-policy          noarch    2.4.6-35.fc6    installed        6.3 M
 selinux-policy-targeted  noarch    2.4.6-35.fc6    installed          17 M
 synaptics              i386      0.14.4-8.fc6    installed        110 k
 system-config-display  noarch    1.0.45-1        installed        749 k
 system-config-network  noarch    1.3.96-1.fc6    installed        2.1 M
 system-config-network-tui  noarch    1.3.96-1.fc6    installed        4.3 M
 system-config-users    noarch    1.2.47-1.fc6    installed        1.3 M
 systemtap              i386      0.5.12-1.fc6    installed        1.7 M
 tomboy                  i386      0.4.1-1.fc6      installed        1.7 M
 urw-fonts              noarch    2.3-6.1.1        installed        5.7 M
 vnc-server              i386      4.1.2-9.fc6      installed        2.5 M
 xorg-x11-drivers        i386      7.1-3            installed          0.0
 xorg-x11-drv-acecad    i386      1.1.0-2.1        installed          12 k
 xorg-x11-drv-aiptek    i386      1.0.1-2          installed          28 k
 xorg-x11-drv-apm        i386      1.1.1-2.1        installed        142 k
 xorg-x11-drv-ark        i386      0.6.0-2.1        installed          18 k
 xorg-x11-drv-ast        i386      0.81.0-3        installed          43 k
 xorg-x11-drv-ati        i386      6.6.3-1.fc6      installed        777 k
 xorg-x11-drv-calcomp    i386      1.1.0-1.1        installed          14 k
 xorg-x11-drv-chips      i386      1.1.1-2.1        installed        151 k
 xorg-x11-drv-cirrus    i386      1.1.0-2.fc6      installed          76 k
 xorg-x11-drv-citron    i386      2.2.0-1.1        installed          51 k
 xorg-x11-drv-cyrix      i386      1.1.0-4          installed          28 k
 xorg-x11-drv-digitaledge  i386      1.1.0-1.1        installed          14 k
 xorg-x11-drv-dmc        i386      1.1.0-2          installed          12 k
 xorg-x11-drv-dummy      i386      0.2.0-2.1        installed          14 k
 xorg-x11-drv-dynapro    i386      1.1.0-2          installed          11 k
 xorg-x11-drv-elo2300    i386      1.1.0-1.1        installed          12 k
 xorg-x11-drv-elographics  i386      1.1.0-1.1        installed          16 k
 xorg-x11-drv-evdev      i386      1.1.2-2.1        installed          35 k
 xorg-x11-drv-fbdev      i386      0.3.0-2          installed          20 k
 xorg-x11-drv-fpit      i386      1.1.0-1.1        installed          12 k
 xorg-x11-drv-glint      i386      1.1.1-4.1        installed        275 k
 xorg-x11-drv-hyperpen  i386      1.1.0-2          installed          17 k
 xorg-x11-drv-i128      i386      1.2.0-4          installed          60 k
 xorg-x11-drv-i740      i386      1.1.0-2.1        installed          46 k
 xorg-x11-drv-i810      i386      1.6.5-10.fc6    installed        594 k
 xorg-x11-drv-jamstudio  i386      1.1.0-1.1        installed        8.8 k
 xorg-x11-drv-joystick  i386      1.1.0-1.1        installed        7.3 k
 xorg-x11-drv-keyboard  i386      1.1.0-2.1        installed          27 k
 xorg-x11-drv-magellan  i386      1.1.0-1.1        installed          11 k
 xorg-x11-drv-magictouch  i386      1.0.0.5-2.1      installed        3.0 k
 xorg-x11-drv-mga        i386      1.4.5-2.fc6      installed        165 k
 xorg-x11-drv-microtouch  i386      1.1.0-1.1        installed          16 k
 xorg-x11-drv-mouse      i386      1.2.1-1.fc6      installed          48 k
 xorg-x11-drv-mutouch    i386      1.1.0-2          installed          17 k
 xorg-x11-drv-neomagic  i386      1.1.1-2.1        installed          75 k
 xorg-x11-drv-nsc        i386      2.8.1-2.1        installed        322 k
 xorg-x11-drv-nv        i386      1.2.0-4.fc6      installed        151 k
 xorg-x11-drv-palmax    i386      1.1.0-1.1        installed          14 k
 xorg-x11-drv-penmount  i386      1.1.0-2.1        installed          12 k
 xorg-x11-drv-rendition  i386      4.1.0-3.1        installed        105 k
 xorg-x11-drv-s3        i386      0.5.0-1.fc6      installed          61 k
 xorg-x11-drv-s3virge    i386      1.9.1-2.1        installed          80 k
 xorg-x11-drv-savage    i386      2.1.1-5.fc6      installed        141 k
 xorg-x11-drv-siliconmotion  i386      1.4.1-2.1        installed          88 k
 xorg-x11-drv-sis        i386      0.9.1-7          installed        599 k
 xorg-x11-drv-sisusb    i386      0.8.1-4.1        installed          77 k
 xorg-x11-drv-spaceorb  i386      1.1.0-1.1        installed          10 k
 xorg-x11-drv-summa      i386      1.1.0-1.1        installed          17 k
 xorg-x11-drv-tdfx      i386      1.3.0-2.fc6      installed          69 k
 xorg-x11-drv-trident    i386      1.2.3-1.fc6      installed        163 k
 xorg-x11-drv-tseng      i386      1.1.0-3.1        installed          52 k
 xorg-x11-drv-ur98      i386      1.1.0-1.1        installed          14 k
 xorg-x11-drv-v4l        i386      0.1.1-4          installed          15 k
 xorg-x11-drv-vesa      i386      1.2.1-4          installed          25 k
 xorg-x11-drv-vga        i386      4.1.0-2.1        installed          22 k
 xorg-x11-drv-via        i386      0.2.1-7          installed        354 k
 xorg-x11-drv-vmmouse    i386      12.4.0-2.1      installed          18 k
 xorg-x11-drv-vmware    i386      10.13.0-2.1      installed          41 k
 xorg-x11-drv-void      i386      1.1.0-3.1        installed        7.3 k
 xorg-x11-drv-voodoo    i386      1.1.0-3.1        installed          28 k
 xorg-x11-fonts-base    noarch    7.1-2            installed        4.2 M
 xorg-x11-server-Xorg    i386      1.1.1-47.5.fc6  installed        8.2 M
 xorg-x11-xfs            i386      1:1.0.2-3.1      installed        110 k
 xsane-gimp              i386      0.991-4.fc6      installed        617 k
 yum                    noarch    3.0.3-1.fc6      installed        1.8 M
 yum-updatesd            noarch    3.0.3-1.fc6      installed        3.9 k

Transaction Summary
=============================================================================
Install      0 Package(s)       
Update      0 Package(s)       
Remove    140 Package(s)       

Is this ok [y/N]:

This looks bad. That's like the whole system. I will do a reinstall and see if this problem occurs again. Will report back later.

Is Mandriva like Red Hat/Fedora? I have Mandriva 2007, just never got around to using it.


All times are GMT -5. The time now is 05:48 AM.