発端はyum updateで以下が出たところからになります。
読み込んだプラグイン:fastestmirror, langpacks Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was 14: HTTP Error 403 - Forbidden 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. Disable the repository, 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> 4. 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
色々サイトを見ました。
ここでDNS設定を拝見し、設定ファイルを確認しました。
https://qiita.com/ponsuke0531/items/e036dfa4dd1e69086e13
DNS設定
https://qiita.com/ponsuke0531/items/7e69155e1a2258d444c9
ls /etc/sysconfig/network-scripts/ifcfg-*
/etc/sysconfig/network-scripts/ifcfg-eno16780032 /etc/sysconfig/network-scripts/ifcfg-lo
この結果のファイルを確認すると以下でした。
cat /etc/sysconfig/network-scripts/ifcfg-eno16780032 TYPE=Ethernet BOOTPROTO=none DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=no IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME=eno16780032 UUID=c0f51141-92d7-480c-8348-0b48affb91d6 DEVICE=eno16780032 ONBOOT=yes DNS1=XXX.XXX.XXX.X DNS2=XXX.XXX.XXX.X IPADDR=XXX.XX.X,XX PREFIX=24 GATEWAY=XXX.XX.X.XXX
DNSやGATEWAYの値は設定できている認識でおります。
そこでnetwork.serviceをrestartして、status確認した結果が以下です。
sudo systemctl restart network.service sudo systemctl status NetworkManager.service ● NetworkManager.service - Network Manager Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled) Active: inactive (dead)
Activeにならないです。
DNSやGATEWAYの設定IPの誤りを疑いました。
そこで、yum接続のできている別サーバの設定と同等で、設定しているIPへのPINGがいけるかを確認しましたが、同じになっていてPINGの可能でした。
他どこがActiveにならない要因になるのかと、yum接続ができない原因・解決をご教授願えないでしょうか。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。