I try install SOAP extension to Linux Mint 19 Tara. I need version for PHP7.4, which is already working.
sudo apt install php7.4-soap
Result:
Loading package lists… Done
A dependency tree is created
Loading status information... Done
E: Unable to find package php7.4-soap
E: Unable to find package matching mask "php7.4-soap"
E: Unable to find package matching regular expression "php7.4-soap"
PHP7.4 have not SOAP extension or what I am doing wrong?
EDIT:
$ apt-cache search soap | grep "php"
libnusoap-php - SOAP toolkit for PHP
php-soap - SOAP module for PHP [default]
php7.2-soap - SOAP module for PHP
- php-soap – SOAP module for PHP [default] php7.2-soap – SOAP module for PHP – tomasr CommentedMar 4 at 10:54
Your OS is too old and not supported by Ondrej PPA anymore.
You can upgrade your OS to a more recent version (suggested as a long-term solution) or try to add this repository (not suggested, always be careful when adding external PPA repositories, especially for old OS):
sudo add-apt-repository ppa:jczaplicki/xenial-php74-temp
sudo apt-get update
sudo apt install php7.4-soap
References? As far as I know Mint 19 should be supported till 2023, and the Ubuntu version it’s based on till 2028, so it’s not that old.
– KrokomotCommentedOct 28, 2023 at 2:34
@Krokomot Mint 19 is based on Ubuntu 18.04 that is not supported anymore (is ESM now, not LTS). Ondrej PPA removed support on June 15, 2023. References: fridge.ubuntu.com/2023/05/13/… and launchpad.net/%7Eondrej/+archive/ubuntu/php
– Alberto FecchiCommentedOct 28, 2023 at 2:54
I tried upgrade to 19.3 during linuxmint-user-guide.readthedocs.io/en/latest/…. Command apt install mintupgrade return me same result like before? Cannot find package mintupgrade. Unfortunately I cannot make clear installation.
– tomasrCommentedOct 30, 2023 at 8:47
So 19.3 is possible, but upgrade to 20 required downgrade PHP and phpmyadmin packages. A clean reinstallation would be better. How difficult it is to keep a tuned computer for development:(.
– tomasrCommentedOct 30, 2023 at 13:58
Not sure why you need to downgrade php if you’re upgrading your OS. Have you tried to launch apt-get update
and/or apt-get upgrade
? Can you share the specific error you’re receiving?
– Alberto FecchiCommentedOct 30, 2023 at 16:21
There might be several several cases in this problem. Either your installed php version is not 7.4 or there is already install soap extension with older version which is conflicting or you have php but there is no repo of php libraries in you ubuntu.
First case:
First check your installed php version by
php -v
Second Case:
Remove old version by
sudo apt remove php-soap
Then fix broken packages by
sudo apt --fix-broken install
Now install php7.4-soap by below commands
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php7.4
sudo apt install php7.4-soap
source from https://stackoverflow.com/questions/77156001/install-soap-extension-to-php-7-4