yum安裝軟體包時出現Transaction Check Error:錯誤的解決方案

來源:互聯網
上載者:User

標籤:transaction check error:

[[email protected] ~]# yum install ipa-server

Transaction Check Error:
  file /usr/share/man/man3/XML::SAX::Base.3pm.gz conflicts between attempted installs of perl-XML-SAX-0.96-7.el6.noarch and perl-XML-SAX-Base-1.04-1.el6.rf.noarch
  file /usr/share/man/man3/XML::SAX::Exception.3pm.gz conflicts between attempted installs of perl-XML-SAX-0.96-7.el6.noarch and perl-XML-SAX-Base-1.04-1.el6.rf.noarch

 

從上面可以看出是因為軟體包衝突造成的

perl-XML-SAX-0.96-7.el6.noarch

 perl-XML-SAX-Base-1.04-1.el6.rf.noarch

查看yum安裝時出現的

Dependencies Resolved

===========================================================================================
 Package                           Arch                 Version                                  Repository              Size
===========================================================================================
Installing:

perl-XML-SAX                   noarch               0.96-7.el6                               base                    78 k
perl-XML-SAX-Base         noarch               1.04-1.el6.rf                            rpmforge                27 k

可以看出這2個軟體包用了不同的軟體倉庫造成了軟體包的衝突

解決辦法:

[[email protected] yum.repos.d]# vim rpmforge.repo

### Name: RPMforge RPM Repository for RHEL 6 - dag
### URL: http://rpmforge.net/
[rpmforge]
name = RHEL $releasever - RPMforge.net - dag
baseurl = http://apt.sw.be/redhat/el6/en/$basearch/rpmforge
mirrorlist = http://mirrorlist.repoforge.org/el6/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 0
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

 

本文出自 “雲人生” 部落格,請務必保留此出處http://ovcer.blog.51cto.com/1145188/1539614

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.