在 Debian 上安装 php7.1-bcmath

Install php7.1-bcmath on Debian

我正在尝试在 Debian GNU/Linux 9 (stretch) 上为 PHP 7.1 安装 bcmath :

apt install php7.1-bcmath 抛出一个未找到的错误。

Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  dh-php libexporter-tiny-perl liblist-moreutils-perl libssl-doc pkg-php-tools shtool xml2
Veuillez utiliser « apt autoremove » pour les supprimer.
Les NOUVEAUX paquets suivants seront installés :
  php7.1-bcmath
0 mis à jour, 1 nouvellement installés, 0 à enlever et 266 non mis à jour.
Il est nécessaire de prendre 15,8 ko dans les archives.
Après cette opération, 65,5 ko d'espace disque supplémentaires seront utilisés.
Err:1 https://packages.sury.org/php stretch/main amd64 php7.1-bcmath amd64 7.1.24-1+0~20181112093455.10+stretch~1.gbp09a4fd
  404  Not Found
E: Impossible de récupérer https://packages.sury.org/php/pool/main/p/php7.1/php7.1-bcmath_7.1.24-1+0~20181112093455.10+stretch~1.gbp09a4fd_amd64.deb  404  Not Found
E: Impossible de récupérer certaines archives, peut-être devrez-vous lancer apt-get update ou essayer avec --fix-missing ?

我已经尝试过 apt-get update --fix-missing 但没有成功。

它似乎特定于 php7.1,因为当我尝试其他版本时一切似乎都很好并要求确认:

apt-get install php-bcmath
apt-get install php7.0-bcmath

感谢@apokryfos I was able to make it work by following instructions here : https://packages.sury.org/php/README.txt

apt-get -y install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
apt-get update