在CentOS Linux release 8.5.2111(非CentOS 8流)上安装Remi仓库。

huangapple go评论73阅读模式
英文:

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中所解释的。旧版本存在安全风险,不再得到支持,而第三方存储库中的支持也不可持续。

您可以选择切换到以下选项:

英文:

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

huangapple
  • 本文由 发表于 2023年2月18日 07:54:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/75490236.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定