Red Hat Enterprise Linux 8.3 安装Cockpit

1、执行 dnf install cockpit 命令时提示错误信息为:

警告:加载 '/etc/yum.repos.d/local.repo' 失败,跳过。
错误:在"/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d"中没有被启用的仓库
这个问题怎么解决

执行如下命令:

wget -O /etc/yum.repos.d/redhat.repo http://mirrors.aliyun.com/repo/Centos-8.repo
yum clean all
yum makecache