在将php5升级到php7之后,当我想要apt-get install phpmyadmin时,我会得到这个错误
The following packages have unmet dependencies:
phpmyadmin : Depends: libapache2-mod-php5 but it is not going to be installed or
libapache2-mod-php5filter but it is not going to be installed or
php5-cgi but it is not going to be installed or
php5-fpm but it is not going to be installed or
php5 but it is not going to be installed
Depends: php5-mysql but it is not going to be installed or
php5-mysqli but it is not installable or
php5-mysqlnd but it is not going to be installed
Depends: php5-mcrypt but it is not going to be installed
Depends: php5-json but it is not going to be installed
Depends: php-gettext but it is not going to be installed
Recommends: php5-gd but it is not going to be installed
E: Unable to correct problems, you have held broken packages.它表明phpMyAdmin需要php5,但是不能安装依赖项,因为php7已经安装好了。
我正在使用这些额外的资源
deb http://packages.dotdeb.org jessie all deb-src http://packages.dotdeb.org jessie all
利用Debian Jessie。
发布于 2015-12-04 13:03:31
在更新发行版(或第三方repos)以处理此问题之前,使用php7和任何OS包都是很困难的,您真的不应该在生产系统上这样做。
我的建议是不要尝试这样做,直到PHP7基础设施到位。您可以手工安装大多数东西,比如PHPMyAdmin,但是这不是一个好的系统管理实践。
发布于 2016-01-20 19:44:12
通过在我的web根文件夹(/var/www/html)中运行这个命令,我能够让它在我的VPN上工作。
git clone --depth=1 --branch=STABLE https://github.com/phpmyadmin/phpmyadmin.git这可能不是最佳实践,但会奏效的。
https://serverfault.com/questions/740782
复制相似问题