CentOS 6 - Error: Cannot find a valid baseurl for repo: base - как починить репозитории после EOL
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2025
CentOS 6 - Error: Cannot find a valid baseurl for repo: base - как починить репозитории после EOL
Ошибка на CentOS 6:
# yum install expat-devel Loaded plugins: fastestmirror Setting up Install Process Determining fastest mirrors YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/ removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt Error: Cannot find a valid baseurl for repo: base
Фикс репозиториев CentOS 6 после EOL:
CentOS Vault: $ curl https://www.getpagespeed.com/files/centos6-eol.repo --output /etc/yum.repos.d/CentOS-Base.repo EPEL repository: $ curl https://www.getpagespeed.com/files/centos6-epel-eol.repo --output /etc/yum.repos.d/epel.repo SCLO repositories: $ yum -y install centos-release-scl $ curl https://www.getpagespeed.com/files/centos6-scl-eol.repo --output /etc/yum.repos.d/CentOS-SCLo-scl.repo $ curl https://www.getpagespeed.com/files/centos6-scl-rh-eol.repo --output /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo