I am trying to install mbstring, but running:
sudo apt-get install php8.0-mbstring
Returns this error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php8.0-mbstring
E: Couldn't find any package by glob 'php8.0-mbstring'
E: Couldn't find any package by regex 'php8.0-mbstring'
Could you help me?
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!
Hi @BenitoMartinez,
Have you managed to install other php8.0 extensions? My suggestion would be to upgrade to an Ubuntu 20.04 and it would work out of the box. I know this is not the question you are asking however, Ubuntu 16.04 has EOL and all new packages are not provided for that version.
This is the official PHP response on older Ubuntu versions:
Only Supported Versions of PHP (http://php.net/supported-versions.php) for Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided. Don't ask for end-of-life PHP versions or Ubuntu release, they won't be provided.
as such, I’ll recommend upgrading to a newer version of Ubuntu.
Hello there,
I’ll strongly recommend upgrading to a later Ubuntu version due to the fact Ubuntu 16.04 has reached its EOL.
You can still install packages using custom repositories.
- sudo add-apt-repository ppa:ondrej/php
- sudo apt-get install php8.0-mbstring
Then you’ll need to restart the web service (Nginx/Apache)
Hope that this helps!
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.