yum安装-[Errno 256] [Errno 256] No more mirrors to try.
今天在CentOS6.5中使用yum安装软件安装gcc-c++时出现错误,总是提示“[Errno 256] No more mirrors to try.”,百度后发现原来要设置yum源。国内比较快yum源有163源、sohu源。这里以163源为例子。
修改如下
- cd /etc/yum.repos.d
- mv CentOS-Base.repo CentOS-Base.repo.backup
- wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
- mv CentOS6-Base-163.repo CentOS-Base.repo
- yum clean all
再次[root@localhost yum.repos.d]# yum install gcc-c++安装成功!!
原文链接:https://www.f2er.com/centos/377281.html