gpt4 book ai didi

PHP 安装 : Error: It is not possible to switch enabled streams of a module

转载 作者:行者123 更新时间:2023-12-04 11:51:08 24 4
gpt4 key购买 nike

我尝试使用以下命令将 php 从 7.2 升级到 centos 8 中的最新 7.4 版本:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm

dnf module list php
但是当我启动这个命令时: dnf module enable php:remi-7.4 -y我收到此错误:
Last metadata expiration check: 0:05:44 ago on Fri 24 Jul 2020 08:56:07 PM CEST.
Dependencies resolved.
The operation would result in switching of module 'php' stream '7.2' to stream 'remi-7.4'
Error: It is not possible to switch enabled streams of a module.
It is recommended to remove all installed content from the module, and reset the module using 'dnf module reset <module_name>' command. After you reset the module, you can install the other stream.
我怎样才能解决这个问题?

最佳答案

正如 wizard instructions 所解释的,并且如粘贴的错误消息中所述,您需要在启用新版本流之前禁用旧版本流:

dnf module reset php
dnf module install php:remi-7.4
dnf update

关于PHP 安装 : Error: It is not possible to switch enabled streams of a module,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63080021/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com