【发布时间】:2016-08-15 19:01:00
【问题描述】:
当我尝试使用以下代码在 Ubuntu 16.04 中安装 php5 时:
sudo apt-get install php5 php5-mcrypt
我收到以下错误:
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
我尝试重新安装,但没有帮助。
我将 15.10 Ubuntu 更新到 16.04 后遇到了所有这些错误
【问题讨论】:
-
你可以在下面的链接askubuntu.com/questions/756181/…得到这个问题的答案
标签: php ubuntu apt dpkg ubuntu-16.04