在CentOS7上安装PostgreSQL10时出错

时间:2019-02-08 07:58:35

标签: postgresql centos7 redhat yum

在Linux机器上安装PostgreSQL10时出现问题。我看到如下错误。

https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-2-x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

尝试其他镜子。  已配置的存储库之一失败(PostgreSQL 10 2-x86_64),  并且yum没有足够的缓存数据来继续。在这一点上唯一  yum可以做的安全的事情是失败。有几种方法可以“解决”此问题:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo=pgdg10 ...

 4. Disable the repository permanently, so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable pgdg10
    or
        subscription-manager repos --disable=pgdg10

 5. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=pgdg10.skip_if_unavailable=true

失败:来自pgdg10的repodata / repomd.xml:[错误256]没有更多的镜像可以尝试。 https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-2-x86_64/repodata/repomd.xml:[错误14] HTTPS错误404-未找到

我曾在其中一篇文章中看到对/etc/yum.repos.d/pgdg-10-centos.repo进行更改,将enabled-1值设为Enable = 0。所以,当我这样做时,我发现没有可用于postgresql10的软件包,总之,我只是禁用了这个postgre实例。

No package postgresql10-server available.
No package postgresql10 available.
Error: Nothing to do 

我在这里停留在如何继续安装上。我真的需要帮助来解决这个问题。因此,任何帮助将不胜感激。 谢谢!

0 个答案:

没有答案