哎,今天在使用163的源进行更新的时候出现如下错误提示!
2]# vim README.md [root@localhost php-5.6.12]# yum clean all 已加载插件:fastestmirror Cleaning repos: base elrepo extras updates 清理一切 Cleaning up list of fastest mirrors [root@localhost php-5.6.12]# yum makecache 已加载插件:fastestmirror Determining fastest mirrors * elrepo: ftp.ne.jp http://mirrors.163.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" 尝试其他镜像。 错误:Cannot retrieve repository metadata (repomd.xml) for repository: base. Ple ase verify its path and try again [root@localhost php-5.6.12]# ping mirrors.163.com PING mirrors.163.com (123.58.173.185) 56(84) bytes of data. 64 bytes from 123.58.173.185: icmp_seq=1 ttl=54 time=49.1 ms 64 bytes from 123.58.173.185: icmp_seq=2 ttl=54 time=50.7 ms ^C --- mirrors.163.com ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1113ms rtt min/avg/max/mdev = 49.178/49.939/50.701/0.793 ms [root@localhost ~]#
我该如何回报你呢?我wget一个一个repo,结果却是6的版本!6的版本也算了,居然还给我404!所以没办法,手动改一下吧!
# CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-$releasever - Base - 163.com baseurl=http://mirrors.163.com/centos/6.6/os/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 #released updates [updates] name=CentOS-$releasever - Updates - 163.com baseurl=http://mirrors.163.com/centos/6.6/updates/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras - 163.com baseurl=http://mirrors.163.com/centos/6.6/extras/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus - 163.com baseurl=http://mirrors.163.com/centos/6.6/centosplus/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 #contrib - packages by Centos Users [contrib] name=CentOS-$releasever - Contrib - 163.com baseurl=http://mirrors.163.com/centos/6.6/contrib/$basearch/ #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
从此,世界又安静了~~~! 163,我如何爱你?
(Linux)关于CentOS 6.6 使用163的YUM 源的小问题记录!
原文:http://my.oschina.net/CandyMi/blog/489565