dongtai6741 2019-05-02 07:44
浏览 586
已采纳

在Debian上安装php7.1-bcmath

I'm trying to install bcmath for PHP 7.1 on Debian GNU/Linux 9 (stretch) :

apt install php7.1-bcmath throw a not found error.

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 ?

I've already tried an apt-get update --fix-missing with no success.

It's seems specific to php7.1 because when I try other versions everything seems fine and ask for confirmation:

apt-get install php-bcmath
apt-get install php7.0-bcmath
  • 写回答

1条回答 默认 最新

  • dsafgdafgdf45345 2019-05-02 08:27
    关注

    Thanks to @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
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 网络科学导论,网络控制
  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)