在 Ubuntu 18.04 Bionic 上安装 Postgresql(存储库已删除)

fue*_*git 5 postgresql bionic ubuntu-18.04 postgresql-13

我越来越

E: The repository 'https://apt.postgresql.org/pub/repos/apt bionic-pgdg Release' no longer has a Release file.
Run Code Online (Sandbox Code Playgroud)

在 sudo apt update 上。这意味着仿生的存储库无法访问。

就我而言,这次我无法将 Ubuntu 版本升级到较新的版本,并且需要以某种方式进行管理。在这种情况下,我想我需要从 /etc/apt/sources.list.d 中删除文件,其中包含:

deb https://apt.postgresql.org/pub/repos/apt bionic-pgdg main
Run Code Online (Sandbox Code Playgroud)

那么我怎样才能在 Bionic 上安装 Postgresql呢?有什么方法可以从源代码下载并安装吗?

小智 19

这些软件包已移至 apt-archive 中。

将您的sources.list条目指向

deb https://apt-archive.postgresql.org/pub/repos/apt bionic-pgdg main
Run Code Online (Sandbox Code Playgroud)

请参阅此处的公告: https: //www.postgresql.org/message-id/ZN4OigxPJA236qlg%40msg.df7cb.de