Simply adding Surys PPA won’t crash your system. Installing some packages and overriding existing ones as a result – MIGHT (but usually won’t).
My usual approach is to install all PHP versions from Sury’s PPA because I need to run a few PHP versions running next to each other on the same system.
Please first remove all ubuntu PHP packages before installing the ones Sury provides. All should be good afterward.
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
This should allow you to install soap for php7.1 with
sudo apt-get install php7.1-soap
I just checked this on 16.04.4.
updated answer, because just checked on digitalocean 16.04 droplet, adding sury PPA DOES allow you to install php7.1-soap, so just added the command I used to install it. If your php project requires php7.1, using 7.0 is no-go.
– Jan MyszkierCommentedOct 12, 2018 at 12:09
OK, this really seems to work according to the output of apt-cache policy php7.1-soap
I got after I added the repository. The package is not listed on the PPA webpage though…
– MelebiusCommentedOct 12, 2018 at 14:12
source from https://askubuntu.com/questions/1083169/unable-to-locate-package-php7-1-soap