Ubuntu 12.04下安装phpmyadmin报错如何解决

Ubuntu 12.04下安装phpmyadmin报错如何解决

@ubuntu:~$ sudo apt-get install 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: php5-mysql but it is not going to be installed or
                       php5-mysqli but it is not installable
              Recommends: php5-gd but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Goole尝试解决:http://askubuntu.com/questions/64443/...

jiangge@ubuntu:~$ sudo apt-get -f install php5-mysql
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:
 php5-mysql : Depends: php5-common (= 5.3.10-1ubuntu3) but 5.3.10-1ubuntu3.4 is to be installed
E: Unable to correct problems, you have held broken packages.

此依赖问题,怎么解决?

阅读 7.8k
2 个回答

apt-get install php5 php5-common php5-mysql php5-gd phpmyadmin

请输入图片描述

把这些先安装了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题