centos8 市场 Cannot update read-only repo

centos进入市场后报错,提示Cannot update read-only repo,且软件列表不能刷新,解决方案,执行如下命令,

dnf install -y centos-release-stream and then dnf update

参考地址

原文地址:https://www.cnblogs.com/happen-/p/12242793.html