CentOS 6 - Error: Cannot find a valid baseurl for repo: base - как починить репозитории после EOL: различия между версиями
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Admin iph (обсуждение | вклад) (Новая страница: «=== CentOS 6 - Error: Cannot find a valid baseurl for repo: base - как починить репозитории после EOL === Ошибка на CentOS 6:...») |
Admin iph (обсуждение | вклад) |
||
Строка 17: | Строка 17: | ||
CentOS Vault: | CentOS Vault: | ||
$ curl https://www.getpagespeed.com/files/centos6-eol.repo --output /etc/yum.repos.d/CentOS-Base.repo | $ curl https://www.getpagespeed.com/files/centos6-eol.repo --output /etc/yum.repos.d/CentOS-Base.repo | ||
− | EPEL repository | + | EPEL repository: |
$ curl https://www.getpagespeed.com/files/centos6-epel-eol.repo --output /etc/yum.repos.d/epel.repo | $ curl https://www.getpagespeed.com/files/centos6-epel-eol.repo --output /etc/yum.repos.d/epel.repo | ||
− | SCLO repositories | + | SCLO repositories: |
$ yum -y install centos-release-scl | $ 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-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 | $ curl https://www.getpagespeed.com/files/centos6-scl-rh-eol.repo --output /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo | ||
</syntaxhighlight> | </syntaxhighlight> |
Версия 13:56, 21 января 2021
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