[dnf/yum] downgrade가 막힐 때 (--allowerasing)
dnf 또는 yum으로 한 단계씩 downgrade로 판을 낮추려다 보니 다음과 같은 오류를 만났다.
Last metadata expiration check: 0:04:36 ago on Sun 19 Oct 2025 11:46:26 AM KST.
Error:
Problem: problem with installed package openssl-fips-provider-1:3.5.1-2.el9.x86_64
- package openssl-fips-provider-1:3.5.1-2.el9.x86_64 from @System requires openssl-libs(x86-64) = 1:3.5.1-2.el9, but none of the providers can be installed
- package openssl-fips-provider-1:3.5.1-2.el9.x86_64 from baseos requires openssl-libs(x86-64) = 1:3.5.1-2.el9, but none of the providers can be installed
- package openssl-fips-provider-1:3.5.1-3.el9.x86_64 from baseos requires openssl-libs(x86-64) = 1:3.5.1-3.el9, but none of the providers can be installed
- package openssl-fips-provider-1:3.5.1-5.el9.x86_64 from baseos requires openssl-libs(x86-64) = 1:3.5.1-5.el9, but none of the providers can be installed
- cannot install both openssl-libs-1:3.5.1-1.el9.x86_64 from baseos and openssl-libs-1:3.5.1-2.el9.x86_64 from @System
- cannot install both openssl-libs-1:3.5.1-2.el9.x86_64 from baseos and openssl-libs-1:3.5.1-1.el9.x86_64 from baseos
- cannot install both openssl-libs-1:3.5.1-3.el9.x86_64 from baseos and openssl-libs-1:3.5.1-1.el9.x86_64 from baseos
- cannot install both openssl-libs-1:3.5.1-5.el9.x86_64 from baseos and openssl-libs-1:3.5.1-1.el9.x86_64 from baseos
- cannot install the best candidate for the job
(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)
--allowerasing을 붙이면 아래처럼 downgrade를 더 이어갈 수 있다.
# sudo dnf downgrade openssl-libs --allowerasing
Last metadata expiration check: 0:07:15 ago on Sun 19 Oct 2025 11:46:26 AM KST.
Dependencies resolved.
========================================================================================
Package Architecture Version Repository Size
========================================================================================
Downgrading:
openssl x86_64 1:3.5.0-4.el9 baseos 1.5 M
openssl-libs x86_64 1:3.5.0-4.el9 baseos 2.7 M
Transaction Summary
========================================================================================
Downgrade 2 Packages
Total download size: 4.1 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): openssl-3.5.0-4.el9.x86_64.rpm 1.4 MB/s | 1.5 MB 00:01
(2/2): openssl-libs-3.5.0-4.el9.x86_64.rpm 2.0 MB/s | 2.7 MB 00:01
----------------------------------------------------------------------------------------
Total 2.1 MB/s | 4.1 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Downgrading : openssl-libs-1:3.5.0-4.el9.x86_64 1/4
Downgrading : openssl-1:3.5.0-4.el9.x86_64 2/4
Cleanup : openssl-1:3.5.1-1.el9.x86_64 3/4
Cleanup : openssl-libs-1:3.5.1-1.el9.x86_64 4/4
Running scriptlet: openssl-libs-1:3.5.1-1.el9.x86_64 4/4
Verifying : openssl-1:3.5.0-4.el9.x86_64 1/4
Verifying : openssl-1:3.5.1-1.el9.x86_64 2/4
Verifying : openssl-libs-1:3.5.0-4.el9.x86_64 3/4
Verifying : openssl-libs-1:3.5.1-1.el9.x86_64 4/4
Downgraded:
openssl-1:3.5.0-4.el9.x86_64 openssl-libs-1:3.5.0-4.el9.x86_64
Complete!
덧글을 달아 주세요