anolis 8.8 (CentOS 8) yum update error: Problem 1: package mod_ssl-1:2.4.37-56.0.1.module+an8.8.0+11061+87142f8c.6.x86_64 requires , but none of the providers can be installed

发布时间 2023-07-10 18:02:15作者: blues667

#yum update

error message: 

Problem 1: package mod_ssl-1:2.4.37-56.0.1.module+an8.8.0+11061+87142f8c.6.x86_64 requires httpd = 2.4.37-56.0.1.module+an8.8.0+11061+87142f8c.6, but none of the providers can be installed   - cannot install the best update candidate for package mod_ssl-1:2.4.37-47.0.1.module+an8.7.0+10879+020f8869.2.x86_64   - package httpd-2.4.37-56.0.1.module+an8.8.0+11061+87142f8c.6.x86_64 is filtered out by exclude filtering

following lines betweened ========= comes from reference blog: https://blog.csdn.net/weixin_53685939/article/details/121880502

========================================================================================

1、 yum clean all
2、rpm --rebuilddb
3、 yum update

rpm 也有自己的数据库,出现此错误是因为数据库异常导致的
所以 此时重构一下数据库就可以了 rpm --rebuilddb(重新建立了rpm库里的记录,不会安装和删除任何的包)

==========================================================================================

#yum update --allowerasing --skip-broken --nobest 

//succed

#yum install  --allowerasing --skip-broken --nobest  httpd* 

//succed