当我尝试使用下面的代码在Ubuntu 16.04安装PHP5:包PHP5没有安装候选人(Ubuntu的16.04)
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后遇到了这一切错误
你可以在下面的链接中得到这个问题的答案 http://askubuntu.com/questions/756181/installing-php-5-6-on-xenial-16-04/756186# 756186 –
Stack Overflow是编程和开发问题的网站。这个问题似乎与题目无关,因为它不涉及编程或开发。请参阅帮助中心的[我可以询问哪些主题](http://stackoverflow.com/help/on-topic)。也许[超级用户](http://superuser.com/)或[Unix&Linux堆栈交换](http://unix.stackexchange.com/)会是一个更好的地方。另请参阅[我在哪里发布关于Dev Ops的问题?](http://meta.stackexchange.com/q/134306) – jww