CentOS5无法使用yum的解决办法
来源:互联网 发布:linux 安装redis 编辑:程序博客网 时间:2024/06/10 17:36
打开/etc/yum.repos.d/CentOS-Base.repo
由于CentOS5已停止支持,因此肯定是源的问题,使用如下内容替换CentOS-Base.repo中的内容
并依次执行:
yum clean all
yum makecache
即可解决问题。
--------------------------------------------------------------------------------------------------------
# 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
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://vault.centos.org/5.11/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=http://vault.centos.org/5.11/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=http://vault.centos.org/5.11/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
baseurl=http://vault.centos.org/5.11/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
baseurl=http://vault.centos.org/5.11/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5</span></strong></span>
- CentOS5无法使用yum的解决办法
- centos5.5 无法使用yum解决办法
- CentOS5 使用163的yum源
- RHEL5 使用 CentOS5 的 YUM及配置YUM仓库
- python升级导致yum命令无法使用的解决办法
- RedHat未注册 无法使用yum的解决办法
- python升级导致yum命令无法使用的解决办法
- python升级导致yum命令无法使用的解决办法
- centos6下升级python导致yum无法使用的解决办法
- CentOS-5的yum源无法使用解决办法
- centOS5.3下Firefox无法显示中文的解决办法
- RHEL5.4使用CentOS5.4的yum源(转载)
- CentOS5使用Yum安装PHP5.3的两种方法
- CentOS5使用Yum安装PHP5.3的两种方法
- yum 使用不正常的解决办法
- yum 无法使用的解决
- yum 无法使用的解决
- python升级导致yum命令无法使用的解决办法(修改版)
- jquery过滤器,过滤器它是在基本选择器与层次选择器获取到一批元素后,再进行过滤操作
- Spring MVC RequestParam RequestHeader CookieValue 注解
- json工具箱
- Java8 DefaultMethod
- 文章标题
- CentOS5无法使用yum的解决办法
- Java8
- [二分+并查集] BZOJ1821 : [JSOI2010]Group 部落划分 Group
- apache httpd module 笔记
- Bootstrap modal只加载一次 数据的解决办法
- 蓝牙通信协议
- Qml全局按键
- https自建证书访问
- //编写一个学生类(Students),包括姓名(name)、性别(sex)、学号(num)、语文课(Chinese)、英语课(English)、 //数学课(Math)和平均值(avg),方法包括求