所以今天我尝试运行我的旧 php 网站,但它不起作用,但我知道我安装了 php,所以我尝试再次安装它,但无法成功。
它给了我这个错误:
hyperx@Hyperx:~$ sudo apt-get 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
hyperx@Hyperx:~$
mysql 也没有运行。我该如何修复或安装它?
答案1
apt-get -y install php
它是一个依赖于 PHP 最新默认版本的虚拟包……