Description of problem: pam-devel软件包的安装依赖有问题 Version-Release number of selected component (if applicable): [root@localhost ~]# cat /etc/os-release NAME="Anolis OS" VERSION="23.4" ID="anolis" VERSION_ID="23.4" PLATFORM_ID="platform:an23" PRETTY_NAME="Anolis OS 23.4" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugzilla.openanolis.cn/" [root@localhost ~]# How reproducible: 同时安装 pam pam-devel会出现依赖问题 [root@localhost ~]# yum install pam pam-devel 上次元数据过期检查:3:43:39 前,执行于 2026年01月04日 星期日 08时04分56秒。 软件包 pam-1.5.3-3.an23_rva23.riscv64 已安装。 错误: 问题: cannot install both pam-libs-1.5.3-3.an23.riscv64 from updates and pam-libs-1.5.3-3.an23_rva23.riscv64 from @System - package pam-devel-1.5.3-3.an23.riscv64 from updates requires pam-libs = 1.5.3-3.an23, but none of the providers can be installed - package pam-1.5.3-3.an23_rva23.riscv64 from @System requires pam-libs = 1.5.3-3.an23_rva23, but none of the providers can be installed - 无法为该任务安装最佳候选 (尝试在命令行中添加 '--allowerasing' 来替换冲突的软件包 或 '--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用软件包的最佳候选) [root@localhost ~]# 单独安装pam-devel会降级pam [root@localhost ~]# yum install pam-devel 上次元数据过期检查:3:41:51 前,执行于 2026年01月04日 星期日 08时04分56秒。 依赖关系解决。 ================================================================================================================================================================================================= 软件包 架构 版本 仓库 大小 ================================================================================================================================================================================================= 安装: pam-devel riscv64 1.5.3-3.an23 updates 94 k 安装依赖关系: glibc-devel riscv64 2.38-13.an23 updates 436 k kernel-headers riscv64 6.6.102-5.an23 updates 1.4 M libxcrypt-devel riscv64 4.4.36-1.an23 os 26 k 降级: glibc riscv64 2.38-13.an23 updates 1.6 M glibc-all-langpacks riscv64 2.38-13.an23 updates 34 M glibc-common riscv64 2.38-13.an23 updates 283 k glibc-gconv-extra riscv64 2.38-13.an23 updates 1.6 M libxcrypt riscv64 4.4.36-1.an23 os 115 k pam riscv64 1.5.3-3.an23 updates 516 k pam-libs riscv64 1.5.3-3.an23 updates 59 k 事务概要 ================================================================================================================================================================================================= 安装 4 软件包 降级 7 软件包 但实际上可以看到pam-devel、pam、pam-libs其实都是1.5.3-3.an23版本,为什么还需要降级? [root@localhost ~]# rpm -qa | grep pam pam-libs-1.5.3-3.an23_rva23.riscv64 pam-1.5.3-3.an23_rva23.riscv64 Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
zlib似乎也是这样。这是安装机制的问题? [root@localhost anolis-pkg-tests]# yum install zlib zlib-devel -y Last metadata expiration check: 1:08:25 ago on Sun 04 Jan 2026 12:38:36 PM CST. Package zlib-1.2.13-3.an23_rva23.riscv64 is already installed. Error: Problem: cannot install both zlib-1.2.13-3.an23.riscv64 from os and zlib-1.2.13-3.an23_rva23.riscv64 from @System - package zlib-devel-1.2.13-3.an23.riscv64 from os requires zlib = 1.2.13-3.an23, but none of the providers can be installed - cannot install the best candidate for the job - conflicting requests (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages) [root@localhost anolis-pkg-tests]# yum install zlib-devel Last metadata expiration check: 1:09:02 ago on Sun 04 Jan 2026 12:38:36 PM CST. Dependencies resolved. ================================================================================================================================================================================================================================================================================== Package Architecture Version Repository Size ================================================================================================================================================================================================================================================================================== Installing: zlib-devel riscv64 1.2.13-3.an23 os 43 k Downgrading: zlib riscv64 1.2.13-3.an23 os 63 k Transaction Summary ================================================================================================================================================================================================================================================================================== Install 1 Package Downgrade 1 Package Total download size: 106 k Is this ok [y/N]: ^COperation aborted. [root@localhost anolis-pkg-tests]# [root@localhost anolis-pkg-tests]# rpm -qa | grep zlib zlib-1.2.13-3.an23_rva23.riscv64 [root@localhost anolis-pkg-tests]#