centos 6 YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
由於Centos6 已經停止更新,所以yum會出錯。
修改辦法:
1.修改 vi /etc/yum.repos.d/CentOS-Base.repo
2.只留下面3個
[base]
name=CentOS-$releasever – Base
baseurl=https://vault.centos.org/6.10/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
[updates]
name=CentOS-$releasever – Updates
baseurl=https://vault.centos.org/6.10/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever – Extras
baseurl=https://vault.centos.org/6.10/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
3.存檔 應該就可以修好!
OpenAi 官方的Strea…