yum 无法检索镜像列表

yum 无法检索镜像列表
# yum clean all
Failed to set locale, defaulting to C
Cleaning repos: base extras updates
Cleaning up Everything

yum info超时了:

# yum --verbose info
Failed to set locale, defaulting to C
Not loading "fastestmirror" plugin, as it is disabled
Not loading "security" plugin, as it is disabled
Config time: 0.032
Yum Version: 3.2.29
Setting up Package Sacks
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os error was
12: Timeout on http://mirrorlist.centos.org/?release=6&arch=i386&repo=os: (28, 'connect() timed out!')
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

ping可以:

# ping mirrorlist.centos.org
PING mirrorlist.centos.org (212.69.166.138) 56(84) bytes of data.
64 bytes from babylon.castlegem.co.uk (212.69.166.138): icmp_seq=1 ttl=46 time=344 ms
64 bytes from babylon.castlegem.co.uk (212.69.166.138): icmp_seq=2 ttl=46 time=342 m

curl可以:

# curl 'http://mirrorlist.centos.org/?release=6&arch=i386&repo=os'
http://centos.01link.hk/6.8/os/i386/
http://mirror.vpshosting.com.hk/pub/linux/centos/6.8/os/i386/
http://mirror.sunnyvision.com/centos/6.8/os/i386/
http://centos.uhost.hk/6.8/os/i386/
http://repo.virtualhosting.hk/centos/6.8/os/i386/
http://ftp.cuhk.edu.hk/pub/Linux/centos/6.8/os/i386/
http://centos.communilink.net/6.8/os/i386/
http://centos.nethub.com.hk/6.8/os/i386/
http://ftp.sjtu.edu.cn/centos/6.8/os/i386/
http://mirrors.btte.net/centos/6.8/os/i386/

我该如何解决超时问题?

答案1

删除代理设置后已修复/etc/yum.conf

相关内容