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
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 ‘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: