[CentOS] duplicate packages on connection reset

Mon Dec 16 06:55:06 UTC 2013
Adrian Sevcenco <Adrian.Sevcenco at cern.ch>

On 12/15/2013 11:54 PM, Les Mikesell wrote:
> On Sun, Dec 15, 2013 at 2:34 PM, Adrian Sevcenco
> <Adrian.Sevcenco at cern.ch> wrote:
>> Hi! I have a small problem with some packages : i was doing an update
>> over ssh and my connection was interrupted .. now i have a lots of
>> duplicates and if i try to remove them, yum tries to uninstall all
>> system (447 packages 1.4 gb)!!
>> Any idea how can i clean this mess? would be pretty bad if the machine
>> needs to be re-installed only because the connection went bad during the
>> process...
> Running 'yum-complete-transaction' will usually fix things up.   If
> you don't have it you should be able to 'yum install yum-utils'
> without affecting the old incomplete transaction.
1. yum-complete-transaction and
2. yum-complete-transaction --skip-broken

fails with :
Error: Package: mesa-dri-drivers-9.2-0.5.el6_5.2.x86_64 (updates)
           Requires: mesa-dri1-drivers >= 7.11-6
           Removing: mesa-dri1-drivers-7.11-8.el6.x86_64 (@base)
               mesa-dri1-drivers = 7.11-8.el6
Error: Package: dracut-004-336.el6_5.2.noarch (updates)
           Requires: plymouth >= 0.8.0-0.2009.
           Removing: plymouth-0.8.3-27.el6.centos.x86_64 (@base)
               plymouth = 0.8.3-27.el6.centos
Error: Package: xorg-x11-server-Xorg-1.13.0-23.el6.centos.x86_64 (base)
           Requires: fedora-setup-keyboard
           Removing: system-setup-keyboard-0.7-4.el6.x86_64
               fedora-setup-keyboard = 0.7-4.el6
 You could try using --skip-broken to work around the problem

2. Error: Trying to remove "yum", which is protected
** Found 159 pre-existing rpmdb problem(s), 'yum check' output follows: