怪了,无聊时163/sohu还是阿里云,都粗错:
Eg. Invalid release/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6.0/base/mirrorlist.txt
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6.0/base/mirrorlist.txt
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
[root@mail yum.repos.d]# yum makecache
Loaded plugins: security
[Errno 14] HTTP Error 404 :
Trying other mirror.
其实很简单,就是没有centos/6.0/...这个目录的,要改!
#
[base]
name=CentOS-$releasever - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=
mirrorlist=
gpgcheck=1
gpgkey=
#released updates
[updates]
name=CentOS-$releasever - Updates - mirrors.aliyun.com
failovermethod=priority
baseurl=
mirrorlist=
gpgcheck=1
gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - mirrors.aliyun.com
failovermethod=priority
baseurl=
mirrorlist=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - mirrors.aliyun.com
failovermethod=priority
baseurl=
mirrorlist=
gpgcheck=1
enabled=0
gpgkey=
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - mirrors.aliyun.com
failovermethod=priority
baseurl=
mirrorlist=
gpgcheck=1
enabled=0
gpgkey=
~
就是把那个什么$releasever直接改成6,而不是6.0,系统变量默认出来是6.0,所以错了。这样 就可以了!
yum clean all
rm -f /var/lib/rpm/__db*
yum makecache
十分感谢我马哥!这个开源资源真的好!
阅读(52017) | 评论(0) | 转发(0) |