gpt4 book ai didi

php - E : Unable to locate package php7. 2-bcmath

转载 作者:太空宇宙 更新时间:2023-11-03 17:03:22 25 4
gpt4 key购买 nike

我正在尝试在 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 .... 语法。

关于php - E : Unable to locate package php7. 2-bcmath,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59190651/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com