简体   繁体   中英

E: Unable to locate package php7.2-bcmath

I'm trying to install package php7.2-bcmath on Ubuntu 14.4

sudo apt-get install php7.2-bcmath

but I keep getting this error:

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'

I already try those options:

sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.2-bcmath

add this to /etc/apt/sources.list:

deb http://security.ubuntu.com/ubuntu artful-security main universe

Nothing works!

Please help

You should check which PHP version is available and if you addressed the correct package name.

Use:

apt-cache search php

to check, if PHP7.2 and all the extensions are available at your environment.

Determine the correct package name of the bcmath package by searching trough all available packages:

apt-cache search php | grep bcmath

If you see an bcmath package for php7.2 use this name with the sudo apt-get install .... syntax.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM