Can't install PHP 7 on Ubuntu 14.04 64-bit

依然范特西╮ 提交于 2020-03-24 00:41:31

问题


I'm trying to install PHP 7 using the ff. command:

sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php

But when I try to run apt-cache search php7 nothing displays and also when I try to install sudo apt-get install php7.0 it says Couldn't find any package by regex 'php7.0'. Any idea why?

I've already spent several days figuring this out. I hope someone can help me.

Thanks in advance!


回答1:


Ubuntu 14.04 has reached End of Standard Support on March 7, 2019. According to https://wiki.ubuntu.com/Releases. Repository ppa:ondrej/php doesn’t have php7.0 packages anymore for Ubuntu 14.04 according to https://launchpad.net/~ondrej/+archive/ubuntu/php/+index?batch=75&memo=150&start=150

I bet you need to upgrade to at least Ubuntu 16.04.



来源:https://stackoverflow.com/questions/56106081/cant-install-php-7-on-ubuntu-14-04-64-bit

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!