postgresql - 在 debian wheezy 上安装 postgresql 9.2(在 virtualbox 上)

标签 postgresql debian virtualbox postgresql-9.2

我有带有 Debian Wheezy 的 virtualbox。 我正在尝试在其上安装 Postgresql 9.2。 当我尝试通过 this 做到这一点时我接下来的指示:

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:
 postgresql-9.2 : Depends: postgresql-common (>= 135~) but it is not going to be installed
                  Depends: ssl-cert but it is not installable
E: Unable to correct problems, you have held broken packages.

当我尝试安装 postgresql-common 时:

apt-get install postgresql-common

下一个:

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:
 postgresql-common : Depends: ssl-cert (>= 1.0.11) but it is not installable
E: Unable to correct problems, you have held broken packages

当我尝试安装 ssl-cert 时:

apt-get install ssl-cert

下一个:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ssl-cert 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 source

E: Package 'ssl-cert' has no installation candidate

我是Linux新手,请帮我安装Postgresql 9.2

最佳答案

当我将这些存储库添加到 sources.list (/etc/apt/) 时,安装 ssl-cert 成功了:

deb http://ftp.de.debian.org/debian/ wheezy main non-free contrib
deb-src http://ftp.de.debian.org/debian/ wheezy main non-free contrib

然后:

apt-get update
aptitude install ssl-cert
aptitude install postgresql-common
aptitude install postgresql-9.2

关于postgresql - 在 debian wheezy 上安装 postgresql 9.2(在 virtualbox 上),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16624737/

相关文章:

sql - 更新 postgreSQL 首字母大写的列

postgresql - 使用命令行恢复 postgres 备份文件?

apache - 如何在 Debian 10 上安装 mod_mono

virtualbox - 使用 vboxmanage,如何列出 vm 的所有快照?

windows - 在 Windows 上使用 VirtualBox 为 Kubernetes 创建 Docker 容器

postgresql - 带约束的 Psql COPY 失败

postgresql - 如何为 postgres pl/python 安装第 3 方模块?

debian - 如何在 iptables 中编辑规则?

debian - Redmine 2.1.2(从2.0.4迁移): Migration OK but crashes after login

windows-8 - 如何让 Windows 8 Phone 模拟器通过 VirtualBox 运行?