apt-get install pgpool2 在 trusty 上失败

apt-get install pgpool2 在 trusty 上失败

我正在尝试在 trusty 上安装 pgpool2,但是当使用 apt-get 执行此操作时失败,如下所示:

# uname -a

Linux vagrant-ubuntu-trusty-64 3.13.0-51-generic #84-Ubuntu SMP Wed Apr 15 12:08:34 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

# apt-get install pgpool2

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:
 pgpool2 : Depends: libmemcached6 (>= 0.44) but it is not installable
E: Unable to correct problems, you have held broken packages.

答案1

解决方案是像这样安装 pgpool2:

$ apt-get install pgpool2=3.3.2-1ubuntu1 libpgpool0=3.3.2-1ubuntu1

由于某种原因,pgpool2 的默认软件包已损坏,但当您指定这些版本时,它可以正确安装。

相关内容