仓库在 Centos 上处于离线状态,无法更新 dnf



我完成了服务器的安装,在安装过程中,我使用了很多时间命令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

最新更新