升级后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?
我正在使用这些额外的资源
德布http://packages.dotdeb.orgjessie all
deb-srchttp://packages.dotdeb.org杰西·奥尔
使用 Debian Jessie。
答案1
在发行版(或第三方存储库)更新以处理此问题之前,使用 php7 和任何 OS 包都会很困难,并且您真的不应该在生产系统上这样做。
我的建议是不要尝试这样做,等到 PHP7 基础设施到位再做。您可以通过手动安装大多数东西(如 PHPMyAdmin)来解决这个问题,但这不是良好的系统管理做法。
答案2
通过在我的 Web 根文件夹 (/var/www/html) 中运行此命令,我可以使其在我的 VPN 上运行。
git clone --depth=1 --branch=STABLE https://github.com/phpmyadmin/phpmyadmin.git
这可能不是最佳做法,但会起作用。