Facing this condition on Centos 8 Stream Update

#cat /etc/redhat-release
CentOS Stream release 8
#  dnf upgrade
Last metadata expiration check: 0:26:47 ago on Tue 29 Mar 2022 12:43:17 AM EDT.
Error:
 Problem: package centos-stream-repos-8-4.el8.noarch requires centos-gpg-keys = 1:8-4.el8, but none of the providers can be installed
  - cannot install both centos-gpg-keys-1:8-5.el8.noarch and centos-gpg-keys-1:8-4.el8.noarch
  - cannot install the best update candidate for package centos-stream-repos-8-4.el8.noarch
  - cannot install the best update candidate for package centos-gpg-keys-1:8-4.el8.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@balancer yum.repos.d]# dnf upgrade --allowerasing
Last metadata expiration check: 0:27:01 ago on Tue 29 Mar 2022 12:43:17 AM EDT.
Error:
 Problem: The operation would result in removing the following protected packages: setup
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)


Solution

1. clean yum cache

#yum clean all

2. direct download install

#rpm -ivh http://mirror.centos.org/centos/8-stream/extras/x86_64/os/Packages/centos-gpg-keys-8-5.el8.noarch.rpm