postgres在ubuntu上安装问题

时间:2015-06-25 21:55:34

标签: postgresql ubuntu installation

我正在尝试在ubuntu上安装postgres并获取与抓取相关的错误。还有另一种安装方式吗?

sudo apt-get install postgresql postgresql-contrib

Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/postgresql-  9.1/postgresql-client-9.1_9.1.17-0ubuntu0.12.04_amd64.deb  404  Not Found [IP: 91.189.91.15 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/postgresql-9.1/postgresql-9.1_9.1.17-0ubuntu0.12.04_amd64.deb  404  Not Found [IP: 91.189.91.15 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

1 个答案:

答案 0 :(得分:1)

http://mirrors.ubuntu.com/mirrors.txt上,您可以找到为您推荐的镜像列表。如果您使用自己喜欢的文本编辑器打开/etc/apt/sources.list作为sudoer,那么您可以使用镜像。例如:

deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse

您可以更改为

deb http://ubuntu.saix.net/ubuntu-archive/ precise main restricted universe multiverse

当然,您将使用您所在地区的链接之一。不要忘记保存旧的sources.list。同时将precise替换为您的Ubuntu版本。