Link to home
Start Free TrialLog in
Avatar of Jason Dupont
Jason Dupont

asked on

Yum installed duplicate packages, now can't remove duplicates

Whenever I do a "yum update", I get a dependency error that cannot be resolved.  It appears that TWO packages of the same name with different versions are installed!  Help - how do I delete only one of the duplicate packages?

When I do a "yum update" the error is as follows:

Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package gnome-python2.x86_64 0:2.16.2-2.fc6 set to be updated
---> Package gnome-python2-gconf.x86_64 0:2.16.2-2.fc6 set to be updated
--> Running transaction check
--> Processing Dependency: gnome-python2 = 2.16.2-1.fc6 for package: gnome-python2-bonobo
--> Processing Dependency: gnome-python2 = 2.16.2-1.fc6 for package: gnome-python2-canvas
--> Processing Dependency: gnome-python2 = 2.16.2-1.fc6 for package: gnome-python2-gnomevfs
--> Finished Dependency Resolution
Error: Missing Dependency: gnome-python2 = 2.16.2-1.fc6 is needed by package gnome-python2-bonobo
Error: Missing Dependency: gnome-python2 = 2.16.2-1.fc6 is needed by package gnome-python2-canvas
Error: Missing Dependency: gnome-python2 = 2.16.2-1.fc6 is needed by package gnome-python2-gnomevfs

If I try to do a "yum remove" with one of the three packages, the following appears.  As you can see, three packages are duplicate installed (with different versions).  Since I cannot uninstall all of the below, how do I get rid of the three duplicate packages: gnome-python2-bonobo, gnome-python2-canvas, gone-python2-nomevfs.



Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Removing:
 gnome-python2-bonobo    x86_64     2.16.2-2.fc6     installed         208 k
 gnome-python2-bonobo    x86_64     2.16.2-1.fc6     installed         208 k
Removing for dependencies:
 alacarte                noarch     0.10.0-1.fc6     installed         604 k
 firstboot               noarch     1.4.23-1         installed         933 k
 gedit                   x86_64     1:2.15.9-1.fc6   installed          15 M
 gnome-applets           x86_64     1:2.16.0.1-12.fc6  installed          33 M
 gnome-python2           x86_64     2.16.2-1.fc6     installed         634 k
 gnome-python2-applet    x86_64     2.16.0-1.fc6     installed          21 k
 gnome-python2-canvas    x86_64     2.16.2-1.fc6     installed          56 k
 gnome-python2-canvas    x86_64     2.16.2-2.fc6     installed          56 k
 gnome-python2-desktop   x86_64     2.16.0-1.fc6     installed         234 k
 gnome-python2-extras    x86_64     2.14.2-9.fc6     installed          62 k
 gnome-python2-gconf     x86_64     2.16.2-1.fc6     installed          88 k
 gnome-python2-gnomeprint  x86_64     2.16.0-1.fc6     installed         448 k
 gnome-python2-gnomevfs  x86_64     2.16.2-2.fc6     installed         181 k
 gnome-python2-gnomevfs  x86_64     2.16.2-1.fc6     installed         181 k
 gnome-python2-gtksourceview  x86_64     2.16.0-1.fc6     installed         363 k
 gnome-python2-libegg    x86_64     2.14.2-9.fc6     installed         126 k
 pirut                   noarch     1.2.8-1.fc6      installed         934 k
 system-config-date      noarch     1.8.8-1.fc6      installed         3.3 M
 system-config-httpd     noarch     5:1.4.1-1.fc6    installed         2.3 M
 system-config-lvm       noarch     1.0.18-1.2.FC6   installed         2.6 M
 system-config-network   noarch     1.3.96-1.fc6     installed         2.1 M

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

Is this ok [y/N]: n
Avatar of cheesygit182
cheesygit182

what distro are you running?
Have you tried uninstalling them with SMART?: http://labix.org/smart

~cheesygit182

Avatar of Jason Dupont

ASKER

I'm using Fedora Core 6.

I have never heard of the smart command (and I can't find it on my system)
sorry, I should have explained fully:
SMART is a package management program that combines most major package management systems, and is very easy to use.
You can download it from here: http://labix.org/smart
I suggest you download/install it, and try removing the package(s) with it. If it doesn't work, at least it will tell you whats wrong.

~cheesygit182
That package requires older .so files - I don't want to downgrade anything.

Other ideas?
I tried to get more detail of the error, and here's what I found (using yum install -d 5 -e 5 gnome-python2-gconf )

yum install -d 5 -e 5 gnome-python2-gconf
Loading "installonlyn" plugin
Running "config" handler for "installonlyn" plugin
Yum Version: 3.0.5
COMMAND: yum -d 5 -e 5
Installroot: /
Ext Commands:

   gnome-python2-gconf
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Setting up Package Sacks
Excluding Packages in global exclude list
Excluding kernel-xen-devel - 2.6.19-1.2911.6.5.fc6.i686
Excluding kernel - 2.6.19-1.2911.6.5.fc6.x86_64
Excluding kernel-headers - 2.6.20-1.2925.fc6.x86_64
Excluding kernel-kdump-devel - 2.6.20-1.2933.fc6.i686
Excluding kernel-kdump - 2.6.20-1.2933.fc6.x86_64
Excluding kernel-xen-devel - 2.6.18-1.2798.fc6.x86_64
Excluding kernel-devel - 2.6.20-1.2925.fc6.x86_64
Excluding kernel-xen - 2.6.20-1.2933.fc6.x86_64
Excluding kernel-xen-devel - 2.6.18-1.2798.fc6.i686
Excluding kernel-kdump-devel - 2.6.18-1.2798.fc6.x86_64
Excluding kernel-debug - 2.6.20-1.2933.fc6.x86_64
Excluding kernel-doc - 2.6.20-1.2925.fc6.noarch
Excluding kernel-kdump - 2.6.19-1.2911.6.5.fc6.x86_64
Excluding kernel-xen - 2.6.19-1.2911.6.5.fc6.x86_64
Excluding kernel-devel - 2.6.20-1.2933.fc6.x86_64
Excluding kernel-doc - 2.6.18-1.2798.fc6.noarch
Excluding kernel-kdump-devel - 2.6.18-1.2798.fc6.i686
Excluding kernel-kdump - 2.6.20-1.2925.fc6.x86_64
Excluding kernel-debug-devel - 2.6.20-1.2933.fc6.x86_64
Excluding kernel - 2.6.18-1.2798.fc6.x86_64
Excluding kernel - 2.6.20-1.2925.fc6.x86_64
Excluding kernel-xen-devel - 2.6.19-1.2911.6.5.fc6.x86_64
Excluding kernel-devel - 2.6.18-1.2798.fc6.x86_64
Excluding kernel-kdump-devel - 2.6.19-1.2911.6.5.fc6.x86_64
Excluding kernel-kdump-devel - 2.6.20-1.2925.fc6.i686
Excluding kernel-devel - 2.6.19-1.2911.6.5.fc6.x86_64
Excluding kernel-headers - 2.6.20-1.2933.fc6.x86_64
Excluding kernel - 2.6.20-1.2933.fc6.x86_64
Excluding kernel-headers - 2.6.19-1.2911.6.5.fc6.x86_64
Excluding kernel-xen - 2.6.18-1.2798.fc6.x86_64
Excluding kernel-devel - 2.6.20-1.2925.fc6.i586
Excluding kernel-debug-devel - 2.6.19-1.2911.6.5.fc6.x86_64
Excluding kernel-devel - 2.6.19-1.2911.6.5.fc6.i586
Excluding kernel-kdump-devel - 2.6.19-1.2911.6.5.fc6.i686
Excluding kernel-devel - 2.6.18-1.2798.fc6.i686
Excluding kernel-doc - 2.6.19-1.2911.6.5.fc6.noarch
Excluding kernel-debug - 2.6.20-1.2925.fc6.x86_64
Excluding kernel-devel - 2.6.20-1.2933.fc6.i586
Excluding kernel-debug-devel - 2.6.20-1.2925.fc6.x86_64
Excluding kernel-xen-devel - 2.6.20-1.2933.fc6.x86_64
Excluding kernel-devel - 2.6.19-1.2911.6.5.fc6.i686
Excluding kernel-kdump-devel - 2.6.20-1.2933.fc6.x86_64
Excluding kernel-headers - 2.6.18-1.2798.fc6.x86_64
Excluding kernel-kdump-devel - 2.6.20-1.2925.fc6.x86_64
Excluding kernel-devel - 2.6.18-1.2798.fc6.i586
Excluding kernel-doc - 2.6.20-1.2933.fc6.noarch
Excluding kernel-devel - 2.6.20-1.2933.fc6.i686
Excluding kernel-devel - 2.6.20-1.2925.fc6.i686
Excluding kernel-kdump - 2.6.18-1.2798.fc6.x86_64
Excluding kernel-xen-devel - 2.6.20-1.2933.fc6.i686
Excluding kernel-debug - 2.6.19-1.2911.6.5.fc6.x86_64
Finished
Reading Local RPMDB
Parsing package install arguments
potential updates :
   gnome-python2-gconf.x86_64 0:2.16.2-2.fc6
Building updates object
Resolving Dependencies
1175887302.08
--> Populating transaction set with selected packages. Please wait.
Adding Package gnome-python2-gconf - 2.16.2-2.fc6.x86_64 in mode u
---> Package gnome-python2-gconf.x86_64 0:2.16.2-2.fc6 set to be updated
--> Running transaction check
# of Deps = 1

Dep Number: 1/1

gnome-python2-gconf requires: gnome-python2 = 2.16.2-2.fc6
--> Processing Dependency: gnome-python2 = 2.16.2-2.fc6 for package: gnome-python2-gconf
Requiring package is from transaction set
Resolving for requiring package: gnome-python2-gconf-2.16.2-2.fc6 in state u
Resolving for requirement: gnome-python2 = 2.16.2-2.fc6
Searching pkgSack for dep: gnome-python2
Potential match for gnome-python2 from gnome-python2 - 2.16.0-1.fc6.x86_64
Potential match for gnome-python2 from gnome-python2 - 2.16.2-2.fc6.x86_64
Matched gnome-python2 - 2.16.2-2.fc6.x86_64 to require for gnome-python2
TSINFO: Marking gnome-python2 - 2.16.2-2.fc6.x86_64 as update for gnome-python2-gconf
processing dep took: 0.269815
miss = 0
conf = 0
CheckDeps = 1
--> Restarting Dependency Resolution with new changes.
---> Loop Number: 2
Restarting Loop
--> Populating transaction set with selected packages. Please wait.
Adding Package gnome-python2 - 2.16.2-2.fc6.x86_64 in mode u
---> Package gnome-python2.x86_64 0:2.16.2-2.fc6 set to be updated
--> Running transaction check
# of Deps = 3

Dep Number: 1/3

gnome-python2-bonobo requires: gnome-python2 = 2.16.2-1.fc6
--> Processing Dependency: gnome-python2 = 2.16.2-1.fc6 for package: gnome-python2-bonobo
Looking for ('gnome-python2', 'EQ', ('0', '2.16.2', '1.fc6')) as a requirement of gnome-python2-bonobo - 2.16.2-1.fc6.x86_64
Requiring package is installed: gnome-python2-bonobo - 2.16.2-1.fc6.x86_64
Resolving for installed requiring package: gnome-python2-bonobo - 2.16.2-1.fc6.x86_64
Resolving for requirement: gnome-python2 = 2.16.2-1.fc6
Potential Provider: gnome-python2.x86_64 0:2.16.2-2.fc6
Mode is u for provider of gnome-python2 = 2.16.2-1.fc6: gnome-python2.x86_64 0:2.16.2-2.fc6
Mode for pkg providing gnome-python2 = 2.16.2-1.fc6: u
Cannot find an update path for dep for: gnome-python2 = 2.16.2-1.fc6
Searching pkgSack for dep: gnome-python2
Potential match for gnome-python2 from gnome-python2 - 2.16.0-1.fc6.x86_64
Potential match for gnome-python2 from gnome-python2 - 2.16.2-2.fc6.x86_64
processing dep took: 0.011593

Dep Number: 2/3

gnome-python2-canvas requires: gnome-python2 = 2.16.2-1.fc6
--> Processing Dependency: gnome-python2 = 2.16.2-1.fc6 for package: gnome-python2-canvas
Looking for ('gnome-python2', 'EQ', ('0', '2.16.2', '1.fc6')) as a requirement of gnome-python2-canvas - 2.16.2-1.fc6.x86_64
Requiring package is installed: gnome-python2-canvas - 2.16.2-1.fc6.x86_64
Resolving for installed requiring package: gnome-python2-canvas - 2.16.2-1.fc6.x86_64
Resolving for requirement: gnome-python2 = 2.16.2-1.fc6
Needed Require has already been looked up, cheating
Potential Provider: gnome-python2.x86_64 0:2.16.2-2.fc6
Mode is u for provider of gnome-python2 = 2.16.2-1.fc6: gnome-python2.x86_64 0:2.16.2-2.fc6
Mode for pkg providing gnome-python2 = 2.16.2-1.fc6: u
Cannot find an update path for dep for: gnome-python2 = 2.16.2-1.fc6
Searching pkgSack for dep: gnome-python2
Potential match for gnome-python2 from gnome-python2 - 2.16.0-1.fc6.x86_64
Potential match for gnome-python2 from gnome-python2 - 2.16.2-2.fc6.x86_64
processing dep took: 0.010737

Dep Number: 3/3

gnome-python2-gnomevfs requires: gnome-python2 = 2.16.2-1.fc6
--> Processing Dependency: gnome-python2 = 2.16.2-1.fc6 for package: gnome-python2-gnomevfs
Looking for ('gnome-python2', 'EQ', ('0', '2.16.2', '1.fc6')) as a requirement of gnome-python2-gnomevfs - 2.16.2-1.fc6.x86_64
Requiring package is installed: gnome-python2-gnomevfs - 2.16.2-1.fc6.x86_64
Resolving for installed requiring package: gnome-python2-gnomevfs - 2.16.2-1.fc6.x86_64
Resolving for requirement: gnome-python2 = 2.16.2-1.fc6
Needed Require has already been looked up, cheating
Potential Provider: gnome-python2.x86_64 0:2.16.2-2.fc6
Mode is u for provider of gnome-python2 = 2.16.2-1.fc6: gnome-python2.x86_64 0:2.16.2-2.fc6
Mode for pkg providing gnome-python2 = 2.16.2-1.fc6: u
Cannot find an update path for dep for: gnome-python2 = 2.16.2-1.fc6
Searching pkgSack for dep: gnome-python2
Potential match for gnome-python2 from gnome-python2 - 2.16.0-1.fc6.x86_64
Potential match for gnome-python2 from gnome-python2 - 2.16.2-2.fc6.x86_64
processing dep took: 0.009516
miss = 3
conf = 0
CheckDeps = 0
--> Finished Dependency Resolution
Dependency Process ending
Running "postresolve" handler for "installonlyn" plugin
Error: Missing Dependency: gnome-python2 = 2.16.2-1.fc6 is needed by package gnome-python2-bonobo
Error: Missing Dependency: gnome-python2 = 2.16.2-1.fc6 is needed by package gnome-python2-canvas
Error: Missing Dependency: gnome-python2 = 2.16.2-1.fc6 is needed by package gnome-python2-gnomevfs
sorry, I don't know enough about YUM to interpret that,(i've never needed to use it)
but a few obvious things jump out:
"Finished Dependency Resolution" - "Error: Missing Dependency"
that  implies there is something wrong with the dependency checking part of the package..?

~cheesygit182
yum is just a fancy tool for rpms. You can remove any package out of yum via
rpm -qa | grep <pkg_name> to find which one you want.

then rpm -e --nodeps <pkgname in rpm>.

assuming of course you do genuinely have an unncessary duplicate in system. removing a package with nodeps could break stuffs so make sure you're not yanking anything that will cripple either yum or rpm.

you may just have an obsolete package installed, which you can determine with yum list obsoletes
I tried yum list obsoletes, but there are none.

Can you figure out from my posts above which package needs to be removed?  I just can't get yum past this point...always complains about dependency problems relating to gnome-python2*

ASKER CERTIFIED SOLUTION
Avatar of Kooroo
Kooroo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial