Apache 存储库在Centos上脱机,无法更新dnf

Apache 存储库在Centos上脱机,无法更新dnf,apache,cloudflare,Apache,Cloudflare,我完成了服务器的安装,在安装过程中,我使用了大量的时间来执行命令dnf update,没有出现任何问题。现在,我尝试使用命令dnf update,发现以下错误: [root@li1135-74 ~]# dnf update mod_cloudflare Packages 62 kB/s | 854 B 00:00 Error: Loading repository 'modcloudflare' has failed 我以前安装过mo

我完成了服务器的安装,在安装过程中,我使用了大量的时间来执行命令
dnf update
,没有出现任何问题。现在,我尝试使用命令
dnf update
,发现以下错误:

[root@li1135-74 ~]# dnf update
mod_cloudflare Packages                          62 kB/s | 854  B     00:00
Error: Loading repository 'modcloudflare' has failed
我以前安装过
mod_cloudflare
,它工作正常。但是,它可能存在问题(可能其存储库处于脱机状态?),因此如何使用
dnf update
,但跳过此
mod_cloudflare
错误?我只想基于其他存储库进行更新。
dnf
上是否有一个参数“跳过”有错误的存储库


编辑:我正在使用带LAMP的CENTOS 8。

您可以做的是临时禁用此回购

dnf config-manager --set-disabled modcloudflare
进行更新

dnf update
然后,如果需要,启用它

dnf config-manager --set-enabled modcloudflare