yum 安装软件时总出现提示问题的解决—centos 5.8 64bit

今天学习做实验时,因为需要用yum安装一些软件,但是在启动yum时总出现以下的提示:

?
1
2
3
4
5
6
7
8
9
[root@bogon ~] # yum install
Loaded plugins: fastestmirror, security
Repository base is listed  more  than once  in  the configuration
Repository updates is listed  more  than once  in  the configuration
Repository addons is listed  more  than once  in  the configuration
Repository extras is listed  more  than once  in  the configuration
Repository centosplus is listed  more  than once  in  the configuration
Repository contrib is listed  more  than once  in  the configuration
Loading mirror speeds from cached hostfile

虽然不影响使用,看着总不美观 。

在搜索引擎里搜索了一下, 也没有找到十分确切的解决办法,有一个细路不是看看repo文件是不是重复,根据提示,说明应该是配置的yum里有相同的命令。

我回想了一下,应该有这方面的问题 ,因为我为了加快yum的速度,除了系统配置好的以外,我还添加了 163,epel的源。

?
1
2
3
4
5
6
7
8
9
10
11
[root@bogon ~] # cd /etc/yum.repos.d/
[root@bogon yum.repos.d] # ll
鎬昏 36
-rw-r--r-- 1 root root 2341 2011-02-17 CentOS5-Base-163.repo --自己添加的
-rw-r--r-- 1 root root 2446 05-14 06:45 CentOS-Base.repo
-rw-r--r-- 1 root root 1926 2013-10-08 CentOS-Base.repo.ori
-rw-r--r-- 1 root root  636 2013-10-08 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root  626 2013-10-08 CentOS-Media.repo
-rw-r--r-- 1 root root 7574 2013-10-08 CentOS-Vault.repo
-rw-r--r-- 1 root root  954 2010-08-12 epel.repo   --自己添加
-rw-r--r-- 1 root root 1054 2010-08-12 epel-testing.repo --自动与epel.repo一起安装的
?
1
  
?
1
我的解决办法是:把163的改名不让他起作用。
[root@bogon yum.repos.d]# mv CentOS5-Base-163.repo CentOS5-Base-163.repo.ori
[root@bogon yum.repos.d]# yum info
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * epel: mirrors.yun-idc.com

修改完成后,直接运行yum info,没有再出现这个问题。看来是解决了,

本文转自孤舟夜航之家博客51CTO博客,原文链接http://blog.51cto.com/cysky/1412145如需转载请自行联系原作者


cysky

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值