当我试图安装Remi存储库来下载php时,我遇到了麻烦。当我使用命令时:
dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
我有一个错误:
Error:
Problem: conflicting requests
- nothing provides redhat-release >= 8.6 needed by remi-release-8.6-1.el8.remi.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
我做错了什么?谢谢你的帮助!
我执行了以下操作来升级我的CentOS。
dnf -y install centos-release-stream
dnf -y swap centos-{linux,stream}-repos
dnf -y distro-sync
如错误消息所述,您需要CentOS>=8.6从";remi";存储库。
提醒,CentOS 8最新版本为8.5,但不再支持,您必须切换到替代版本:
- CentOS8Stream,查看如何切换
- RHEL 8(可免费订阅(
- Alma Linux
- Rocky Linux
- 或其他一些RHEL克隆