我刚刚安装了Bitnami Ruby Stack (Ubuntu,Rails,Rub,.)。我想安装postgreSQL。
我尝试了以下命令:
sudo apt-get install postgresql但是,我明白:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package postgresql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another sourceUPDATE1
我试过这个:
sudo apt-get install postgresql-9.1得到了这个:
The following packages have unmet dependencies:
postgresql-9.1 : Depends: libldap-2.4-2 (>= 2.4.7) but it is not installable
Depends: libpq5 (>= 9.1~) but it is not going to be installed
Depends: postgresql-client-9.1 but it is not going to be installed
Depends: postgresql-common (>= 115~) but it is not installable
Depends: ssl-cert but it is not installable
E: Unable to correct problems, you have held broken packages.UPDATE2
这是我第一次通过终端从iMac登录。我想我在一个用户目录里。我需要在哪个目录下安装才能正常工作?
谢谢你的帮助!!
发布于 2013-02-28 22:24:21
如果您正在运行Ubuntu的服务器版本,则可以尝试运行
sudo apt-get update更新可用的包,然后用
sudo apt-get install postgresql但是,如果您正在运行Ubuntu的桌面版本,我建议通过Ubuntu软件中心安装postgresql,因为这一直对我最有效。
发布于 2013-02-28 23:54:40
因为您已经在运行Bitnami,所以可以安装PostgreSQL副词。
https://askubuntu.com/questions/262487
复制相似问题