0

When I try to install php7-mbstring I get the following error:

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.

I tried what is advice here: How do I resolve unmet dependencies after adding a PPA?. But it did'n work... Any advice ?

Thanks !

11
  • Try sudo apt install php7.0-common php7.0-mbstring Jan 3, 2017 at 11:20
  • Same problem... I think my system is not getting the right version of mbstring. But the package for 7.0.13 exists here : launchpad.net/ubuntu/xenial/armhf/php7.0-mbstring/…
    – Yo Deux
    Jan 3, 2017 at 11:23
  • How did you install php 7, do you remember ? Jan 3, 2017 at 11:24
  • apt-get install php7.0-common
    – Yo Deux
    Jan 3, 2017 at 11:25
  • Did you do sudo apt -f install or you did sudo apt-get -f install ? Jan 3, 2017 at 11:25

1 Answer 1

0

Finally, I managed to resolve the issue by searching for the package on Ubuntu depository.

The php7.0-mbstring for php 7.0.13 was on the proposed repository that wasn't in my source list

So I edited my sources.list in /etc/apt/sources.list by adding

deb http://archive.ubuntu.com/ubuntu/ xenial-proposed restricted main multiverse universe

then run apt-get update and then apt-get install php7.0-mbstring

Worked fine !

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .