无法安装 php5-cli

nik*_*aft 5 php

sudo apt-get install php5-cli

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5-cli 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
However the following packages replace it:
  php7.0-cli:i386 php7.0-cli

E: Package 'php5-cli' has no installation candidate
Run Code Online (Sandbox Code Playgroud)

oer*_*dnj 8

Ubuntu 16.04 附带带有 php7.0- 前缀的 PHP 7.0。PHP CLI SAPI 打包在 php7.0-cli 包中,并提供符号/usr/bin/php链接到/usr/bin/php7.0二进制使用update-alternatives机制的命令,以提供最佳可用的 PHP 版本。

如果您需要 PHP 5.6 或 PHP 5.5 CLI,您需要使用ppa:ondrej/php和安装php5.6-cliphp5.5-cli包。您可以通过使用/usr/bin/php5.6或使用命令/usr/bin/php5.5更新默认/usr/bin/php符号链接来访问 CLI 二进制文件update-alternatives