问题描述
当输入下列下载命令时出错
yum install gcc++
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os: (28, ‘connect() timed out!’)
Error: Cannot find a valid baseurl for repo: base
解决原因及办法
原因: 网络代理问题。本人曾经在 /etc/yum.conf
下配置了不该配置的东东
解决办法:将 /etc/yum.conf
里的代理删除!