Centos 5.5不能使用yum
来源:互联网 发布:巴迪斯吊顶设计软件 编辑:程序博客网 时间:2024/06/05 16:09
Centos 5.5不能使用yum的问题
以下报错信息:
[root@clnet.cn yum.repos.d]# yum search mysqlLoaded plugins: fastestmirror, securityLoading mirror speeds from cached hostfileYumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/removing mirrorlist with no valid mirrors: /var/cache/yum/base/mirrorlist.txtError: Cannot find a valid baseurl for repo: base
1.修改 vi /etc/yum.repos.d/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-$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
2.修改文件后,清除yum缓存
yum clean all
3.重新加载缓存
yum makecache
阅读全文
0 0
- Centos 5.5不能使用yum
- CentOs下yum不能使用的解决办法
- zz Centos中ping正常,yum不能使用的解决
- centos 6.4 不能使用yum install 的问题
- yum 不能正常使用
- CentOS yum详细使用
- CentOS无法使用YUM
- centos yum的使用
- 【CentOS】yum命令使用
- centos 4.x不能yum问题解决
- centos 不能上网,yum安装失败 解决办法
- Centos 7 安装 Python3.5.2后yum不能正常使用的解决办法
- CentOS更新Python版本,同时修复yum不能使用的问题
- Centos 7 安装 Python3.5.2后yum不能正常使用的解决办法
- RedHat6使用CentOS yum源 换yum
- centos7 yum fastestmirror不能使用
- CentOS 5.5 yum源
- centos yum php 5.5
- 写一个调色板控件(终结)
- URAL 1996 Cipher Message 3 (FFT + KMP)
- 多机Monkey全自动测试尝试
- 如何在mac上安装linus
- 求一个数的因子数打表
- Centos 5.5不能使用yum
- 8.了不起的分支和循环03--2017/08/14--2
- idea创建maven聚合项目时module变灰
- CNTK API文档翻译(16)——增强学习基础
- qt开发环境
- C语言和C++的区别与对比
- 点击按钮后跳转到php网页
- 怎么将自己的路径永久添加到PYTHONPATH中?
- javaSE总结(仅限作者菌自己头疼的问题)