英文:
Install Remi repository on CentOS Linux release 8.5.2111 (not CentOS 8 stream)
问题
我想在我的旧Centos 8.5.2111服务器上升级到PHP 8.1,但我无法安装Remi仓库。我遇到以下问题:
缺少 (redhat-release >= 8.7 或 centos-stream-release >= 8) 所需的 remi-release-8.7-2.el8.remi.noarch
[xxxxx@yyyy ~]$ cat /etc/redhat-release
CentOS Linux release 8.5.2111
[xxxxx@yyyy ~]$ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-8.noarch.rpm
上次元数据到期检查:0:36:51前于XXX yy年2月12日 2023年上午12:07:52 CET。
epel-release-latest-8.noarch.rpm 53 kB/s | 24 kB 00:00
epel-next-release-latest-8.noarch.rpm 30 kB/s | 11 kB 00:00
包 epel-release-8-18.el8.noarch 已安装。
包 epel-next-release-8-18.el8.noarch 已安装。
解决了依赖关系。
无需执行任何操作。
[xxxxx@yyyy ~]$ sudo dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
上次元数据到期检查:0:37:07前于XXX yy年2月12日 2023年上午12:07:52 CET。
remi-release-8.rpm 247 kB/s | 31 kB 00:00
错误:
问题:冲突的请求
- 缺少 (redhat-release >= 8.7 或 centos-stream-release >= 8) 所需的 remi-release-8.7-2.el8.remi.noarch
(尝试添加 '--skip-broken' 以跳过无法安装的软件包,或使用 '--nobest' 以使用不仅仅是最佳候选软件包)
也许我遗漏了什么吗?
英文:
I want to update to PHP 8.1 in my old Centos 8.5.2111 server. But I'm unable to install Remi repository. I get the following:
othing provides (redhat-release >= 8.7 or centos-stream-release >= 8) needed by remi-release-8.7-2.el8.remi.noarch
<pre><code>[xxxxx@yyyy ~]$ cat /etc/redhat-release
CentOS Linux release 8.5.2111
[xxxxx@yyyy ~]$ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-8.noarch.rpm
Last metadata expiration check: 0:36:51 ago on XXX yy Feb 2023 12:07:52 AM CET.
epel-release-latest-8.noarch.rpm 53 kB/s | 24 kB 00:00
epel-next-release-latest-8.noarch.rpm 30 kB/s | 11 kB 00:00
Package epel-release-8-18.el8.noarch is already installed.
Package epel-next-release-8-18.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[xxxxx@yyyy ~]$ sudo dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
Last metadata expiration check: 0:37:07 ago on XXX yy Feb 2023 12:07:52 AM CET.
remi-release-8.rpm 247 kB/s | 31 kB 00:00
Error:
Problem: conflicting requests
- nothing provides (redhat-release >= 8.7 or centos-stream-release >= 8) needed by remi-release-8.7-2.el8.remi.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
</code></pre>
Maybe I missing something?
答案1
得分: 2
这条消息看起来很清楚。
您需要更新到操作系统的最新版本,如FAQ中所解释的。旧版本存在安全风险,不再得到支持,而第三方存储库中的支持也不可持续。
您可以选择切换到以下选项:
-
CentOS Stream 8,查看 https://www.centos.org/centos-stream/ 并使用迁移工具
-
RHEL 8.7,查看 https://www.redhat.com/en/blog/new-year-new-red-hat-enterprise-linux-programs-easier-ways-access-rhel
-
Alma Linux 8.7,查看 https://almalinux.org/ 并使用迁移工具
-
Rocky Linux 8.7,查看 https://rockylinux.org/ 并使用迁移工具
-
任何其他的RHEL克隆
英文:
The message seems clear.
You need to update to the latest version of the OS, as explained in the FAQ. Older versions are insecure and unsupported, and their support in 3rd party repository is not sustainable.
You can choose to switch to
-
CentOS Stream 8, see https://www.centos.org/centos-stream/ with migration tools
-
RHEL 8.7, see https://www.redhat.com/en/blog/new-year-new-red-hat-enterprise-linux-programs-easier-ways-access-rhel
-
Alma Linux 8.7 see https://almalinux.org/ with migration tools
-
Rocky Linux 8.7 https://rockylinux.org/ with migration tools
-
Any other RHEL clone
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论