Plesk で yum update がエラーとなる場合の対処法

● Plesk で yum update がエラーとなる場合の対処法

yum update

を実行すると次のようなエラーとなる場合があります

Loaded plugins: fastestmirror
Determining fastest mirrors
epel/x86_64/metalink                                                                                                                               | 9.7 kB  00:00:00     
 * base: d36uatko69830t.cloudfront.net
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: d36uatko69830t.cloudfront.net
 * updates: d36uatko69830t.cloudfront.net
PLESK_17_PHP72                                                                                                                                     | 2.9 kB  00:00:00     
PLESK_17_PHP73                                                                                                                                     | 2.9 kB  00:00:00     
http://autoinstall.plesk.com/pool/PSA_18.0.24_2426/extras-rpm-CentOS-7-x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article 

1. yumキャッシュの削除

sudo yum clean all

2. エラーが出ているリポジトリの enabled=0 にする

エラーが出ているファイルを検索する

cd  /etc/yum.repos.d
grep extras-rpm-CentOS-7-x86_64 *.*
vi plesk.repo 

enabled=0 にする

[PLESK_18_0_24-extras]
name=PLESK_18_0_24 extras
baseurl=http://autoinstall.plesk.com/pool/PSA_18.0.24_2426/extras-rpm-CentOS-7-x86_64/
enabled=0
gpgcheck=1

再度 update

yum update
No.1950
02/01 11:13

edit