如何为UbuntuHardy8.04安装PostgreSQL8.4?
sudo apt-get install postgresql将安装postgreSQL 8.3
我试着从
http://www.ubuntuupdates.org/package/core/hardy/main/backports/postgresql-8.4
但无法解决受抚养人
然后尝试添加
deb http://de.archive.ubuntu.com/ubuntu hardy-backports main
deb http://de.archive.ubuntu.com/ubuntu hardy-updates main restricted universe
deb http://de.archive.ubuntu.com/ubuntu hardy-security main restricted universe转到/etc/apt/sources.list
运行sudo apt-get update显示
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/hardy-updates/main/binary-amd64/Packages.bz2 Hash Sum mismatch
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/hardy-updates/universe/binary-amd64/Packages.bz2 Hash Sum mismatch
E: Some index files failed to download, they have been ignored, or old ones used instead.然后命令sudo apt-get install postgresql-8.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
postgresql-8.4 is already the newest version.
You might want to run âapt-get -f installâ to correct these:
The following packages have unmet dependencies.
libpq-dev: Depends: libpq5 (= 8.3.9-0ubuntu8.04) but 8.4.6-1~hardy1 is to be installed
postgresql-8.4: Depends: postgresql-common (>= 109~) but it is not going to be installed
postgresql-client-8.4: Depends: postgresql-client-common (>= 104~) but it is not going to be installed
E: Unmet dependencies. Try âapt-get -f installâ with no packages (or specify a solution).感谢你的任何帮助
发布于 2012-03-09 13:48:01
看来你所用的德国镜子并没有交付。您可以重试,或者如果问题仍然存在,可以尝试另一个镜像(从de.archive.ubuntu.com更改为uk.archive.ubuntu.com)。
发布于 2012-03-09 13:49:36
‘散和不匹配’消息很重要--尝试另一个服务器,而不是de (我猜,这个服务器位于德国)。尝试添加英国服务器:
deb http://uk.archive.ubuntu.com/ubuntu hardy-backports main
deb http://uk.archive.ubuntu.com/ubuntu hardy-updates main restricted universe
deb http://uk.archive.ubuntu.com/ubuntu hardy-security main restricted universe然后是sudo apt-get update && apt-get install postgresql-8.4
https://askubuntu.com/questions/111392
复制相似问题