サイトにはまだ多くの古い環境centos6があり、多くのyumソースが失敗しています。
yumを使用すると、次のように表示されることがよくあります。これは頭痛の種であり、インターネットで検索することは無効です。指定された代替のyumソースも非推奨です。
[root@node3 ~]# yum install wget
Loaded plugins: fastestmirror
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
その理由は、centos6のサポートが当局によって停止されたためです
次のコマンドを実行することで解決できます
sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
yum clean all
yum makecache