简体   繁体   English

无法在我的 ubuntu 14.04 repo 中安装 php 7.2 错误occred

[英]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我无法在我的 Ubuntu 14.04 上安装 php 7.2

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.不要添加版本,只需运行sudo apt install php它就会安装最新的。 if you want add versions in apt install do as below如果您想在 apt install 中添加版本,请执行以下操作

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.目前 ondrej 存储库不支持 Ubuntu 14.04,因为它已达到使用寿命,因此您无法使用它们。 You can either compile from source or upgrade your distribution.您可以从源代码编译或升级您的发行版。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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