I'm using ubuntu 18.04. I'm trying to install mbstring but terminall show error:
php-mbstring : Depends: php7.2-mbstring but it is not going to be installed
So I' trying to install php7.2-mbstring but error again:
php7.2-mbstring : Depends: php7.2-common (= 7.2.3-1ubuntu1) but 7.2.7-0ubuntu0.18.04.2 is to be installed
Sorry for my bad english. Anyone have idea how to fix this :(
确保为 apt-get 启用了“universe”存储库:
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
Edit the file /etc/apt/sources.list with the next lines:
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
Save and run:
sudo apt update && sudo apt-get upgrade
sudo apt-get install php7.2-mbstring
And it's done
Source: https://askubuntu.com/questions/1064634/unable-to-install-php-mbstring
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.