CentOS 8安装httpd失败解决办法

技术分享 2024-02-21 333 次浏览 次点赞

今天安装pgadmin4的过程中发生错误,提示

sudo yum install pgadmin4
上次元数据过期检查:0:02:37 前,执行于 2024年02月21日 星期三 17时55分39秒。
错误:
 问题: package pgadmin4-8.3-1.el8.noarch from pgAdmin4 requires pgadmin4-web = 8.3, but none of the providers can be installed
  - package pgadmin4-web-8.3-1.el8.noarch from pgAdmin4 requires httpd, but none of the providers can be installed
  - 无法为该任务安装最佳候选
  - package httpd-2.4.37-41.module_el8.5.0+977+5653bbea.x86_64 from AppStream is filtered out by exclude filtering
  - package httpd-2.4.37-43.module_el8.5.0+1022+b541f3b1.x86_64 from AppStream is filtered out by exclude filtering
(尝试添加 '--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用软件包的最佳候选)

使用安装httpd,又报错

 yum install httpd
上次元数据过期检查:0:01:24 前,执行于 2024年02月21日 星期三 17时55分39秒。
由于您的搜索参数,所有相关结果都已被滤掉: httpd
错误:没有任何匹配: httpd

解决办法使用下面的参数安装httpd

yum --disableexcludes=all install -y httpd

然后再安装pgadmin就可以了。
这种方式安装的httpd卸载也是要用到“--disableexcludes=all”的命令


本文由 王守红 创作,采用 知识共享署名 3.0,可自由转载、引用,但需署名作者且注明文章出处。

还不快抢沙发

添加新评论