系统相关
首页 > 系统相关> > 我无法在Ubuntu 16.04中安装PHP5

我无法在Ubuntu 16.04中安装PHP5

作者:互联网

参见英文答案 > Installing PHP 5.6 on Xenial (16.04)                                     4个

root@areeb-Inspiron-3420:/var/www/html# apt install php5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5' has no installation candidate
root@areeb-Inspiron-3420:/var/www/html# apt-get install libapache2-mod-php5
Reading package lists... Done
Building dependency tree... 50%
Building dependency tree       
Reading state information... Done
Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libapache2-mod-php5' has no installation candidate

我现在应该怎么做?

解决方法:

16.04在官方存储库中没有PHP 5.安装14.04系统,或使用this PPA.

标签:php,16-04
来源: https://codeday.me/bug/20190808/1616689.html