[英]Cannot install php7.2-bcmath on Debian
我按照說明做所有事情: PHP | “您的系統中缺少請求的 PHP 擴展 bcmath。”
apt-get update
apt-get install php7.2-bcmath
我得到:
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package php7.2-bcmath E: Couldn't find any package by regex 'php7.2-bcmath'
為什么系統找不到這個模塊?
使用deb.sury.org只需將https://packages.sury.org/php/添加到您的 apt/sources.list 中,瞧。 有 php7.2-bcmath 和很多其他 php 的東西
它對我不起作用。 我將代碼添加到文件中(第 8 行)
deb http://mirror.hetzner.de/debian/packages jessie main contrib non-free
deb http://http.debian.net/debian jessie main contrib non-free
deb http://http.debian.net/debian/ jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
# deb http://ftp.debian.org/debian jessie-backports main contrib non-free
deb http://http.us.debian.org/debian/ jessie main
# deb http://ftp.debian.org/debian stable main contrib
deb https://packages.sury.org/php/
它顯示了錯誤:
E:源列表 /etc/apt/sources.list (dist) 中的第 8 行格式錯誤 E:無法讀取源列表。
所以我在最后一行添加了:“jessie main”
deb http://mirror.hetzner.de/debian/packages jessie main contrib non-free
deb http://http.debian.net/debian jessie main contrib non-free
deb http://http.debian.net/debian/ jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
# deb http://ftp.debian.org/debian jessie-backports main contrib non-free
deb http://http.us.debian.org/debian/ jessie main
# deb http://ftp.debian.org/debian stable main contrib
deb https://packages.sury.org/php/ jessie main
現在我和以前一樣:
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package php7.2-bcmath E: Couldn't find any package by regex 'php7.2-bcmath'
為什么我仍然無法安裝這個 package?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.