Errors during downloading metadata for repository 'pgdg-common':
- Status code: 404 for https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-3-x86_64/repodata/repomd.xml (IP: 72.32.157.246)
Error: Failed to download metadata for repo 'pgdg-common': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
解决办法:
# 在/etc/yum.repos.d目录下找到pg的repo,复制其名称,例如:pgdg-redhat-all.repo
# 将刚刚复制的repo 名称追加到以下文件的include字段中。
vim /etc/yum/pluginconf.d/releasever_adapter.conf
# 例如
include=docker-ce.repo, epel.repo, pgdg-redhat-all.repo