Error Problem: package iptables-legacy in yum install

About Error:

1
2
3
4
5
6
7
Error:
Problem: package iptables-legacy-1.8.10-2.2.el9.next.x86_64 from @System requires (iptables-libs(x86-64) = 1.8.10-2.el9 or iptables-libs(x86-64) = 1.8.10-2.el9_1), but none of the providers can be installed
- cannot install both iptables-libs-1.8.10-5.el9.x86_64 from baseos and iptables-libs-1.8.10-2.el9.x86_64 from @System
- cannot install both iptables-libs-1.8.10-5.el9.x86_64 from baseos and iptables-libs-1.8.10-2.el9.x86_64 from baseos
- cannot install the best update candidate for package iptables-libs-1.8.10-2.el9.x86_64
- problem with installed package iptables-legacy-1.8.10-2.2.el9.next.x86_64
(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)

Solve solution:

1
2
yum clean packages
yum upgrade --skip-broken --allowerasing