无法安装 phpmyadmin 和 mysql

无法安装 phpmyadmin 和 mysql

在从 ubuntu 10.04 server LTS 升级到 ubuntu 12.04 server LTS 时发生中断,有些东西安装不正确。无论如何,我安装了 apache、ftp、phpmyadmin 等。在某个时候,我删除了一些导致问题的软件包,这些软件包搞乱了我的 mysql 和 phpmyadmin 安装。现在我无法安装 mysql 和 phpmyadmmin。尝试安装 mysql 时出现以下错误:

The following packages have unmet dependencies:
mysql-server-5.1 : Depends: mysql-client-5.1 (>= 5.1.67-0ubuntu0.10.04.1) but it is not      going to be installed
E: Unable to correct problems, you have held broken packages.

当我尝试安装 phpmyadmin 时出现以下错误:

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libxml-libxml-perl : Depends: perl (>= 5.14.2-6ubuntu1) but it is not going to be installed
Depends: libxml-namespacesupport-perl but it is not going to be installed
libxml-sax-expat-perl : Depends: perl but it is not going to be installed
Depends: libxml-namespacesupport-perl (>= 0.03) but it is not going to be installed
Depends: libxml-parser-perl (>= 2.27) but it is not going to be installed
libxml-sax-perl : Depends: perl but it is not going to be installed
Depends: libxml-namespacesupport-perl but it is not going to be installed
Depends: libxml-sax-base-perl but it is not installable
phpmyadmin : Depends: perl but it is not going to be installed
Recommends: apache2 or lighttpd but it is not going to be installed or                 httpd
Recommends: mysql-client
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

相关内容