E:无法找到软件包php7.2-bcmath

我正在尝试在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

没有任何效果!

请帮助

xiaotong11 回答:E:无法找到软件包php7.2-bcmath

您应检查可用的PHP版本以及是否使用了正确的软件包名称。

使用:

apt-cache search php

检查您的环境是否可以使用PHP7.2和所有扩展。

通过搜索所有可用的软件包来确定bcmath软件包的正确软件包名称:

apt-cache search php | grep bcmath

如果您看到php7.2的bcmath软件包,请使用sudo apt-get install ....语法使用此名称。

本文链接:https://www.f2er.com/2972128.html

大家都在问