Rocky Linux 8.6:升级时出现冲突的软件包?

Rocky Linux 8.6:升级时出现冲突的软件包?

部署旨在作为 Web 服务器运行的 Rocky Linux VM 后,我进行了更新并收到以下消息:

[root@rocky ~]# dnf upgrade --refresh -y
Rocky Linux 8 - AppStream                                                                                                                              12 kB/s | 4.8 kB     00:00    
Rocky Linux 8 - BaseOS                                                                                                                                 16 kB/s | 4.3 kB     00:00    
Rocky Linux 8 - Extras                                                                                                                                 12 kB/s | 3.5 kB     00:00    
Rocky Linux 8 - PowerTools                                                                                                                             17 kB/s | 4.8 kB     00:00    
Extra Packages for Enterprise Linux 7 - x86_64                                                                                                         51 kB/s |  31 kB     00:00    
Extra Packages for Enterprise Linux 7 - x86_64                                                                                                        4.8 MB/s |  17 MB     00:03    
Safe Remi's RPM repository for Enterprise Linux 7 - x86_64                                                                                             22 kB/s | 3.0 kB     00:00    
Safe Remi's RPM repository for Enterprise Linux 7 - x86_64                                                                                            3.9 MB/s | 2.8 MB     00:00    
Error: 
 Problem 1: cannot install the best update candidate for package libidn2-2.2.0-1.el8.x86_64
  - nothing provides libunistring.so.0()(64bit) needed by libidn2-2.3.2-1.el7.x86_64
 Problem 2: package remi-release-7.9-3.el7.remi.noarch requires epel-release = 7, but none of the providers can be installed
  - cannot install both epel-release-8-13.el8.noarch and epel-release-7-14.noarch
  - cannot install both epel-release-7-14.noarch and epel-release-8-13.el8.noarch
  - cannot install the best update candidate for package remi-release-7.9-3.el7.remi.noarch
  - cannot install the best update candidate for package epel-release-7-14.noarch
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@rocky ~]# 

我已经安装了 Apache 2.4、PHP 7.4。以及 PHP 8、MariaDB,它们都安装成功并运行正常。但我注意到它们不是最新版本:Apache 是 2.4.37 而不是 2.4.53,PHP 是 7.4.19 而不是 7.4.29。因此我决定使用 进行升级dnf upgrade --refresh -y,但我偶然发现了上述消息。

这里出了什么问题?

答案1

Rocky Linux 8 - PowerTools 17 kB/s | 4.8 kB 00:00
Enterprise Linux 7 的附加软件包 - x86_64 51 kB/s | 31 kB 00:00

您正在尝试使用EL-7Rocky 8 上的存储库,这当然行不通

你必须使用EL-8EPEL 和 Remi 存储库

去除epel 发布重新发布打包并按照向导说明进行正确的配置。

相关内容