我正在尝试在Ubuntu 14.4上安装软件包php7.2-bcmath
sudo 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'
我已经尝试过这些选项:
sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.2-bcmath
将此添加到/etc/apt/sources.list:
deb http://security.ubuntu.com/ubuntu artful-security main universe
无效!
请帮助
您应检查可用的PHP版本以及是否使用了正确的软件包名称。
用途:
apt-cache search php
检查PHP7.2和所有扩展在您的环境中是否可用。
通过搜索所有可用软件包来确定bcmath软件包的正确软件包名称:
apt-cache search php | grep bcmath
如果您看到用于php7.2的bcmath软件包,请将该名称与sudo apt-get install ....
语法一起使用。