Yum

Centos 6 yum 更新 - 由於依賴問題而跳過的軟體包

  • September 11, 2015

我正在嘗試使我的異地備份伺服器保持最新狀態,因此我執行了更新並且遇到了依賴性問題。我不知道如何繼續。下面是 YUM 的輸出。

[root@localhost philosophy-admin]# yum update --skip-broken
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* Webmin: webmin.mirror.somersettechsolutions.co.uk
* base: mirror.mhd.uk.as44574.net
* epel: mirror.bytemark.co.uk
* extras: mirror.mhd.uk.as44574.net
* updates: mirror.mhd.uk.as44574.net
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package TurboGears2.noarch 0:2.1-0.1.b2.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: TurboGears2-2.1-0.1.b2.el5.noarch
---> Package iotop.noarch 0:0.4.1-2.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: iotop-0.4.1-2.el5.noarch
---> Package python-babel.noarch 0:0.9.5-2.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-babel-0.9.5-2.el5.noarch
---> Package python-beaker.noarch 0:1.5.4-1.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-beaker-1.5.4-1.el5.noarch
---> Package python-ethtool.x86_64 0:0.6-2.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-ethtool-0.6-2.el5.x86_64
---> Package python-markdown.noarch 0:2.0.3-1.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-markdown-2.0.3-1.el5.noarch
--> Processing Dependency: python-elementtree for package: python-markdown-2.0.3-1.el5.noarch
---> Package python-nose.noarch 0:0.11.3-2.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-nose-0.11.3-2.el5.noarch
---> Package python-paramiko.noarch 0:1.7.6-1.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-paramiko-1.7.6-1.el5.noarch
---> Package python-psycopg2.x86_64 0:2.0.14-1.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-psycopg2-2.0.14-1.el5.x86_64
--> Processing Dependency: libpq.so.4()(64bit) for package: python-psycopg2-2.0.14-1.el5.x86_64
---> Package python-pygments.noarch 0:1.4-3.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-pygments-1.4-3.el5.noarch
--> Processing Dependency: python-imaging for package: python-pygments-1.4-3.el5.noarch
---> Package python-pylons.noarch 0:0.9.7-4.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-pylons-0.9.7-4.el5.noarch
--> Processing Dependency: python-decorator3 for package: python-pylons-0.9.7-4.el5.noarch
---> Package python-repoze-tm2.noarch 0:1.0-0.6.a5.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-repoze-tm2-1.0-0.6.a5.el5.noarch
---> Package python-repoze-who.noarch 0:1.0.18-2.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-repoze-who-1.0.18-2.el5.noarch
---> Package python-repoze-who-testutil.noarch 0:1.0-1.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-repoze-who-testutil-1.0-1.el5.noarch
---> Package python-routes.noarch 0:1.12.1-1.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-routes-1.12.1-1.el5.noarch
---> Package python-turbojson.noarch 0:1.2.1-9.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-turbojson-1.2.1-9.el5.noarch
---> Package python-webhelpers.noarch 0:1.0-0.2.b7.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-webhelpers-1.0-0.2.b7.el5.noarch
---> Package python-webob.noarch 0:0.9.8-2.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-webob-0.9.8-2.el5.noarch
--> Running transaction check
---> Package TurboGears2.noarch 0:2.1-0.1.b2.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: TurboGears2-2.1-0.1.b2.el5.noarch
---> Package iotop.noarch 0:0.4.1-2.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: iotop-0.4.1-2.el5.noarch
---> Package python-babel.noarch 0:0.9.5-2.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-babel-0.9.5-2.el5.noarch
---> Package python-beaker.noarch 0:1.5.4-1.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-beaker-1.5.4-1.el5.noarch
---> Package python-decorator3.noarch 0:3.1.2-2.el5.1 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-decorator3-3.1.2-2.el5.1.noarch
---> Package python-ethtool.x86_64 0:0.6-2.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-ethtool-0.6-2.el5.x86_64
---> Package python-imaging.x86_64 0:1.1.6-19.el6 set to be updated
---> Package python-markdown.noarch 0:2.0.3-1.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-markdown-2.0.3-1.el5.noarch
--> Processing Dependency: python-elementtree for package: python-markdown-2.0.3-1.el5.noarch
---> Package python-nose.noarch 0:0.11.3-2.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-nose-0.11.3-2.el5.noarch
---> Package python-paramiko.noarch 0:1.7.6-1.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-paramiko-1.7.6-1.el5.noarch
---> Package python-psycopg2.x86_64 0:2.0.14-1.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-psycopg2-2.0.14-1.el5.x86_64
--> Processing Dependency: libpq.so.4()(64bit) for package: python-psycopg2-2.0.14-1.el5.x86_64
---> Package python-pygments.noarch 0:1.4-3.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-pygments-1.4-3.el5.noarch
---> Package python-pylons.noarch 0:0.9.7-4.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-pylons-0.9.7-4.el5.noarch
---> Package python-repoze-tm2.noarch 0:1.0-0.6.a5.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-repoze-tm2-1.0-0.6.a5.el5.noarch
---> Package python-repoze-who.noarch 0:1.0.18-2.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-repoze-who-1.0.18-2.el5.noarch
---> Package python-repoze-who-testutil.noarch 0:1.0-1.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-repoze-who-testutil-1.0-1.el5.noarch
---> Package python-routes.noarch 0:1.12.1-1.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-routes-1.12.1-1.el5.noarch
---> Package python-turbojson.noarch 0:1.2.1-9.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-turbojson-1.2.1-9.el5.noarch
---> Package python-webhelpers.noarch 0:1.0-0.2.b7.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-webhelpers-1.0-0.2.b7.el5.noarch
---> Package python-webob.noarch 0:0.9.8-2.el5 set to be updated
--> Processing Dependency: python(abi) = 2.4 for package: python-webob-0.9.8-2.el5.noarch
--> Finished Dependency Resolution

Packages skipped because of dependency problems:
   TurboGears2-2.1-0.1.b2.el5.noarch from epel
   iotop-0.4.1-2.el5.noarch from epel
   python-babel-0.9.5-2.el5.noarch from epel
   python-beaker-1.5.4-1.el5.noarch from epel
   python-decorator3-3.1.2-2.el5.1.noarch from epel
   python-ethtool-0.6-2.el5.x86_64 from epel
   python-imaging-1.1.6-19.el6.x86_64 from base
   python-markdown-2.0.3-1.el5.noarch from epel
   python-nose-0.11.3-2.el5.noarch from epel
   python-paramiko-1.7.6-1.el5.noarch from epel
   python-psycopg2-2.0.14-1.el5.x86_64 from epel
   python-pygments-1.4-3.el5.noarch from epel
   python-pylons-0.9.7-4.el5.noarch from epel
   python-repoze-tm2-1.0-0.6.a5.el5.noarch from epel
   python-repoze-who-1.0.18-2.el5.noarch from epel
   python-repoze-who-testutil-1.0-1.el5.noarch from epel
   python-routes-1.12.1-1.el5.noarch from epel
   python-turbojson-1.2.1-9.el5.noarch from epel
   python-webhelpers-1.0-0.2.b7.el5.noarch from epel
   python-webob-0.9.8-2.el5.noarch from epel

如何解決這些依賴問題?

當我使用 linode vps centos 6 模板時,我遇到了同樣的問題。要解決問題,請執行此操作

  1. rpm -qa |grep epel 然後你可能會得到這個 epel-release-5-4.noarch

  2. yum 刪除 epel-release-5-4.noarch

  3. 為 i386 安裝版本 6 epel:rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm for x86_64 http://download .fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm

  4. 百勝更新

就這樣。

在 CentOS 6 系統上錯誤地安裝 epel-release-5.4,刪除它然後安裝 epel-release-6.5 後,我看到了同樣的依賴問題。跑步yum clean all解決了這個問題。

引用自:https://serverfault.com/questions/322911