我刚刚在DigitalOcean上得到了一个VPS,并在上面添加了Ubuntu13.10。我正在尝试为我的Rails应用程序设置PostgreSQL。我将deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main插入到/etc/apt/ inserted es.list.d/pgdg.list中,然后尝试使用deb http://apt.postgresql.org/pub/repos/apt/ saucy-pgdg main和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.问题是,即使我尝试获得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,它不会让我安装它。
如果能在这方面提供任何帮助,我将不胜感激。
谢谢!
发布于 2014-02-07 20:14:23
我知道这并不能真正回答您的问题,但是我会用Ubuntu12.04LTS重新安装Ubuntu,您将没有任何问题需要安装Postgresql 9.3。经验法则是:如果你被安装任务困住了,那么在生产过程中你会要求更多的麻烦。
只是我的操作系统,但我所安装的一切都遵循了这个建议。自己运行数十个集群postgresql服务器。
https://stackoverflow.com/questions/21636620
复制相似问题