我正在使用ubuntu 18.04。 我正在尝试安装mbstring,但是terminall显示错误:
php-mbstring : Depends: php7.2-mbstring but it is not going to be installed
所以我试图安装php7.2-mbstring但又出现错误:
php7.2-mbstring : Depends: php7.2-common (= 7.2.3-1ubuntu1) but 7.2.7-0ubuntu0.18.04.2 is to be installed
对不起,我英语不好。 任何人都知道如何解决这个问题:(
答案 0 :(得分:0)
用以下几行编辑文件/etc/apt/sources.list:
deb http://archive.ubuntu.com/ubuntu bionic main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu bionic-security main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main multiverse restricted universe
保存并运行:
sudo apt update && sudo apt-get upgrade
sudo apt-get install php7.2-mbstring
完成
来源:https://askubuntu.com/questions/1064634/unable-to-install-php-mbstring