is filtered out by modular filtering

[root@c libvirt-build]# dnf install -y gcc-c++
Last metadata expiration check: 0:00:14 ago on Tue 23 Aug 2022 05:03:23 AM CST.
Detection of Platform Module failed: No valid Platform ID detected
All matches were filtered out by modular filtering for argument: gcc-c++

Last metadata expiration check: 0:00:10 ago on Tue 23 Aug 2022 04:59:14 AM CST.
Detection of Platform Module failed: No valid Platform ID detected
Error:
Problem: package rpm-build-4.15.1-17.ky10.x86_64 requires gcc-c++, but none of the providers can be installed

  • conflicting requests
  • package gcc-c+±7.3.0-20190804.35.p02.ky10.x86_64 is filtered out by modular filtering
    (try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)

=================================
解决方式
方式一:
在 /etc/yum.repos.d/xx.repo 中添加:
module_hotfixes=1

方式二:
在这里插入图片描述
在 /etc/yum.conf 添加设置默认 platform id
module_platform_id=platform:f30

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值