[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