CentOS 6操作系统版本结束了生命周期(EOL),Linux社区已不再维护该操作系统版本。建议您升级操作系统至CentOS 7及以上,如果您的业务过渡期仍需要使用CentOS 6系统中的一些安装包,请根据下文切换CentOS 6的源。
背景信息
2020年11月30日CentOS 6 EOL。按照社区规则,CentOS 6的源地址
http://mirror.centos.org/centos-6/
内容已移除,目前第三方的镜像站中均已移除CentOS 6的源。阿里云的源http://mirrors.cloud.aliyuncs.com
和http://mirrors.aliyun.com
也无法同步到CentOS 6的源。当您在阿里云上继续使用默认配置的CentOS 6的源会发生报错。报错示例如下图所示:
您可以通过下文的操作步骤,在CentOS 6操作系统的ECS实例中将源配置按照网络环境不同进行切换。
- yum源
- 专有网络VPC类型实例需切换为
http://mirrors.cloud.aliyuncs.com/centos-vault/6.10/
源。 - 经典网络类型实例需切换为
http://mirrors.aliyuncs.com/centos-vault/6.10/
源。
- 专有网络VPC类型实例需切换为
- epel源
- 专有网络VPC类型实例需切换为
http://mirrors.cloud.aliyuncs.com/epel-archive/6/
源。 - 经典网络类型实例需切换为
http://mirrors.aliyuncs.com/epel-archive/6/
源。
- 专有网络VPC类型实例需切换为
说明 本文主要说明ECS实例中的相关操作与配置。如果您的服务器不是ECS实例,需保证服务器具有公网访问能力,并且源地址
http://mirrors.cloud.aliyuncs.com
需要替换为http://mirrors.aliyun.com
。例如,切换yum源为http://mirrors.aliyun.com/centos-vault/6.10/
;切换epel源为http://mirrors.aliyun.com/epel-archive/6/
。
在文档使用中是否遇到以下问题
更多建议
匿名提交