我有带有 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/