
cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)でWordpress5.03をバージョンアップしようとして
WordPress 5.2 は PHP 5.6.20 以降を必要とするため、更新を実行できません
ということなのでphpを7以降にバージョンアップしようとしました。
EPELリポジトリをインストールしました。
コード # wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm 2019-05-08 09:47:06 (52.8 KB/s) - `remi-release-7.rpm' へ保存完了 # yum install epel-release ---> パッケージ epel-release.noarch 0:7-11 を インストール # rpm -Uvh remi-release-7.rpm 警告: remi-release-7.rpm: ヘッダー V4 DSA/SHA1 Signature、鍵 ID 00f97f56: NOKEY 準備しています... ################################# [100%] 更新中 / インストール中... 1:remi-release-7.6-2.el7.remi ################################# [100%]
と一応インストールができたようなのですが、次のようにうまくリポジトリが取れないようです。
# yum info --enablerepo=remi php73 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile One of the configured repositories failed (不明), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this: 1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work). 3. Run the command with the repository temporarily disabled yum --disablerepo=<repoid> ... 4. Disable the repository permanently, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage: yum-config-manager --disable <repoid> or subscription-manager repos --disable=<repoid> 5. Configure the failing repository to be skipped, if it is unavailable. Note that yum will try to contact the repo. when it runs most commands, so will have to try and fail each time (and thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise: yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again ・・・・・
リポジトリの内容は以下の通りです。pingは通りますので疎通は通りDNS設定には問題がないようです。
vi /etc/yum.repos.d/CentOS-Base.repo [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra #baseurl=http://mirror.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 mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra #baseurl=http://mirror.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 =extras&infra=$infra #baseurl=http://mirror.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 mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
yumについて今まであまり考えずに使っていたのですが、つまずいてしまいました、どうかよろしくお願いいたします。
同じcentosの/etc/yum.repos.d/CentOS-Base.repoをみても
内容は同じで書き換え等は行われていません。当然内容を差し替えても同じエラーが出ます。
一旦削除してみるとyumは動作します。
yum remove epel-release 読み込んだプラグイン:fastestmirror 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ epel-release.noarch 0:7-11 を 削除 --> 依存性の処理をしています: epel-release = 7 のパッケージ: remi-release-7.6-2.el7.remi.noarch --> トランザクションの確認を実行しています。 ---> パッケージ remi-release.noarch 0:7.6-2.el7.remi を 削除 --> 依存性解決を終了しました。
再度インストールしてみました。
yum -y install epel-release
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
# yum -y install epel-release 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile * base: ftp.nara.wide.ad.jp * extras: ftp.nara.wide.ad.jp * updates: ftp.nara.wide.ad.jp 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ epel-release.noarch 0:7-11 を インストール --> 依存性解決を終了しました。 依存性を解決しました ============================================================================================================================================================================================================================================= Package アーキテクチャー バージョン リポジトリー 容量 ============================================================================================================================================================================================================================================= インストール中: epel-release noarch 7-11 extras 15 k トランザクションの要約 ============================================================================================================================================================================================================================================= インストール 1 パッケージ 総ダウンロード容量: 15 k インストール容量: 24 k Downloading packages: epel-release-7-11.noarch.rpm | 15 kB 00:00:11 Running transaction check Running transaction test Transaction test succeeded Running transaction インストール中 : epel-release-7-11.noarch 1/1 検証中 : epel-release-7-11.noarch 1/1 インストール: epel-release.noarch 0:7-11 完了しました! # rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm http://rpms.remirepo.net/enterprise/remi-release-7.rpm を取得中 警告: /var/tmp/rpm-tmp.JSJG9T: ヘッダー V4 DSA/SHA1 Signature、鍵 ID 00f97f56: NOKEY 準備しています... ################################# [100%] 更新中 / インストール中... 1:remi-release-7.6-2.el7.remi ################################# [100%] # yum check-update 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile One of the configured repositories failed (不明),
結果は同じようです。




回答3件
あなたの回答
tips
プレビュー