当我试图安装php7-mbstring时,我会得到以下错误:
The following packages have unmet dependencies:
php7.0-mbstring : Depends: php7.0-common (= 7.0.8-0ubuntu0.16.04.3)
but 7.0.13-0ubuntu0.16.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.我尝试了这里的建议:如何在添加PPA之后解决未满足的依赖关系?。但没有用..。有什么建议吗?
谢谢!
发布于 2017-01-04 10:51:43
最后,我通过在Ubuntu存储库上搜索包来解决这个问题。
php 7.0.13的php7.0-mbstring位于我的源代码列表之外的建议存储库中。
因此,我在/etc/apt/sources.list中编辑了,方法是添加
deb http://archive.ubuntu.com/ubuntu/ xenial-proposed restricted main multiverse universe然后运行apt-get update,然后运行apt-get install php7.0-mbstring
工作得很好!
https://askubuntu.com/questions/867417
复制相似问题