统信UOS服务器操作系统20版本1050a在yum或dnf进行软件管理中,会报错,如下,虽然暂时没发现有啥影响,但是看着很痛苦

模块依赖问题:

 问题 1: module docker:uelc20:2020230105014926:bd07c72b-0.x86_64 requires module(container-tools:uelc20), but none of the providers can be installed
  - module container-tools:uelc20:2020220902112528:b5192a5c-0.x86_64 conflicts with module(container-tools:an8) provided by container-tools:an8:2020220106133314:b4ae771c-0.x86_64
  - module container-tools:an8:2020220106133314:b4ae771c-0.x86_64 conflicts with module(container-tools:uelc20) provided by container-tools:uelc20:2020220902112528:b5192a5c-0.x86_64
  - module container-tools:uelc20:2020221229072209:b5192a5c-0.x86_64 conflicts with module(container-tools:an8) provided by container-tools:an8:2020220106133314:b4ae771c-0.x86_64
  - module container-tools:an8:2020220106133314:b4ae771c-0.x86_64 conflicts with module(container-tools:uelc20) provided by container-tools:uelc20:2020221229072209:b5192a5c-0.x86_64
  - module container-tools:uelc20:2020230130082020:b5192a5c-0.x86_64 conflicts with module(container-tools:an8) provided by container-tools:an8:2020220106133314:b4ae771c-0.x86_64
  - module container-tools:an8:2020220106133314:b4ae771c-0.x86_64 conflicts with module(container-tools:uelc20) provided by container-tools:uelc20:2020230130082020:b5192a5c-0.x86_64
  - conflicting requests
 问题 2: module rust-toolset:uelc20:2020221215055743:301fb081-0.x86_64 requires module(llvm-toolset:uelc20), but none of the providers can be installed
  - module llvm-toolset:uelc20:2020220702202350:37d8506f-0.x86_64 conflicts with module(llvm-toolset:an8) provided by llvm-toolset:an8:2020211222153255:37d8506f-0.x86_64
  - module llvm-toolset:an8:2020211222153255:37d8506f-0.x86_64 conflicts with module(llvm-toolset:uelc20) provided by llvm-toolset:uelc20:2020220702202350:37d8506f-0.x86_64
  - module llvm-toolset:uelc20:2020221115064120:37d8506f-0.x86_64 conflicts with module(llvm-toolset:an8) provided by llvm-toolset:an8:2020211222153255:37d8506f-0.x86_64
  - module llvm-toolset:an8:2020211222153255:37d8506f-0.x86_64 conflicts with module(llvm-toolset:uelc20) provided by llvm-toolset:uelc20:2020221115064120:37d8506f-0.x86_64
  - conflicting requests

查了点资料,发现是某些模块被禁用导致,我这边是是container-tools和llvm-toolset两个模块,都和虚拟化相关,解决办法如下

先通过如下命令查询模块状态

dnf module info container-tools

发现状态为[d],即禁用状态disabled

Name             : container-tools
Stream           : uelc20 **[d]**
Version          : 2020230130082020

需要重置模块,命令如下

dnf module reset container-tools

提示确认,输入y回车

以下是几个常用的模块管理命令

  • 启用模块:dnf module enable xxx
  • 禁用模块:dnf module disable xxx
  • 查看模块详情: dnf module info xxx
  • 模块列表:dnf module list xxx

更多命令请查看帮助文档

dnf module -h


查尔斯
8.4k 声望649 粉丝