gpt4 book ai didi

php - mbstring Ubuntu 14.04 依赖包冲突

转载 作者:行者123 更新时间:2023-12-04 18:33:30 25 4
gpt4 key购买 nike

我正在尝试在我的 Ubuntu 14.04 机器上安装 PHP mbstring 模块。我使用“sudo apt-get -f install php7.0-mbstring”来安装模块。我在“/etc/apt/sources.list”中添加了必要的源列表。

当我运行上面的 mbstring 安装命令时,出现以下错误。

The following packages have unmet dependencies: php7.0-mbstring : Depends: php7.0-common (= 7.0.33-0ubuntu0.16.04.6) but 7.0.21-1~ubuntu14.04.1+deb.sury.org+1 is to be installed Conflicts: php7.0-mbstring:i386 but 7.0.33-0ubuntu0.16.04.6 is to be installed php7.0-mbstring:i386 : Depends: php-common:i386 (>= 1:33) but it is not installable Depends: php7.0-common:i386 (= 7.0.33-0ubuntu0.16.04.6) but it is not going to be installed Depends: libc6:i386 (>= 2.4) but it is not going to be installed Conflicts: php7.0-mbstring but 7.0.33-0ubuntu0.16.04.6 is to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

此处推荐的解决方案是什么?我需要卸载 PHP 7.0 并重新安装还是有其他低风险解决方案?

编辑:我也尝试使用 sudo apt-get -f install 安装。我得到同样的以下错误,

php7.0-mbstring:i386 : Depends: php-common:i386 (>= 1:33) but it is not installable Depends: php7.0-common:i386 (= 7.0.33-0ubuntu0.16.04.6) but it is not installed Depends: libc6:i386 (>= 2.4) but it is not installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies

最佳答案

首先确保你的包列表是最新的,尝试:

sudo apt-get update

在它再次尝试安装packeage之后

sudo apt-get install php7.0-mbstring

如果没有帮助尝试将 php 存储库添加到源列表,例如您可以使用 this PPA

sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0-mbstring

关于php - mbstring Ubuntu 14.04 依赖包冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58056949/

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