乐趣区

关于linux:统信UOS服务器操作系统报模块依赖问题的解决办法

统信 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

退出移动版