yum 解決Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile

1.錯誤還原php

[root@node ~]# yum list
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: linux.mirrors.es.net
 * extras: ftpmirror.your.org
 * updates: centos-distro.1gservers.com
http://reflector.westga.edu/repos/CentOS/7.7.1908/extras/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 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

^Z
[1]+  Stopped

2.解決步驟node

關閉插件 把 enabled=1 改成 0linux

oot@node ~]# vi /etc/yum/pluginconf.d/fastestmirror.conf 
[main]
enabled=0
verbose=0
always_print_best_host = true
socket_timeout=3
#  Relative paths are relative to the cachedir (and so works for users as well
# as root).
hostfilepath=timedhosts.txt
maxhostfileage=10
maxthreads=15
#exclude=.gov, facebook
#include_only=.nl,.de,.uk,.ie
[root@node ~]#

關閉插件 把 plugins=1 改成 0centos

vi /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=0
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release

3.重啓系統bash

reboot
相關文章
相關標籤/搜索