运行Nginx和PHP5-FPM时无法更新到最新的PHPMyAdmin

目前我有一个运行nginx 1.10.0,
PHP-FPM 5.6.21和MySQL 5.5.49的LEMP堆栈设置

我可以使用默认的Ubuntu软件包或通过PPA软件包ppa安装PhpMyAdmin:nijel / phpmyadmin

两者的问题是它们已经过时了,因为默认包是4.0.10,nijel是4.3.8

理想情况下,我想让它使用PPA包ppa:nijel / phpmyadmin,因为它运行的是最新版本4.6.1但是每当我安装此PPA并尝试运行安装时,我会收到以下错误

The following packages have unmet dependencies:
phpmyadmin : Depends: php but it is not installable
          Depends: php-mysql but it is not installable
          Depends: php-cli but it is not installable
          Depends: php-json but it is not installable
          Depends: php-mbstring but it is not installable
          Depends: php-xml but it is not installable
          Recommends: php-gd but it is not installable
          Recommends: php-bz2 but it is not installable
          Recommends: php-zip but it is not installable
          Recommends: php-tcpdf but it is not going to be installed

我有一个ansible脚本运行并安装PhpMyAdmin没有任何问题,所以理想情况下我想用ppa工作:nijel / phpmyadmin

最佳答案 您应该将PHP PECL扩展存储库(
https://launchpad.net/~ondrej/+archive/ubuntu/php)添加到系统:

sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update

比你可以尝试安装phpmyadmin

点赞