我在 Centos 6.9 操作系统上安装了 postgres 12.18(我知道它太旧了)。我想升级到 postgres 14.9,可以吗? 我正在尝试安装 postgres 14 但遇到很多问题。
sudo yum install postgresql14-server
Loaded plugins: fastestmirror, ovl, replace, versionlock
Setting up Install Process
Loading mirror speeds from cached hostfile
https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-6-x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.
https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-6-x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
pgdg12 | 3.7 kB 00:00
https://download.postgresql.org/pub/repos/yum/14/redhat/rhel-6-x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: pgdg14. Please verify its path and try again
请帮忙
我想在 centos 6.9 上将我的 postgres 版本从 12.18 升级到 14.9 我尝试在 https://www.postgresql.org/download/linux/redhat/ 运行命令,但没有成功。 出现很多错误。
如下载页面所述,您应该安装最新的存储库 RPM:
sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm
但实际上,升级你的操作系统(然后重建字符串上的所有索引)。