YumRepo Error: All mirror URLs are not using ftp
2021. 7. 21. 16:57ㆍIT/Linux
CentOS 6.7 yum repository error
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 retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
원인:
CentOS 6.7 EOL 만료로 Fastmirror 사이트에서 CentOS 6가 제거 되어 발생.
CentOS 버전별 EOL: https://wiki.centos.org/About/Product
해결 방법:
$ sed -i -e "s/^mirrorlist=http:\/\/mirrorlist.centos.org/#mirrorlist=http:\/\/mirrorlist.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo
$ sed -i -e "s/^#baseurl=http:\/\/mirror.centos.org/baseurl=https:\/\/vault.centos.org/g" /etc/yum.repos.d/CentOS-Base.repo
'IT > Linux' 카테고리의 다른 글
[ubuntu] lvm 볼륨 사이즈 확장하기. (1) | 2021.10.20 |
---|---|
rc.local 활성화 (0) | 2021.07.08 |
CentOS 7.x minimal로 설치 후, ssh 접속 안될 때 (0) | 2021.06.15 |
Ubuntu 20.04 네트워크 설정 (0) | 2021.06.15 |
[jenkins] jenkins 설치하기. (0) | 2020.11.14 |