我正在使用 RHEL 9.4,并尝试使用 更新 RHEL 包sudo dnf update
,输出为:
Updating Subscription Management repositories.
Last metadata expiration check: 2:37:30 ago on Tue 31 Dec 2024 08:04:20 HKT.
Error:
Problem: cannot install the best update candidate for package remi-release-9.4-2.el9.remi.noarch
- nothing provides (redhat-release >= 9.5 or centos-stream-release >= 9) needed by remi-release-9.5-1.el9.remi.noarch from remi-safe
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
然后我--nobest
按照指示添加标志,输出是:
Updating Subscription Management repositories.
Last metadata expiration check: 2:36:48 ago on Tue 31 Dec 2024 08:04:20 HKT.
Dependencies resolved.
Problem: cannot install the best update candidate for package remi-release-9.4-2.el9.remi.noarch
- nothing provides (redhat-release >= 9.5 or centos-stream-release >= 9) needed by remi-release-9.5-1.el9.remi.noarch from remi-safe
=====================================================================================================================================================================
Package Architecture Version Repository Size
=====================================================================================================================================================================
Skipping packages with broken dependencies:
remi-release noarch 9.5-1.el9.remi remi-safe 30 k
Transaction Summary
=====================================================================================================================================================================
Skip 1 Package
Nothing to do.
Complete!
为什么这个包无法更新?以及如何修复它?
最终,我想使用sudo dnf upgrade
命令将 RHEL 从 9.4 升级到 9.5,但由于上述问题,我无法这样做。