yum问题:升级系统时跳过具有损坏依赖性的软件包
时间:2020-01-09 10:34:16 来源:igfitidea点击:
问题描述:我犯了一个错误,并在CentOS/RHEL 5.x服务器下添加了其他仓库。
现在,当我尝试升级软件包时,它给了我破碎的依赖关系/丢失的依赖关系错误。
如何跳过损坏的软件包并将更新应用于其他已安装的软件?
解决方法:依赖项损坏的软件包确实很糟糕。
Yum通常负责此类业务,但是当您混合使用其他存储库时,它可能会在RHEL/CentOS Linux 5.x系统下发出Missing Dependency错误。
您需要添加名为yum-skip-brokenm的插件,该插件向yum添加了一个break-broken,以便可以检查软件包中的依赖关系问题并跳过有问题的软件包。
安装yum-skip-broken
以root用户身份键入以下命令:
# yum -y install yum-skip-broken
输出示例:
Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * base: mirror.steadfast.net * updates: mirror.steadfast.net * addons: centos-distro.cavecreek.net * extras: mirrors.liquidweb.com Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package yum-skip-broken.noarch 0:1.1.10-9.el5.centos set to be updated --> Finished Dependency Resolution Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: yum-skip-broken noarch 1.1.10-9.el5.centos base 11 k Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 11 k Downloading Packages: (1/1): yum-skip-broken-1. 100% |=========================| 11 kB 00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: yum-skip-broken ######################### [1/1] Installed: yum-skip-broken.noarch 0:1.1.10-9.el5.centos Complete!
如何处理具有依赖性问题的跳过软件包
现在,键入以下命令:
# yum -y upgrade --skip-broken
或者
# yum -y update --skip-broken