ubuntu 上的 postgres 安装问题

postgres install issues on ubuntu

我正在尝试在 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?

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

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.

版本