【问题标题】:yum fails to updateyum 更新失败
【发布时间】:2019-10-03 20:51:29
【问题描述】:

yum 无法更新 CentOs 7.6。

上面写着Requires: qt5-qtbase(x86-64) = 5.9.2,但在另一边却写着Removing: qt5-qtbase-5.9.2-3.el7.x86_64!!

我该如何解决这个问题?

谢谢

--> Processing Dependency: qt5-qtbase(x86-64) = 5.9.2 for package: qt5-qtstyleplugins-5.0.0-26.el7.x86_64
--> Processing Dependency: qt5-qtbase(x86-64) = 5.9.2 for package: qt5-qtquick1-5.7.1-1.2bc722agit.el7.x86_64
--> Finished Dependency Resolution
Error: Package: qt5-qtstyleplugins-5.0.0-26.el7.x86_64 (@epel)
           Requires: qt5-qtbase(x86-64) = 5.9.2
           Removing: qt5-qtbase-5.9.2-3.el7.x86_64 (@anaconda)
               qt5-qtbase(x86-64) = 5.9.2-3.el7
           Updated By: qt5-qtbase-5.9.7-2.el7.x86_64 (base)
               qt5-qtbase(x86-64) = 5.9.7-2.el7
Error: Package: qt5-qtquick1-5.7.1-1.2bc722agit.el7.x86_64 (@epel)
           Requires: qt5-qtbase(x86-64) = 5.9.2
           Removing: qt5-qtbase-5.9.2-3.el7.x86_64 (@anaconda)
               qt5-qtbase(x86-64) = 5.9.2-3.el7
           Updated By: qt5-qtbase-5.9.7-2.el7.x86_64 (base)
               qt5-qtbase(x86-64) = 5.9.7-2.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

更新:

启用回购:

[mehrdad@MHRS ~]$ yum repolist enabled
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.alpix.eu
 * centos-sclo-rh: ftp.uni-bayreuth.de
 * centos-sclo-sclo: ftp.uni-bayreuth.de
 * epel: mirror.redium.net
 * extras: centos.mirror.iphh.net
 * nux-dextop: mirror.li.nux.ro
 * rpmfusion-free-updates: mirror.ehv.weppel.nl
 * rpmfusion-nonfree-updates: mirror.ehv.weppel.nl
 * updates: ftp.agdsn.de
repo id                           repo name                               status
!base/7/x86_64                    CentOS-7 - Base                         10,097
!centos-sclo-rh/x86_64            CentOS-7 - SCLo rh                       8,548
!centos-sclo-sclo/x86_64          CentOS-7 - SCLo sclo                       804
!epel/x86_64                      Extra Packages for Enterprise Linux 7 - 13,413
!extras/7/x86_64                  CentOS-7 - Extras                          304
!google-chrome                    google-chrome                                3
!nodesource/x86_64                Node.js Packages for Enterprise Linux 7     43
!nux-dextop/x86_64                Nux.Ro RPMs for general desktop use      2,718
!rpmfusion-free-updates/x86_64    RPM Fusion for EL 7 - Free - Updates       248
!rpmfusion-nonfree-updates/x86_64 RPM Fusion for EL 7 - Nonfree - Updates     77
!sublime-text                     Sublime Text - x86_64 - Stable               2
!updates/7/x86_64                 CentOS-7 - Updates                         319
repolist: 36,576

【问题讨论】:

  • 问题是:你在安装什么?是什么让 yum 删除 qt5-qtbase ?也许正在安装obsoletes qt5-base 的其他一些软件包?
  • 我刚刚做了'sudo yum update'

标签: centos yum


【解决方案1】:

似乎没有真正的解决方案。来自epel 存储库的qt5-qtstyleplugins 需要qt5-qtbase5.9.2 的确切版本,但是base 存储库中不再提供此版本。

如果您希望您的 yum update 成功,您可以从更新中排除这些包:

yum update --exclude=qt5-qt*

有关从 yum 更新中排除软件包的更多信息,请参阅 here

【讨论】:

    猜你喜欢
    • 2014-03-01
    • 2013-12-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-11
    • 2018-09-21
    • 1970-01-01
    • 2021-01-19
    • 1970-01-01
    相关资源
    最近更新 更多