最近发现服务器上的yum不太好用了,报如下的错误:
写道
http://mirrors.163.com/centos/6.6/updates/x86_64/Packages/kernel-devel-2.6.32-504.30.3.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
尝试其他镜像。
尝试其他镜像。
到http://mirrors.163.com/centos/6.6上看到一个readme文件,描述如下:
写道
This directory (and version of CentOS) is deprecated. For normal users,
you should use /6/ and not /6.6/ in your path. Please see this FAQ
concerning the CentOS release scheme:
https://wiki.centos.org/FAQ/General
If you know what you are doing, and absolutely want to remain at the 6.6
level, go to http://vault.centos.org/ for packages.
Please keep in mind that 6.0, 6.1, 6.2, 6.3, 6.4 , 6.5 and 6.6 no longer gets any updates, nor
any security fix's.
you should use /6/ and not /6.6/ in your path. Please see this FAQ
concerning the CentOS release scheme:
https://wiki.centos.org/FAQ/General
If you know what you are doing, and absolutely want to remain at the 6.6
level, go to http://vault.centos.org/ for packages.
Please keep in mind that 6.0, 6.1, 6.2, 6.3, 6.4 , 6.5 and 6.6 no longer gets any updates, nor
any security fix's.
坑爹的163把这些子版本的镜像都删除了,只留下6这一个镜像。
解决办法:
找到/etc/yum.repos.d/CentOS6-Base-163.repo文件,把文件内的所有6.6修改为6就可以恢复yum的能力了。
比如把
写道
#released updates
[updates]
name=CentOS-6 - Updates - 163.com
baseurl=http://mirrors.163.com/centos/6.6/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6.6&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
[updates]
name=CentOS-6 - Updates - 163.com
baseurl=http://mirrors.163.com/centos/6.6/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6.6&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
全部修改为
写道
#released updates
[updates]
name=CentOS-6 - Updates - 163.com
baseurl=http://mirrors.163.com/centos/6/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
[updates]
name=CentOS-6 - Updates - 163.com
baseurl=http://mirrors.163.com/centos/6/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
相关推荐
- 特别是对于较旧版本的CentOS,如CentOS 6.x,由于163镜像站点不再支持这些版本,所以会出现404错误。 #### 解决方案 1. **确认CentOS版本**: - 使用`cat /etc/centos-release`命令查看当前系统的版本号。 - ...
我们可以使用 CentOS 的 YUM 源,以下是下载的命令: wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm wget ...
这里要注意,虽然描述中提到了`redhat6.6更换163yum源`,但实际操作中我们通常会用到CentOS的镜像,因为RHEL和CentOS的兼容性非常好,它们都基于Fedora项目,只是RHEL是商业版,而CentOS是社区支持的免费版本。...
2. **更换国内源**:为了提高软件包下载速度,可以通过替换YUM源为国内镜像,如这里使用的163源,进行`yum clean all && yum makecache && yum update -y`来更新所有软件包。 3. **安装依赖包**: - `gcc`是C语言...
mv CentOS6-Base-163.repo CentOS-Base.repo # 更新yum源 yum clean all && yum makecache && yum update -y ``` ##### 2. 安装依赖包 - **gcc**: 编译工具,用于编译Nginx。 - **openssl-devel**: 提供SSL支持。...
wget -P /etc/yum.repos.d/ http://mirrors.163.com/.help/CentOS ``` 以上步骤是OpenStack Mitaka部署的基础准备阶段,接下来将详细介绍每个组件的具体配置流程。这些步骤能够确保OpenStack云平台的稳定运行,并为...