0

Debian Wheezy で virtualbox を使用しています。Postgresql 9.2 をインストールしようとしています。私がこの命令でそれをやろうとすると、私は次のものを持っています:

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 のインストールを手伝ってください。

4

3 に答える 3

3

これらのリポジトリを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
于 2014-10-22T12:11:14.760 に答える
1

スクイーズに 9.1 をインストールするには、次の手順を実行する必要があります。

sudo apt-get -t squeeze-backports install libpq5 postgresql-common
sudo apt-get install postgresql-9.1 postgresql-client-9.1

似たようなものかもしれませんが、ここでは喘鳴用が必要です。現在 wheezey を実行していないため、テストできません。お役に立てれば。

于 2013-05-19T14:56:40.270 に答える