安装python-devel的时候遇到yum安装报错:[is a duplicate] 重复安装

# yum install Python-devel
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * base: mirror.neu.edu.cn
 * extras: mirror.neu.edu.cn
 * rpmforge: mirror-fpt-telecom.fpt.net
 * updates: mirror.neu.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-devel.x86_64 0:2.6.6-37.el6_4 will be installed
--> Processing Conflict: python-devel-2.6.6-37.el6_4.x86_64 conflicts python < 2.6.6-37.el6_4
--> Finished Dependency Resolution
Error: python-devel conflicts with python-2.6.5-3.el6.x86_64
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
python-2.6.6-37.el6_4.x86_64 is a duplicate with python-2.6.5-3.el6.x86_64


]# rpm -qi python
Name        : python                       Relocations: (not relocatable)
Version     : 2.6.6                             Vendor: CentOS
Release     : 37.el6_4                      Build Date: Thu 11 Jul 2013 06:51:12 AM CST
Install Date: Thu 25 Jul 2013 08:56:21 PM CST      Build Host: c6b10.bsys.dev.centos.org
Group       : Development/Languages         Source RPM: python-2.6.6-37.el6_4.src.rpm
Size        : 21275516                         License: Python
Signature   : RSA/SHA1, Thu 11 Jul 2013 09:01:43 AM CST, Key ID 0946fca2c105b9de
Packager    : CentOS BuildSystem <http://bugs.centos.org>
URL         : http://www.python.org/
Summary     : An interpreted, interactive, object-oriented programming language
Description :
Python is an interpreted, interactive, object-oriented programming
language often compared to Tcl, Perl, Scheme or Java. Python includes
modules, classes, exceptions, very high level dynamic data types and
dynamic typing. Python supports interfaces to many system calls and
libraries, as well as to various windowing systems (X11, Motif, Tk,
Mac and MFC).


Programmers can write new built-in modules for Python in C or C++.
Python can be used as an extension language for applications that need
a programmable interface. This package contains most of the standard
Python modules, as well as modules for interfacing to the Tix widget
set for Tk and RPM.


Note that documentation for Python is provided in the python-docs
package.
Name        : python                       Relocations: (not relocatable)
Version     : 2.6.5                             Vendor: CentOS
Release     : 3.el6                         Build Date: Fri 12 Nov 2010 08:55:06 AM CST
Install Date: Fri 26 Jul 2013 11:56:42 AM CST      Build Host: c6b4.bsys.dev.centos.org
Group       : Development/Languages         Source RPM: python-2.6.5-3.el6.src.rpm
Size        : 21535064                         License: Python
Signature   : RSA/8, Sun 03 Jul 2011 12:58:27 PM CST, Key ID 0946fca2c105b9de
Packager    : CentOS BuildSystem <http://bugs.centos.org>
URL         : http://www.python.org/
Summary     : An interpreted, interactive, object-oriented programming language
Description :
Python is an interpreted, interactive, object-oriented programming
language often compared to Tcl, Perl, Scheme or Java. Python includes
modules, classes, exceptions, very high level dynamic data types and
dynamic typing. Python supports interfaces to many system calls and
libraries, as well as to various windowing systems (X11, Motif, Tk,
Mac and MFC).


Programmers can write new built-in modules for Python in C or C++.
Python can be used as an extension language for applications that need
a programmable interface. This package contains most of the standard
Python modules, as well as modules for interfacing to the Tix widget
set for Tk and RPM.


Note that documentation for Python is provided in the python-docs
package.

----------------------------------------

重复安装???



要解决上述问题,可以这样:

# 首先安装 yum-utils 套件
  
  yum install yum-utils
  
# 执行 clean duplicate package
  
  package-cleanup --cleandupes


  Duplicate Package Options:
    --dupes             Scan for duplicates in your rpmdb
    --cleandupes        Scan for duplicates in your rpmdb and remove older
    --noscripts         disable rpm scriptlets from running when cleaning
                        duplicates


参考:

http://blog.wu-boy.com/2011/10/how-to-remove-duplicated-rpm-package/

https://forums.aws.amazon.com/thread.jspa?messageID=318951

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值