By sergeydgr8
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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, @sergeydgr8
Have you tried adding the following channels in the 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
Just open /etc/apt/sources.list in your favorite text editor and add the above lines and then run:
sudo apt install php7.2-mbstring
You can also make sure evetyhing else is up to date by running:
sudo apt-get update
Let me know how it goes.
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.