在将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已经安装。
有没有办法同时安装phpMyAdmin和php7?
我正在使用这些额外的来源
deb http://packages.dotdeb.org jessie all
deb-src http://packages.dotdeb.org jessie all
使用Debian Jessie。
使用php7和任何操作系统软件包将是困难的,直到distros(或第三方回购)更新来处理这个,你真的不应该这样做的生产系统。
我的build议是不要试图这样做,等到PHP7基础架构到位。 你可以通过手动安装PHPMyAdmin等大多数东西来解决,但这不是很好的系统pipe理实践。
我可以通过在我的web根文件夹(/ var / www / html)中运行此命令来获得此function。
git clone --depth=1 --branch=STABLE https://github.com/phpmyadmin/phpmyadmin.git
这可能不是最佳实践,但会起作用。