sudo add-apt-repository ppa:pitti/postgresql
# ... OK
sudo apt-get install postgresql-8.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package postgresql-8.4 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 'postgresql-8.4' has no installation candidate
我应该从哪里下载http://packages.debian.org/squeeze/postgresql-8.4并手动安装所有依赖项?
答案1
有一个回购。要添加它,请打开终端并输入
sudo touch /etc/apt/sources.list.d/pgdg.list sudo echo“debhttp://apt.postgresql.org/pub/repos/apt/precise-pgdg main” | sudo tee /etc/apt/sources.list.d/pgdg.list然后导入存储库签名密钥:
wget——quiet-O-https://www.postgresql.org/media/keys/ACCC4CF8.asc| sudo apt-key 添加 - sudo apt-get 更新