我已经安装了窗口10 (双引导)侧的ubuntu。我已经设置了apache2服务器、mysql并安装了PHP7,然后我想安装phpmyadmin --我无法安装它。我试过很多次了,但仍然有同样的问题。这是我所犯的错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
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: 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.上面说我的包裹坏了,我真的不知道怎么解决这个问题。请帮帮我!
在此之前,非常感谢您。
发布于 2016-02-03 10:22:43
你可以检查一下xampp。它会安装所有的。它也可供ubuntu使用。
下载.run文件并按以下方式安装
chmod 755 xampp-linux-*-installer.run
sudo ./xampp-linux-*-installer.run在这之后,你可以这样运行。
sudo /opt/lampp/lampp start并停止
sudo /opt/lampp/lampp stop这将运行它的命令行工具。它也有它的图形工具。它可以这样运行。
cd /opt/lampp
sudo ./manager-linux.run (or manager-linux-x64.run)发布于 2017-05-22 07:18:01
您可以尝试安装php7,然后安装phpmyadmin,这在Ubuntu14.04上适用于我。
sudo apt-add-repository ppa:ondrej/php -y
sudo apt-get update
sudo 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
sudo apt-get install -y phpmyadminhttps://askubuntu.com/questions/729141
复制相似问题