CentOS6.10でremoving mirrorlist、YumRepo Errorが発生した場合の対応

CentOS6.10でyumコマンドを使った際、”removing mirrorlist with no valid mirrors”のYumRepo 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 find a valid baseurl for repo: base
 
●対処方法
リポジトリのファイルを修正しても改善しなかったのですが、以下の対応を実施したところ正常にyumコマンドが実行できるようになりました。
 
$ echo “https://vault.centos.org/6.10/os/x86_64/” > /var/cache/yum/x86_64/6/base/mirrorlist.txt
$ echo “https://vault.centos.org/6.10/extras/x86_64/” > /var/cache/yum/x86_64/6/extras/mirrorlist.txt
$ echo “https://vault.centos.org/6.10/updates/x86_64/” > /var/cache/yum/x86_64/6/updates/mirrorlist.txt

関連記事の目次

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください