CENTOS 7 - curl - Could not resolve host - mirrorlist.centos.org - Unknown error

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск

CENTOS 7 - curl - Could not resolve host - mirrorlist.centos.org - Unknown error

CentOS Linux 7 reached end of life (EOL) on June 30, 2024
Протестировано 03.07.2024:

# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"


Временное решение - это заменить репозиторий на vault.centos.org

# sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS*.repo
# sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS*.repo
# sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS*.repo