我有一个全新的 Debian 6.0 安装。我已经安装了 build-essential 并添加了:
deb http://backports.debian.org/debian-backports squeeze-backports main
Run Code Online (Sandbox Code Playgroud)
在 /etc/apt/sources.list
我现在尝试安装 Postgres 9.1,但出现以下错误:
The following packages have unmet dependencies:
postgresql-9.1 : Depends: libpq5 (>= 9.1~) but 8.4.12-0squeeze1 is to be installed
Depends: postgresql-client-9.1 but it is not going to be installed
Depends: postgresql-common (>= 115~) but 113 is to be installed
Run Code Online (Sandbox Code Playgroud)
在安装 postgres 之前是否还有其他东西要安装?
好吧, build-essential 与这个问题无关。您没有正确安装软件包;使用该-t squeeze-backports
选项使 backports 存储库成为此 apt-get 运行的“默认”存储库,这应该允许安装正确版本的依赖包。你现在得到的错误是因为虽然postgresql-9.1
在squeeze 中不可用,因此将从backports repo 安装,其他包在squeeze 中确实有可用版本,并且由于backports 存储库的默认优先级较低,压缩包的版本是首选。
归档时间: |
|
查看次数: |
1736 次 |
最近记录: |