首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在debian 9.3中安装php7.0-mbstring

如何在debian 9.3中安装php7.0-mbstring
EN

Unix & Linux用户
提问于 2017-12-19 15:25:00
回答 1查看 3.7K关注 0票数 0

我无法安装php7.0-mbstring:

以下软件包有未满足的依赖关系: php7.0-mbstring :依赖性:php7.0-公共(= 7.0.19-1),但7.0.20-1~dotdeb+8.2将被安装E:无法纠正问题,您已经持有了损坏的包。

sources.list:

代码语言:javascript
运行
复制
deb http://debian.man.ac.uk/debian/ stretch main deb-src http://debian.man.ac.uk/debian/ stretch main

deb http://security.debian.org/ stretch/updates main contrib deb-src http://security.debian.org/ stretch/updates main contrib

deb http://ftp.at.debian.org/debian/ stretch-updates main contrib non-free deb-src http://ftp.at.debian.org/debian/ stretch-updates main contrib non-free

deb http://download.webmin.com/download/repository sarge contrib

apt-cache policy输出:

代码语言:javascript
运行
复制
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://download.webmin.com/download/repository sarge/contrib amd64 Packages
     release v=3.1,o=Jamie Cameron,a=stable,n=sarge,l=Webmin,c=contrib,b=amd64
     origin download.webmin.com
 500 http://ftp.at.debian.org/debian stretch-updates/main amd64 Packages
     release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=amd64
     origin ftp.at.debian.org
 500 http://security.debian.org stretch/updates/contrib amd64 Packages
     release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=contrib,b=amd64
     origin security.debian.org
 500 http://security.debian.org stretch/updates/main amd64 Packages
     release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=main,b=amd64
     origin security.debian.org
 500 http://debian.man.ac.uk/debian stretch/main amd64 Packages
     release v=9.3,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64
     origin debian.man.ac.uk

apt-cache policy php7.0-common输出:

代码语言:javascript
运行
复制
  Installed: 7.0.20-1~dotdeb+8.2
  Candidate: 7.0.20-1~dotdeb+8.2
  Version table:
  *** 7.0.20-1~dotdeb+8.2 100
        100 /var/lib/dpkg/status
      7.0.19-1 500
        500 http://debian.man.ac.uk/debian stretch/main amd64 Packages
EN

回答 1

Unix & Linux用户

发布于 2017-12-20 11:34:29

您有一个来自dotdeb的php7.0-common版本,您的存储库列表不再了解这个版本,并且它阻止您安装Debian9PHP包。您应该删除它以及依赖于它的任何包,并从Debian存储库中安装php7.0-common

代码语言:javascript
运行
复制
sudo apt remove php7.0-common
sudo apt install php7.0-mbstring
票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/411835

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档