CentOS7でyumを再度使う方法

スポンサーリンク
CentOS7
スポンサーリンク
↑管理人が個人でUnity+Live2Dで作成しているスマホゲームです

さくらのVPSでCentOS7サーバを運用していますが、以下のようなエラーが出てyumが利用出来なくなったので再度使えるようにしました。

読み込んだプラグイン:fastestmirror, langpacks
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 不明なエラー"
epel/x86_64/metalink                                                                                                                                               | 5.1 kB  00:00:00     
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 不明なエラー"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 不明なエラー"
 * base: ftp-srv2.kddilabs.jp
 * epel: repo.jing.rocks
 * extras: ftp-srv2.kddilabs.jp
 * remi-safe: ftp.riken.jp
 * updates: ftp-srv2.kddilabs.jp
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。 To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
http://download.nus.edu.sg/mirror/centos/7.9.2009/extras/x86_64/repodata/repomd.xml:
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。 k6 | 2.9 kB 00:00:00 remi-safe | 3.0 kB 00:00:00
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
http://mirrors.jlu.edu.cn/centos/7.9.2009/updates/x86_64/repodata/repomd.xml:
[Errno 14] curl#52 - "Empty reply from server" 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。
404 Not Found
[Errno 14] HTTP Error 404 - Not Found 他のミラーを試します。 k6/x86_64/primary_db

/etc/yum.repos.d/CentOS-Base.repoのバックアップを取った上で、中身を以下のようにします。

[base]
name=CentOS-$releasever - Base
baseurl=http://vault.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://vault.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://vault.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://vault.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

yum clean allしたら完了です!

1 Star2 Stars3 Stars4 Stars5 Stars (まだ投票されていません)
読み込み中...

コメント

広告ブロッカーを無効にしてください。

タイトルとURLをコピーしました