我刚刚从 Ubuntu 12.04 升级到 14.04,我的 phpmyadmin 安装消失了(我想我做错了什么!)。我尝试重新安装它,但得到了这个:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
phpmyadmin : Depends: php but it is not installable
Depends: php-cli but it is not installable
Depends: php-mysql 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
E: Unable to correct problems, you have held broken packages.
如有任何建议,我们将不胜感激。
答案1
您可以安装 php7(apt-add-repository ppa:ondrej/php -y
和apt-get update && apt-get install -y php7.0-common php7.0-cli php7.0-fpm php7.0-curl php7.0-sqlite3 php7.0-json php7.0-tidy php7.0-mysql
),这解决了我的问题。详细信息已发布在另一个答案中,因此我仅将其链接到此处:https://askubuntu.com/a/917628/621561