CentOS 7.6 - yumアップデートエラー「ストアの有効なベースURLが見つかりません:addons / 7」

CentOS 7.6 - yumアップデートエラー「ストアの有効なベースURLが見つかりません:addons / 7」

これを試みると、yum update次のエラーメッセージが表示されます。

Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch= error was
14: curl#7 - "Failed to connect to 2001:4178:5:200::10: Network is unreachable

Cannot find a valid baseurl for repo: addons/7

どうすれば解決できますか?

ベストアンサー1

同様の問題がある方のために、次のステップで解決しました。

  1. 行って/etc/sysconfig/network-scripts/ifcfg-enp0s3変えてくださいONBOOT=yes

  2. ファイアウォールにhttpを追加firewall-cmd --permanent --zone=public --add-service=http

  3. ファイアウォールの再起動firewall-cmd --reload

  4. ネットワークを再起動してくださいservice network restart

これで問題は消えます。

おすすめ記事