Solved

Yum installed duplicate packages, now can't remove duplicates

Posted on 2007-04-06
9
1,339 Views
Last Modified: 2013-12-16
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
0
Comment
Question by:Jason Dupont
  • 4
  • 3
  • 2
9 Comments
 
LVL 4

Expert Comment

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

~cheesygit182

0
 

Author Comment

by:Jason Dupont
ID: 18864519
I'm using Fedora Core 6.

I have never heard of the smart command (and I can't find it on my system)
0
 
LVL 4

Expert Comment

by:cheesygit182
ID: 18866240
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
0
 

Author Comment

by:Jason Dupont
ID: 18866334
That package requires older .so files - I don't want to downgrade anything.

Other ideas?
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:Jason Dupont
ID: 18866525
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
0
 
LVL 4

Expert Comment

by:cheesygit182
ID: 18867635
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
0
 
LVL 4

Expert Comment

by:Kooroo
ID: 18868643
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
0
 

Author Comment

by:Jason Dupont
ID: 18869372
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*

0
 
LVL 4

Accepted Solution

by:
Kooroo earned 500 total points
ID: 18869784
gnome-python2 = 2.16.2-1.fc6 is likely what you need to remove.

in the short-haul,

rpm -e --nodeps gnome-python2 = 2.16.2-1.fc6 ; yum install gnome-python2

oughta do it. I'd do it from a console without a gui personally, but I don't think it'll harm things too much doing without. Afterwhich, you can attempt to yum upgrade gnome-python2.

_Kooroo

0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now