Error in yum update transaction

Place to discuss Fedora and/or Red Hat
Post Reply
User avatar
Basher52
guru
guru
Posts: 913
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Error in yum update transaction

Post by Basher52 » Sat Oct 18, 2008 1:11 pm

Right now when I tried to update with the latest patches.
I got an error :( and need help

Code: Select all

Install     10 Package(s)         
Update      48 Package(s)         
Remove       0 Package(s)         

Total size: 221 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
  file /etc/avahi/avahi-autoipd.action from install of avahi-autoipd-0.6.21-8.fc8.i386 conflicts with file from package avahi-0.6.16-4.fc6.i386
  file /usr/sbin/avahi-autoipd from install of avahi-autoipd-0.6.21-8.fc8.i386 conflicts with file from package avahi-0.6.16-4.fc6.i386
  file /usr/share/man/man8/avahi-autoipd.8.gz from install of avahi-autoipd-0.6.21-8.fc8.i386 conflicts with file from package avahi-0.6.16-4.fc6.i386

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

[root@ftp ~]# rpm -e avahi-0.6.16-4.fc6.i386
error: %postun(avahi-0.6.16-4.fc6.i386) scriptlet failed, exit status 1
[root@ftp ~]# rpm -e avahi-0.6.16-4.fc6.i386
error: %postun(avahi-0.6.16-4.fc6.i386) scriptlet failed, exit status 1

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Sun Oct 19, 2008 6:19 pm

This command should remove the old package:

# rpm -e --noscripts avahi-0.6.16-4.fc6.i386

User avatar
Basher52
guru
guru
Posts: 913
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Post by Basher52 » Sun Oct 19, 2008 11:26 pm

thx that did it :)

Code: Select all

--noscripts                      do not execute package scriptlet(s)
What is this? does it execute the script when trying to remove it?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Mon Oct 20, 2008 6:23 am

RPMs can have scripts that run before/after they are installed/uninstalled. There was a problem running the script after the uninstall of that RPM so it rolled back and didn't uninstall it. Using the "--noscripts" tells it not to execute those scripts. After you upgrade you could go ahead and reinstall that RPM if you wanted it:

# yum install avahi

User avatar
Basher52
guru
guru
Posts: 913
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Post by Basher52 » Wed Oct 22, 2008 2:37 am

ah OK.

and since the machine seems to work and I have no clue what this package is, I'll leave it for now.

btw, this FC8 is an upgrade from FC6, can there be a lot of packages that won't be upgraded and just left there? (haven't checked tho, but I will)
and if so, why not just remove them if they won't be upgraded(?)


UPDATE:

Avahi is a fully LGPL framework for Multicast DNS Service Discovery
but this really don't mean anything to me lol
and I did a check and i have: avahi-autoipd-0.6.21-8.fc8 already so it's weird that FC6 was still here.


and my lookup for older RPMs

Code: Select all

[root@ftp ~]# rpm -qa|grep -i FC5
[root@ftp ~]# 

[root@ftp ~]# rpm -qa|grep -i FC6
dmidecode-2.7-1.26.1.fc6
keyutils-libs-1.2-2.fc6
xorg-x11-filesystem-7.1-2.fc6
rng-utils-2.0-1.14.1.fc6
rar-3.7.0-0.1.beta1.fc6
libavc1394-0.5.3-1.fc6
keyutils-libs-devel-1.2-2.fc6
[root@ftp ~]# 

[root@ftp ~]# rpm -qa|grep -i FC7
ttmkfdir-3.0.9-24.fc7
libevent-1.3b-1.fc7
cscope-15.5-15.4.fc7
sinjdoc-0.5-4.fc7
xorg-x11-drv-citron-2.2.0-2.fc7
gawk-3.1.5-15.fc7
ethtool-5-1.fc7
indent-2.2.9-16.fc7
xorg-x11-drv-dynapro-1.1.0-3.fc7
words-3.0-12.fc7
libiec61883-1.1.0-1.fc7
zip-2.31-3.fc7
kpartx-0.4.7-11.fc7
xmms-libs-1.2.10-36.fc7
htmlview-4.0.0-3.fc7
xorg-x11-drv-penmount-1.1.0-3.fc7
xorg-x11-drv-microtouch-1.1.0-2.fc7
mktemp-1.5-25.fc7
grep-2.5.1-57.fc7
gdbm-1.8.0-27.fc7
sharutils-4.6.3-1.fc7
libfreebob-1.0.3-1.fc7
gnome-mime-data-2.18.0-2.fc7
xorg-x11-drv-dmc-1.1.0-3.fc7
mailx-8.1.1-46.fc7
gdbm-devel-1.8.0-27.fc7
man-1.6e-3.fc7
bitmap-fonts-0.3-5.1.2.fc7
automake14-1.4p6-15.fc7
[root@ftp ~]# 
This is weird? all these old things, how can they be compatible with FC8?
can I "rpm -e" them all?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Wed Oct 22, 2008 6:34 am

I can think of a few reasons that would keep some packages from being upgraded. One is if you installed the RPMs from a 3rd party repository or from no repository at all, two is if the version in FC8 is not higher than the installed FC6 version and three is if the package has been dropped from FC8. There really should be no compatibility issues as if the RPMs were built right there would have been errors when you did the upgrade.

User avatar
Basher52
guru
guru
Posts: 913
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Post by Basher52 » Wed Oct 22, 2008 1:36 pm

OK, got it
thx

User avatar
cdhgold
administrator
administrator
Posts: 382
Joined: Tue Mar 18, 2003 6:11 pm
Location: Texas

Post by cdhgold » Wed Nov 12, 2008 8:12 am

I'm also getting similar error
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package NetworkManager-glib.i386 1:0.7.0-0.11.svn4022.4.fc8 set to be updated
--> Processing Dependency: NetworkManager = 1:0.7.0-0.11.svn4022.4.fc8 for package: NetworkManager-glib
--> Running transaction check
---> Package NetworkManager.i386 1:0.7.0-0.11.svn4022.4.fc8 set to be updated
--> Processing Dependency: avahi-autoipd for package: NetworkManager
--> Running transaction check
---> Package avahi-autoipd.i386 0:0.6.21-8.fc8 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
NetworkManager-glib i386 1:0.7.0-0.11.svn4022.4.fc8 updates-newkey 142 k
replacing NetworkManager.i386 1:0.7.0-0.6.9.svn3675.fc8

Installing for dependencies:
avahi-autoipd i386 0.6.21-8.fc8 updates-newkey 33 k
Updating for dependencies:
NetworkManager i386 1:0.7.0-0.11.svn4022.4.fc8 updates-newkey 834 k

Transaction Summary
================================================================================
Install 2 Package(s)
Update 1 Package(s)
Remove 0 Package(s)

Total size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
file /etc/avahi/avahi-autoipd.action from install of avahi-autoipd-0.6.21-8.fc8.i386 conflicts with file from package avahi-0.6.17-1.fc7.i386
file /usr/sbin/avahi-autoipd from install of avahi-autoipd-0.6.21-8.fc8.i386 conflicts with file from package avahi-0.6.17-1.fc7.i386

Error Summary
-------------
I do not want to remove the avahi-0.6.17-1.fc7.i386 package cause when i did that it uninstalled a bunch of other packages that took me the better part of a morning to re-install to get my system back working

any suggestions system is FC8 updated from FC6 to FC7 then FC8

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Wed Nov 12, 2008 10:04 am

If you uninstall it with rpm and --nodeps it will only uninstall that one package. After you do the uninstall you could just do the yum install avahi/avahi-autoipd which should install your fc8 version. yum update should not have a dependency issue after that.

User avatar
cdhgold
administrator
administrator
Posts: 382
Joined: Tue Mar 18, 2003 6:11 pm
Location: Texas

Post by cdhgold » Wed Nov 12, 2008 11:50 am

had to do
rpm -e --noscripts --nodeps avahi-0.6.17-1.fc7.i386
followed by
yum install avahi-autoipd-0.6.21-8.fc8.i386
now the network manager update that was pending went smoothly

thanks

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Wed Nov 12, 2008 2:37 pm

cdhgold wrote:had to do
rpm -e --noscripts --nodeps avahi-0.6.17-1.fc7.i386
Oh yeah, that's what this thread actually was about in the beginning. :)

Post Reply