Centos 6 yum 更新-由于依赖性问题而跳过的软件包

Centos 6 yum 更新-由于依赖性问题而跳过的软件包

我正在尝试使我的异地备份服务器保持最新状态,因此我运行了更新,但遇到了依赖性问题。我不知道如何继续。以下是 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

我该如何解决这些依赖问题?

答案1

当我使用 linode vps centos 6 模板时,我遇到了和你同样的问题。要解决该问题,请执行以下操作:

  1. rpm -qa |grep epel

    那么你可能会得到这个

    epel-release-5-4.noarch

  2. yum remove epel-release-5-4.noarch

  3. 安装版本 6 epel

    对于 i386:

    rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm
    

    对于 x86_64:

    rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
    
  4. yum update

就这样。

答案2

在 CentOS 6 系统上错误地安装了 epel-release-5.4 后,我看到了相同的依赖性问题,将其删除,然后安装 epel-release-6.5。运行yum clean all解决了问题。

答案3

我遇到了同样的错误,并且意识到了自己的错误,修复了问题,但仍然出现错误。我基本上已经完成了此线程上的所有操作,但问题仍然存在。我现在已经修复了它,并想分享我的解决方案。

症状:El5 版本尝试安装在 CentOS 6 上,并在 rpm -qa 下列出

原始原因:安装 EPEL 存储库(或任何其他存储库)时,安装了适合操作系统的错误版本。

尝试的解决方案:卸载错误的 repo,安装正确的 repo

最终解决方案:即使安装了正确的版本,缓存目录仍然包含 el5 信息。为了纠正这个问题,在卸载错误的 repo 并安装正确的 repo 后,您必须使用以下行删除缓存的 repo 信息:

rm -Rf /var/cache/yum/x86_64/6/epel*

请编辑该行以特定于您的版本,或者直接删除 yum 目录下的所有内容。

答案4

$TITLE 表示它是 CentOS 6,而 yum update 则抱怨 el5 软件包。看起来使用的是 RHEL5 的 epel repo,而不是 RHEL6 的 epel repo。

您需要先更新 epel-release(如果存在)或获取一个(如果缺失)。只需运行以下命令,然后再次尝试 yum update:

wget "http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm"
sudo yum update ./epel-release-6-5.noarch.rpm

进一步阅读:

相关内容