如何安装 postgresql-8.4?

ted*_*ted 2 postgresql 13.04

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
Run Code Online (Sandbox Code Playgroud)

我应该从http://packages.debian.org/squeeze/postgresql-8.4下载它并手动安装所有依赖项吗?

Man*_*uel 6

有一个回购。要添加它,请打开终端并输入

须藤触摸/etc/apt/sources.list.d/pgdg.list
sudo echo "deb http://apt.postgresql.org/pub/repos/apt/precision-pgdg main" | 须藤三通/etc/apt/sources.list.d/pgdg.list
然后导入存储库签名密钥:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key 添加 -
sudo apt-get 更新