Rocky Linux 9 在安装或更新 openssl-libs 时候提示”错误:事务测试失败“

今天在 Rocky Linux 9 下执行 dnf update 对系统进行更新的时候,系统出现错误提示,具体报错:

错误:事务测试失败: file /usr/lib64/ossl-modules/fips.so from install of openssl-libs-1:3.2.2-7.el9.x86_64 conflicts with file from package openssl-fips-provider-so-3.0.7-6.el9_5.x86_64

image 7.png,Rocky Linux 9 在安装或更新 openssl-libs 时候提示”错误:事务测试失败“

这个错误表明在尝试安装或更新 openssl-libs 包时,与已安装的 openssl-fips-provider-so 包发生了文件冲突。具体来说,/usr/lib64/ossl-modules/fips.so 文件在两个包中都存在,导致冲突。

解决方法如下:

一、卸载 openssl-fips-provider-so:

dnf remove openssl-fips-provider-so

二、如果执行卸载过程中系统提示:错误:问题: 这个操作将会导致删除以下受保护的软件包: systemd (尝试添加 ‘–nobest’ 来不只使用软件包的最佳候选),则可以执行以下命令强制删除(存在一定风险,需要慎重考虑):

rpm -e –nodeps openssl-fips-provider-so

三、清理 dnf 缓存并重新执行系统更新

dnf clean packages

dnf update

也可以单独执行 openssl-libs 的安装:

dnf install openssl-libs

最后,还是那句话,除了 Rocky Linux 外,本文还适用于从 Redhat Enterprise Linux 9 衍生而来的各个 Linux 系统,当然也包括 Redhat Enterprise Linux 9 本身。

如需转载本站的文章,请先通过电子邮件的方式联系站长,站长确认后方可转载,并需要注明出处。

为您推荐