您的位置:首页 > 运维架构 > Linux

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

2014-05-16 04:47 483 查看
今天学习做实验时,因为需要用yum安装一些软件,但是在启动yum时总出现以下的提示:
[root@bogon~]#yuminstall Loadedplugins:fastestmirror,security Repositorybaseislistedmorethanonceintheconfiguration Repositoryupdatesislistedmorethanonceintheconfiguration Repositoryaddonsislistedmorethanonceintheconfiguration Repositoryextrasislistedmorethanonceintheconfiguration Repositorycentosplusislistedmorethanonceintheconfiguration Repositorycontribislistedmorethanonceintheconfiguration Loadingmirrorspeedsfromcachedhostfile
虽然不影响使用,看着总不美观。

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

我回想了一下,应该有这方面的问题,因为我为了加快yum的速度,除了系统配置好的以外,我还添加了163,epel的源。
[root@bogon~]#cd/etc/yum.repos.d/ [root@bogonyum.repos.d]#ll 鎬昏36 -rw-r--r--1rootroot23412011-02-17CentOS5-Base-163.repo--自己添加的 -rw-r--r--1rootroot244605-1406:45CentOS-Base.repo -rw-r--r--1rootroot19262013-10-08CentOS-Base.repo.ori -rw-r--r--1rootroot6362013-10-08CentOS-Debuginfo.repo -rw-r--r--1rootroot6262013-10-08CentOS-Media.repo -rw-r--r--1rootroot75742013-10-08CentOS-Vault.repo -rw-r--r--1rootroot9542010-08-12epel.repo--自己添加 -rw-r--r--1rootroot10542010-08-12epel-testing.repo--自动与epel.repo一起安装的我的解决办法是:把163的改名不让他起作用。
[root@bogonyum.repos.d]#mvCentOS5-Base-163.repoCentOS5-Base-163.repo.ori
[root@bogonyum.repos.d]#yuminfo
Loadedplugins:fastestmirror,security
Loadingmirrorspeedsfromcachedhostfile
*epel:mirrors.yun-idc.com

修改完成后,直接运行yuminfo,没有再出现这个问题。看来是解决了,
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  软件 false
相关文章推荐