skip to Main Content

I have centos 7. After EOL, modified all the repos to vault.centos.org, as advised in:
https://serverfault.com/questions/1161816/mirrorlist-centos-org-no-longer-resolve

Until this morning everything worked fine.
Now tried to run yum install on some software and got the error:
http://vault.centos.org/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 502 – Bad Gateway

Any advice ?

2

Answers


  1. It seems like valut.centos.org origin is having some troubles at the moment, therefor 502 response..

    You can try using one of external mirrors found in the list: https://vault.centos.org/centos/7/os/x86_64/repodata/

    Instead of replacing original mirror link with vault url, try replacing it with the one from the list, for example:

    sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=https://mirror.nsc.liu.se/centos-store|g" /etc/yum.repos.d/CentOS-*
    
    Login or Signup to reply.
  2. sed -i ‘s/mirror.centos.org/archive.kernel.org/centos-vault/g’ /etc/yum.repos.d/*.repo

    centos repo move to archive kernel and add path centos-vault

    example docker file:

    FROM centos:7
    
    # Set timezone Buenos Aires
    ENV TIMEZONE America/Argentina/Buenos_Aires
    RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime && echo $TIMEZONE > /etc/timezone
    
    RUN sed -i 's/mirror.centos.org/archive.kernel.org/centos-vault/g' /etc/yum.repos.d/*.repo
    RUN sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
    RUN sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search