Posted
Filed under Computer/Linux
# yum update
Last metadata expiration check: 0:06:06 ago on Tue 14 Jun 2022 06:27:04 PM PDT.
Module yaml error: Unexpected key in data: static_context [line 9 col 3]
Module yaml error: Unexpected key in data: static_context [line 9 col 3]
Error: 
 Problem: package centos-stream-release-8.6-1.el8.noarch requires centos-stream-repos, but none of the providers can be installed
  - package centos-linux-repos-8-2.el8.noarch conflicts with centos-repos(8) provided by centos-stream-repos-8-2.el8.noarch
  - package centos-stream-repos-8-2.el8.noarch conflicts with centos-repos(8) provided by centos-linux-repos-8-2.el8.noarch
  - package centos-linux-repos-8-2.el8.noarch conflicts with centos-repos(8) provided by centos-stream-repos-8-3.el8.noarch
  - package centos-stream-repos-8-3.el8.noarch conflicts with centos-repos(8) provided by centos-linux-repos-8-2.el8.noarch
  - package centos-linux-repos-8-2.el8.noarch conflicts with centos-repos(8) provided by centos-stream-repos-8-4.el8.noarch
  - package centos-stream-repos-8-4.el8.noarch conflicts with centos-repos(8) provided by centos-linux-repos-8-2.el8.noarch
  - package centos-linux-repos-8-2.el8.noarch conflicts with centos-repos(8) provided by centos-stream-repos-8-6.el8.noarch
  - package centos-stream-repos-8-6.el8.noarch conflicts with centos-repos(8) provided by centos-linux-repos-8-2.el8.noarch
  - cannot install the best update candidate for package centos-linux-release-8.3-1.2011.el8.noarch
  - problem with installed package centos-linux-repos-8-2.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)



But can not remove centos-linux-repos-8-2.el8.noarch .
# yum erase --skip-broken --nobest centos-linux-repos-8-2.el8.noarch 
Error: 
 Problem: The operation would result in removing the following protected packages: setup

This time you can upgrade repo then automatically remove that repo.
# dnf swap centos-{linux,stream}-repos
Dependencies resolved.
======================================================================================================================================================================================================================================
 Package                                                         Architecture                                     Version                                               Repository                                               Size
======================================================================================================================================================================================================================================
Installing:
 centos-stream-release                                           noarch                                           8.6-1.el8                                             Stream-BaseOS                                            22 k
     replacing  centos-linux-release.noarch 8.3-1.2011.el8
     replacing  centos-release-stream.x86_64 8.1-1.1911.0.7.el8
 centos-stream-repos                                             noarch                                           8-6.el8                                               Stream-BaseOS                                            20 k
Upgrading:
 centos-gpg-keys                                                 noarch                                           1:8-6.el8                                             Stream-BaseOS                                            14 k
Removing:
 centos-linux-repos                                              noarch                                           8-2.el8                                               @BaseOS                                                  26 k
Transaction Summary
======================================================================================================================================================================================================================================
Install  2 Packages
Upgrade  1 Package
Remove   1 Package
Total download size: 57 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): centos-stream-release-8.6-1.el8.noarch.rpm                                                                                                                                                     118 kB/s |  22 kB     00:00    
(2/3): centos-stream-repos-8-6.el8.noarch.rpm                                                                                                                                                         105 kB/s |  20 kB     00:00    
(3/3): centos-gpg-keys-8-6.el8.noarch.rpm                                                                                                                                                              75 kB/s |  14 kB     00:00    
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                  96 kB/s |  57 kB     00:00     

and everything OK.
2022/06/15 11:11 2022/06/15 11:11
[로그인][오픈아이디란?]