Ошибка при установке PostgreSQL10 на CentOS7 - PullRequest
0 голосов
/ 08 февраля 2019

У меня проблема при установке PostgreSQL10 на моем компьютере с Linux.Я вижу ошибку, как показано ниже.

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

ошибка: repodata / repomd.xml от pgdg10: [Errno 256] Больше зеркал не нужно пытаться.https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-2-x86_64/repodata/repomd.xml: [Errno 14] HTTPS Ошибка 404 - Не найдено

Я видел в одном из постов, чтобы внести изменения в /etc/yum.repos.d/pgdg-10-centos.repoдля значения enabled = 1 до enabled = 0.Итак, когда я делаю это, я вижу, что нет никаких пакетов, доступных для postgresql10, Короче говоря, я просто отключил этот экземпляр postgre.

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

Я застрял здесь, как продолжить установку.Мне действительно нужна помощь, чтобы решить эту проблему.Таким образом, любая помощь будет принята с благодарностью.Спасибо!

...