解决 ubuntu 10.04 中未满足的依赖关系

解决 ubuntu 10.04 中未满足的依赖关系

当我尝试安装 beanstalkd 时,出现了以下错误(sudo apt-get install beanstalkd),我甚至尝试了 -f 选项,但都没有任何帮助,我该怎么办

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:
  beanstalkd: Depends: libevent-1.4-2 (>= 1.4.13-stable) but it is not going to be installed
  mysql-server-5.1: Depends: mysql-client-5.1 (>= 5.1.62-0ubuntu0.10.04.1) but it is not going to be installed
                    Depends: libmysqlclient16 (>= 5.1.21-1) but it is not going to be installed
                    Depends: mysql-server-core-5.1 (>= 5.1.62-0ubuntu0.10.04.1) but it is not going to be installed
                    PreDepends: mysql-common (>= 5.1.62-0ubuntu0.10.04.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

答案1

您需要手动解决依赖关系。

尝试安装列出的依赖项,使用

aptitude install libevent-1.4-2
aptitude install mysql-common
aptitude install mysql-client-5.1
aptitude install libmysqlclient16
aptitude install mysql-server-core-5.1

其中一些安装可能会失败 - 您可能需要使用以下方式手动安装dpkg -i /var/cache/apt/archives/packagename.deb

相关内容