Score:0

How to install mbstring on php 8.0?

sk flag
VKo

I need to install mbstring for PHP 8.0 I am on Apache/2.4.57 | Ubuntu 18.04.6 LTS

When I do the command

sudo apt install php-mbstring

I get:

php-mbstring is already the newest version (1:7.2+60ubuntu1).

That is, it is installed for php version 7.2. Also I tried:

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php8.0-mbstring

I took the instructions from here: How to install php8.0-mbstring for php8.0? It keeps installing to php7.2

At the same time I get:

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'

Can you help me, please?

vidarlo avatar
om flag
18.04 is sadly end of standard support, and thus we don't handle it any more, except supporting upgrading to a supported release. I would suggest that you upgrade to 20.04, which is a currently supported LTS release.
guiverc avatar
cn flag
Also note the PPA you mention only provides support for *standard* support LTS releases of Ubuntu, ie. 20.04 & 22.04 currently, with all support for *bionic* removed (it's EOSS). https://launchpad.net/~ondrej/+archive/ubuntu/php
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.