Centos6系统yum无法使用-最新解决办法
一、CentOS6
停止维护更新日期2020年11月30日
二、2020年12月2日下架了包括官方所有的CentOS6
源(包括国内的镜像站)
三、CentOS6
也完成了它的历史使命
在生产的环境中依旧由很多CentOS6系统依然在坚持,那么可以采取挂载光盘或者使用centos-vault源安装软件包,这里挂载光盘的方式不做讲述。
四、使用centos-vault
作为更新源
1.官方地址
#阿里云
http://mirrors.aliyun.com/centos-vault/#官方
https://vault.centos.org/#阿里云和官方的任选其一即可
2.使用阿里云centos-vault
源
vi /etc/yum.repos.d/CentOS-Base.repo
# 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-6.10 - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/6.10/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6#released updates
[updates]
name=CentOS-6.10 - Updates - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/6.10/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6#additional packages that may be useful
[extras]
name=CentOS-6.10 - Extras - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/6.10/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6.10 - Plus - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/6.10/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6#contrib - packages by Centos Users
[contrib]
name=CentOS-6.10 - Contrib - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/6.10/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6
3.使用官方centos-vault
源
vi /etc/yum.repos.d/CentOS-Base.repo
# 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-6.10 - Base - vault.centos.org
failovermethod=priority
baseurl=http://vault.centos.org/6.10/os/$basearch/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6#released updates
[updates]
name=CentOS-6.10 - Updates - vault.centos.org
failovermethod=priority
baseurl=http://vault.centos.org/6.10/updates/$basearch/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6#additional packages that may be useful
[extras]
name=CentOS-6.10 - Extras - vault.centos.org
failovermethod=priority
baseurl=http://vault.centos.org/6.10/extras/$basearch/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6.10 - Plus - vault.centos.org
failovermethod=priority
baseurl=http://vault.centos.org/6.10/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6#contrib - packages by Centos Users
[contrib]
name=CentOS-6.10 - Contrib - vault.centos.org
failovermethod=priority
baseurl=http://vault.centos.org/6.10/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6
4.替换CentOS-Base.repo
文件内容后清除下缓存
yum clean all && yum makecache
五、那么如何使用epel
源
1.官方地址
https://archives.fedoraproject.org/pub/archive/epel/
2.下载安装epel
源
#下载epel源
wget https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm#安装epel源
rpm -ivh epel-release-6-8.noarch.rpm#清除下缓存
yum clean all && yum makecache
Centos6系统yum无法使用-最新解决办法相关推荐
- python卸载错误_卸载python后导致yum无法使用的解决办法 - Python - 服务器之家
卸载python后导致yum无法使用的解决办法 发布时间:2014-08-03 来源:服务器之家 由于服务器需要升级python,参照了一篇坑爹的文章卸载了旧版python # 卸载旧的python ...
- USB接口的键盘在进入系统前无法使用的解决办法
重启,进BIOS,Advanced >> USB Configuration >>Legacy USB Suport ,设为 Enable 用win7,一直比较喜欢用休眠来关 ...
- No module named yum错误的解决办法
No module named yum错误的解决办法 今天用yum安装软件的时候出现如下错误: There was a problem importing one of the Python modu ...
- centos 卸载python和yum之后的解决办法
转载来自:http://www.cnblogs.com/phpandmysql/p/7066399.html centos 卸载python和yum之后的解决办法 网上看到有同学yum不能使用的消息, ...
- 小T电视直播服务器无响应,【沙发管家】看电视直播点播不卡顿的最新解决办法!...
原标题:[沙发管家]看电视直播点播不卡顿的最新解决办法! 其实关于智能机顶盒.智能电视大家最想了解的就是想知道到底能不能流畅的看直播.看视频电影,这里我可以很负责的告诉大家:想要高清.完全不卡顿的看直 ...
- Windows 10更新导致VMWare无法使用的解决办法-亲测可用
Windows 10更新导致VMWare无法使用的解决办法-亲测可用 Windows 10自动更新后,原有的VMWare无法正常使用,开启系统时会出现以下弹窗: 网上的办法大都千篇一律,最简便的方法是 ...
- Linux无法联网怎么办?解析VMware上的CentOS7(Linux)系统无法联网的解决办法
Linux无法联网怎么办?解析VMware上的CentOS7(Linux)系统无法联网的解决办法! 许多人在VMware上安装了Linux系统之后,都会遇到无法联网的问题,作者也是遇到了这个问题,在进 ...
- CentOS7系统ifconfig无法使用的解决方法
CentOS7系统ifconfig无法使用的解决方法 参考文章: (1)CentOS7系统ifconfig无法使用的解决方法 (2)https://www.cnblogs.com/mh-study/p ...
- window 服务器不稳定,服务器Windows系统突发情况的解决办法
服务器Windows系统现在还是大部分的站长的选择,有很多用户是使用Windows作为网站服务器的系统.今天小编对于服务器Windows系统在维护过程中出现的几种突发情况,来讲讲解决办法. 1.终端协 ...
- 关于修改WIFI代理后手机部分APP无法使用的解决办法
关于修改WIFI代理后手机部分APP无法使用的解决办法 最近在练习爬虫抓取手机app数据时出现了一个问题,就是修改wifi代理,使用fiddler代理时,使用斗鱼app显示无法连接到服务器,在网上搜索 ...
最新文章
- tensorflow问题
- python做运动控制_第一课:用Python操控小龟小车运动
- metasploit msfconsole 命令参数
- 环境部署(java安装和配置,Tomcat安装和配置)(tomcat下部署war包)
- 软考信息系统项目管理师_管理科学(运筹学)2---软考高级之信息系统项目管理师034
- cvpr 2019--人脸聚类
- 3 sum python
- MySQL官方提供的日志分析工具_MySQL 日志分析的几款工具-Fun言
- tensorflow-ckpt2npy
- 全球各大网站的服务器使用什么操作系统和WEB服务器(转)
- 阿泰,水晶报表--推拉之间
- ViewUI高保真 原型元件库操作指南
- Sprite Kit教程
- 重要消息|2020年9月1日起, SSL证书最长有效期变更为1年
- 调用百度自然语言接口实现文本分析
- 京东平台和商家的不同合作模式
- 【NOIP2007提高组】矩阵取数游戏
- 【课程设计|C++】设计一个哈夫曼编码器/译码器设计
- 四、Docker安装 Portainer 可视化工具
- display:dp:edid/e-edid/displayid
热门文章
- Java 基础篇--字符串
- 解决 v-for 出现的 warning:component lists rendered with v-for should have explicit keys
- adb 连接某个wifi_adb wifi 测试(无需root)
- MQTT QOS Retained Message
- 计算机思维对本专业的影响,计算机专业本科生创新思维培养及其哲学思考
- Windows无线网络设置中的7种安全类型简介
- Java中求珠穆朗玛峰问题
- vue 临时会话sessionStorage
- Pymol获得蛋白中二级结构信息
- R语言Outliers异常值检测方法比较