简体   繁体   中英

unable to install php 7.2 in my ubuntu 14.04 repo error occred

I am unable to install php 7.2 on my Ubuntu 14.04

root@OD033:/etc/php# sudo apt-get install php7.2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package php7.2
E: Couldn't find any package by regex 'php7.2'
root@OD033:/etc/php#

Do not add version, simply run sudo apt install php it would install latest. if you want add versions in apt install do as below

sudo add-apt-repository ppa:ondrej/php
sudo apt update

then you will be able to install whatever version you need to.

Currently the ondrej repositories does not support Ubuntu 14.04 as it reached end of life thus you cannot use them. You can either compile from source or upgrade your distribution.

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