CentOS 8流模块安装包冲突

CentOS 8流模块安装包冲突

我正在尝试安装 redhat-lsb 软件包。这将使我能够在针对该目标机器运行 ansible 时收集更多事实。

当我尝试安装 redhat-lsb 时,我得到以下输出:

yum install redhat-lsb
Last metadata expiration check: 0:05:12 ago on Thu 02 Jun 2022 08:19:04 PM UTC.
Error: 
 Problem: package redhat-lsb-4.1-47.el8.x86_64 requires redhat-lsb-languages = 4.1-47.el8, but none of the providers can be installed
  - package redhat-lsb-languages-4.1-47.el8.i686 requires perl(Fatal), but none of the providers can be installed
  - package redhat-lsb-languages-4.1-47.el8.x86_64 requires perl(Fatal), but none of the providers can be installed
  - conflicting requests
  - package perl-autodie-2.34-1.module_el8.6.0+1070+343f8e3c.noarch is filtered out by modular filtering
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

perl-autodie 似乎有问题。然后我运行命令“yum module提供perl-autodie”。结果如下:

yum module provides perl-autodie
Last metadata expiration check: 0:11:38 ago on Thu 02 Jun 2022 08:19:04 PM UTC.
perl-autodie-2.34-1.module_el8.6.0+1070+343f8e3c.noarch
Module   : perl:5.32:8060020220119032749:e82d91b1:x86_64
Profiles : 
Repo     : centos8-stream-appstream
Summary  : Practical Extraction and Report Language

根据结果​​,perl-autodie 在 perl:5.32 模块中可用。然后我使用命令“yum module enable perl:5.32”启用 perl:5.32 模块,并使用“yum module list perl”检查结果。结果如下:

# yum module enable perl:5.32
Last metadata expiration check: 0:13:06 ago on Thu 02 Jun 2022 08:19:04 PM UTC.
Problems in request:
Modular dependency problems with Defaults:

 Problem: module perl:5.26:8000020190628020724:55190bc5.x86_64 conflicts with module(perl:5.32) provided by perl:5.32:8060020220119032749:e82d91b1.x86_64
  - module perl:5.32:8060020220119032749:e82d91b1.x86_64 conflicts with module(perl:5.26) provided by perl:5.26:8000020190628020724:55190bc5.x86_64
  - module freeradius:3.0:8030020200831192931:1e4bbb35.x86_64 requires module(perl:5.26), but none of the providers can be installed
  - conflicting requests
Dependencies resolved.
============================================================================================================================================
 Package                          Architecture                    Version                            Repository                        Size
============================================================================================================================================
Enabling module streams:
 perl                                                             5.32                                                                     

Transaction Summary
============================================================================================================================================

Is this ok [y/N]: y
Complete!
# yum module list perl
Last metadata expiration check: 0:13:21 ago on Thu 02 Jun 2022 08:19:04 PM UTC.
Modular dependency problem:

 Problem: module perl:5.26:8000020190628020724:55190bc5.x86_64 conflicts with module(perl:5.32) provided by perl:5.32:8060020220119032749:e82d91b1.x86_64
  - module perl:5.32:8060020220119032749:e82d91b1.x86_64 conflicts with module(perl:5.26) provided by perl:5.26:8000020190628020724:55190bc5.x86_64
  - module freeradius:3.0:8030020200831192931:1e4bbb35.x86_64 requires module(perl:5.26), but none of the providers can be installed
  - conflicting requests
CentOS-Stream 8 AppStream
Name                  Stream                    Profiles                            Summary                                                 
perl                  5.24                      common [d], minimal                 Practical Extraction and Report Language                
perl                  5.26 [d]                  common [d], minimal                 Practical Extraction and Report Language                
perl                  5.30                      common [d], minimal                 Practical Extraction and Report Language                
perl                  5.32 [e]                  common [d], minimal                 Practical Extraction and Report Language                

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

现在我们可以看到 perl:5.26 仍然是默认值,并且 perl:5.32 已启用。启用 perl:5.32 后,我只能假设 perl-autodie 依赖性将得到满足并可用。如果我现在尝试安装 redhat-lsb,我会得到以下输出:

# yum install redhat-lsb
Last metadata expiration check: 0:16:42 ago on Thu 02 Jun 2022 08:19:04 PM UTC.
Modular dependency problem:

 Problem: module perl:5.26:8000020190628020724:55190bc5.x86_64 conflicts with module(perl:5.32) provided by perl:5.32:8060020220119032749:e82d91b1.x86_64
  - module perl:5.32:8060020220119032749:e82d91b1.x86_64 conflicts with module(perl:5.26) provided by perl:5.26:8000020190628020724:55190bc5.x86_64
  - module freeradius:3.0:8030020200831192931:1e4bbb35.x86_64 requires module(perl:5.26), but none of the providers can be installed
  - conflicting requests
Error: 
 Problem: package redhat-lsb-core-4.1-47.el8.x86_64 requires /usr/bin/lp, but none of the providers can be installed
  - package redhat-lsb-core-4.1-47.el8.x86_64 requires /usr/bin/lpr, but none of the providers can be installed
  - package redhat-lsb-4.1-47.el8.x86_64 requires redhat-lsb-core(x86-64) = 4.1-47.el8, but none of the providers can be installed
  - package cups-client-1:2.2.6-46.el8.x86_64 requires cups-libs(x86-64) = 1:2.2.6-46.el8, but none of the providers can be installed
  - conflicting requests
  - package cups-libs-1:2.2.6-46.el8.x86_64 is filtered out by exclude filtering
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

看起来 freeradius 模块依赖于 perl:5.26 模块,但 perl:5.32 模块是启用的模块。我不需要 freeradius,所以让我们用“yum module remove freeradius:3.0:8030020200831192931:1e4bbb35.x86_64”删除它

Last metadata expiration check: 0:20:09 ago on Thu 02 Jun 2022 08:19:04 PM UTC.
Modular dependency problem:

 Problem: module perl:5.26:8000020190628020724:55190bc5.x86_64 conflicts with module(perl:5.32) provided by perl:5.32:8060020220119032749:e82d91b1.x86_64
  - module perl:5.32:8060020220119032749:e82d91b1.x86_64 conflicts with module(perl:5.26) provided by perl:5.26:8000020190628020724:55190bc5.x86_64
  - module freeradius:3.0:8030020200831192931:1e4bbb35.x86_64 requires module(perl:5.26), but none of the providers can be installed
  - conflicting requests
Problems in request:
missing groups or modules: freeradius:3.0:8030020200831192931:1e4bbb35.x86_64
Dependencies resolved.
Nothing to do.
Complete!

我完全陷入了 appstream 模块化存储库地狱。我想做的就是安装 redhat-lsb。我被困在这一点上,正在寻求帮助。在此先感谢您的任何建议。

答案1

运行yum distro-sync应该可以解决问题。

相关内容