I've got a webserver running a few different php versions. Whereas php 8.2 has mbstring installed, I need to install mbstring for php 7.4 as well. However, when trying to install it using sudo apt-get install php7.4-mbstring
I receive the following error:
E: Unable to locate package php7.4-mbstring
E: Couldn't find any package by glob 'php7.4-mbstring'
E: Couldn't find any package by regex 'php7.4-mbstring'
I have tried running sudo apt-get update
and sudo apt-get upgrade
but the installation still fails.
I've also tried adding the "universe" repository as described in this thread: Cannot install php-mbstring on ubuntu 18.04
In addition I've also added the ondrej repository sudo add-apt-repository ppa:ondrej/php
but again with the result being the same.
None of the proposed answers in the following threads have lead to a solution so far:
The server is running Ubuntu 18.04