我刚刚在 DigitalOcean 上获得了一个 VPS,并在上面安装了 Ubuntu 13.10。我正在尝试为我的 Rails 应用程序设置 PostgreSQL。我插入deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main
了 /etc/apt/sources.list.d/pgdg.list,然后我尝试使用deb http://apt.postgresql.org/pub/repos/apt/ saucy-pgdg main
and deb http://apt.postgresql.org/pub/repos/apt/ lucid-pgdg main
(显然是运行sudo apt-get update && sudo apt-get upgrade
),但运行时我不断收到此消息sudo apt-get install postgresql-9.3 pgadmin3
:
The following information may help to resolve the situation:
The following packages have unmet dependencies:
postgresql-9.3 : Depends: postgresql-client-9.3 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
问题是即使我尝试 apt-getting postgresql-client-9.3 它告诉我我需要另一个包:
The following packages have unmet dependencies:
postgresql-client-9.3 : Depends: libpq5 (>= 9.3.2) but 9.1.11-0ubuntu0.13.10 is to be installed
E: Unable to correct problems, you have held broken packages.
在那之后,它一直告诉我安装 libpq5,它不会让我安装。
对此的任何帮助将不胜感激。
谢谢!