gpt4 book ai didi

linux - 为什么我无法使用 YUM 更新 - 使用 CentOS Stream 8

转载 作者:行者123 更新时间:2023-12-04 19:32:46 25 4
gpt4 key购买 nike

我无法更新 CentOS Stream 8 中的任何组件。

我确实在 https://access.redhat.com/management/subscriptions 创建了两个订阅

订阅 1:60 天红帽企业 Linux 服务器产品试用,具有智能管理、监控和所有附加组件,自支持(物理或虚拟节点)

订阅 2:Red Hat Beta Access

我已将这两个订阅分配到我的系统,并重新启动。当我尝试检查更新时,我收到以下信息:

[lloyd@localhost ~]$ sudo yum check-update
Updating Subscription Management repositories.
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/epel.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/epel.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/epel.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/pgdg-redhat-all.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/pgdg-redhat-all.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/pgdg-redhat-all.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/pgdg-redhat-all.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/pgdg-redhat-all.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/pgdg-redhat-all.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/pgdg-redhat-all.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/pgdg-redhat-all.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/pgdg-redhat-all.repo; Configuration: OptionBinding with id "failovermethod" does not exist
Last metadata expiration check: 0:00:24 ago on Wed 29 Dec 2021 11:45:08 AM GMT.

任何关于我哪里出错的建议都将不胜感激。

谢谢

最佳答案

看起来 EL8 不再支持故障转移方法,因为它已从 DNF 中删除。

您可以从 .repo 文件中删除并尝试:

sudo sed -i '/^failovermethod=/d' /etc/yum.repos.d/*.repo

关于linux - 为什么我无法使用 YUM 更新 - 使用 CentOS Stream 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70519032/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com