I’m currently running Ubuntu 14.04 on a several year-old droplet. I’ve updated my repos and sources, made sure universe and multiverse are enabled, and yet I’m still having trouble getting mbstring installed on this droplet.
I’ve tried installing php-mbstring, php7.0-mbstring, php7.2-mbstring, and it still turns up with the same error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php7.2-mbstring
E: Couldn't find any package by regex 'php7.2-mbstring'
I’ve tried to find all the resources I can to remedy this. I’ve followed these: https://askubuntu.com/questions/1048389/package-php7-2-mbstring-missing-in-ubuntu-18-04 https://www.digitalocean.com/community/questions/e-unable-to-locate-package-php-mbstring
with no progress. I noticed there are a few digitalocean.com mirrors in my repo list, could they be in conflict with official Ubuntu archives?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hello, @sergeydgr8
Have you tried adding the following channels in the sources.list:
Just open /etc/apt/sources.list in your favorite text editor and add the above lines and then run:
You can also make sure evetyhing else is up to date by running:
Let me know how it goes.
Regards, Alex