我有一台 CentOS 7.9 服务器,通过标准“yum update”命令成功从 CentOS 7.4 更新。
Install 18 Packages (+93 Dependent packages)
Upgrade 1219 Packages
(yum还更换了16个包)
问题:yum 在特定包上失败,并显示找不到某些内容的消息。
首先,我运行yum update --exclude=redhat-lsb-core
来完成大部分修补工作。我然后就跑了yum update
。发生这些错误:
--> Running transaction check
---> Package redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 will be obsoleted
--> Processing Dependency: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64
--> Processing Dependency: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-cxx-4.1-27.el7.centos.1.x86_64
--> Processing Dependency: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-4.1-27.el7.centos.1.x86_64
--> Processing Dependency: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-printing-4.1-27.el7.centos.1.x86_64
--> Processing Dependency: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-desktop-4.1-27.el7.centos.1.x86_64
---> Package stub-redhat-lsb-core-only-for-ceph.noarch 0:2015.1-1.atomic.el7 will be obsoleting
--> Finished Dependency Resolution
Error: Package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 (@anaconda)
Requires: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1
Removing: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 (@anaconda)
redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1
Obsoleted By: stub-redhat-lsb-core-only-for-ceph-2015.1-1.atomic.el7.noarch (AcmeCorp_CentOS_7_x86_64_atomic_x86_64)
Not found
Error: Package: redhat-lsb-cxx-4.1-27.el7.centos.1.x86_64 (@anaconda)
Requires: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1
Removing: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 (@anaconda)
redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1
Obsoleted By: stub-redhat-lsb-core-only-for-ceph-2015.1-1.atomic.el7.noarch (AcmeCorp_CentOS_7_x86_64_atomic_x86_64)
Not found
Error: Package: redhat-lsb-4.1-27.el7.centos.1.x86_64 (@anaconda)
Requires: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1
Removing: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 (@anaconda)
redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1
Obsoleted By: stub-redhat-lsb-core-only-for-ceph-2015.1-1.atomic.el7.noarch (AcmeCorp_CentOS_7_x86_64_atomic_x86_64)
Not found
Error: Package: redhat-lsb-desktop-4.1-27.el7.centos.1.x86_64 (@anaconda)
Requires: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1
Removing: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 (@anaconda)
redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1
Obsoleted By: stub-redhat-lsb-core-only-for-ceph-2015.1-1.atomic.el7.noarch (AcmeCorp_CentOS_7_x86_64_atomic_x86_64)
Not found
Error: Package: redhat-lsb-printing-4.1-27.el7.centos.1.x86_64 (@anaconda)
Requires: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1
Removing: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 (@anaconda)
redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1
Obsoleted By: stub-redhat-lsb-core-only-for-ceph-2015.1-1.atomic.el7.noarch (AcmeCorp_CentOS_7_x86_64_atomic_x86_64)
Not found
我对此的解释如下:
- yum 去更新 redhat-lsb-core,但确定它已被 Stub-redhat-lsb-core-only-for-ceph 废弃(即取代/替换)
- 但是,这些软件包依赖于 redhat-lsb-core: redhat-lsb-languages redhat-lsb-cxx redhat-lsb redhat-lsb-printing redhat-lsb-desktop ...
- yum需要安装stub-redhat-lsb-core-only-for-ceph,但找不到。
但第3点似乎不对,可以找到RPM:
[root@parrot ~]# yum list stub-redhat-lsb-core-only-for-ceph
Loaded plugins: enabled_repos_upload, fastestmirror, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager,
: tracer_upload
Loading mirror speeds from cached hostfile
Available Packages
stub-redhat-lsb-core-only-for-ceph.noarch 2015.1-1.atomic.el7 AcmeCorp_CentOS_7_x86_64_atomic_x86_64
Uploading Enabled Repositories Report
Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager
[root@parrot ~]#
[root@parrot ~]# yumdownloader stub-redhat-lsb-core-only-for-ceph
Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager
Loading mirror speeds from cached hostfile
AcmeCorp_CentOS_7_x86_64_atomic_x86_64 | 2.0 kB 00:00:00
AcmeCorp_CentOS_7_x86_64_cr_x86_64 | 1.9 kB 00:00:00
AcmeCorp_CentOS_7_x86_64_epel_7_x86_64 | 2.3 kB 00:00:00
AcmeCorp_CentOS_7_x86_64_extras_x86_64 | 2.0 kB 00:00:00
AcmeCorp_CentOS_7_x86_64_os_x86_64 | 2.3 kB 00:00:00
AcmeCorp_CentOS_7_x86_64_sclo_x86_64_sclo | 2.0 kB 00:00:00
AcmeCorp_CentOS_7_x86_64_updates_x86_64 | 2.0 kB 00:00:00
stub-redhat-lsb-core-only-for-ceph-2015.1-1.atomic.el7.noarch.rpm | 3.8 kB 00:00:00
[root@parrot ~]# ls -l stub-redhat-lsb-core-only-for-ceph-2015.1-1.atomic.el7.noarch.rpm
-rw-r--r-- 1 root root 3940 May 27 03:36 stub-redhat-lsb-core-only-for-ceph-2015.1-1.atomic.el7.noarch.rpm
[root@parrot ~]#
我尝试过set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
,但没有效果。
我还尝试直接安装正在废弃的软件包,但无济于事:
[root@parrot ~]# yum install stub-redhat-lsb-core-only-for-ceph
Loaded plugins: enabled_repos_upload, fastestmirror, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager,
: tracer_upload
Loading mirror speeds from cached hostfile
AcmeCorp_CentOS_7_x86_64_atomic_x86_64 | 2.0 kB 00:00:00
AcmeCorp_CentOS_7_x86_64_cr_x86_64 | 1.9 kB 00:00:00
AcmeCorp_CentOS_7_x86_64_epel_7_x86_64 | 2.3 kB 00:00:00
AcmeCorp_CentOS_7_x86_64_extras_x86_64 | 2.0 kB 00:00:00
AcmeCorp_CentOS_7_x86_64_os_x86_64 | 2.3 kB 00:00:00
AcmeCorp_CentOS_7_x86_64_sclo_x86_64_sclo | 2.0 kB 00:00:00
AcmeCorp_CentOS_7_x86_64_updates_x86_64 | 2.0 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 will be obsoleted
--> Processing Dependency: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64
--> Processing Dependency: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-cxx-4.1-27.el7.centos.1.x86_64
--> Processing Dependency: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-4.1-27.el7.centos.1.x86_64
--> Processing Dependency: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-printing-4.1-27.el7.centos.1.x86_64
--> Processing Dependency: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1 for package: redhat-lsb-desktop-4.1-27.el7.centos.1.x86_64
---> Package stub-redhat-lsb-core-only-for-ceph.noarch 0:2015.1-1.atomic.el7 will be obsoleting
--> Finished Dependency Resolution
Error: Package: redhat-lsb-languages-4.1-27.el7.centos.1.x86_64 (@AcmeCorp_CentOS_7_x86_64_os_x86_64)
Requires: redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1
Removing: redhat-lsb-core-4.1-27.el7.centos.1.x86_64 (@AcmeCorp_CentOS_7_x86_64_os_x86_64)
redhat-lsb-core(x86-64) = 4.1-27.el7.centos.1
Obsoleted By: stub-redhat-lsb-core-only-for-ceph-2015.1-1.atomic.el7.noarch (AcmeCorp_CentOS_7_x86_64_atomic_x86_64)
Not found
谁能解释一下如何解决这个问题?