解决 YUM Repository updates is listed more than once in the configuration 的问题
来源:互联网 发布:知乎android客户端 编辑:程序博客网 时间:2024/06/07 04:01
今天搞了两个小时,总算吧上面问题搞定了.
情况1(不是重点,只是开始): fedora17下面的, 以前yum update都算正常,今天是巨慢啊,下载速度总是在不到1K 或者 1K多一点那跳,这样下去么搞到下个世纪了,重试N次还是那个样子.
百度上瞄了一页相关yum update慢的搜索结果,说是网易的更新服务器现在硬件故障了,才明白,以前更新服务器基本上都是163.算是找到原因了.解决方法是添加sohu的更新源,方法简单提一下吧:先进http://mirrors.sohu.com/去,点fedora(我的系统)后面的help,然后你就会了.然后,再然后,yum update 太爽了,4M的网络,下载速度基本都在500K以上.更新这个问题就完成了.
下面是本文的核心问题, 上面那样搞了以后,就发现每次yum list啊什么的,就会多出几行来,Repository updates is listed more than once in the configuration 样子都差不多,从前面更新都很快完成来看,这个并不影响结果,但看着就是不爽,又去度娘上找啊找,再去股沟里找啊找.都是同样的问题,但解决方法跟我这的情况又对不上,感觉问题肯定是出在新加了sohu更新源这里,直接去/etc/yum.repos.d/下面看,就比原来多了自己下载的那两个repo文件,也没有部分帖子里提到的文件名重复的问题.
试试看的态度, cat fedora-sohu.repo 没多少行,看到几个熟悉的单词 fedora fedora-debuginfo fedora-source,这个刚好就是前面yum的时候多出来的那几行里不同的单词嘛,好像找到具体原因了, 再cat fedora.repo,这个是系统原来就有的文件,看出来了,这里面的东西,sohu那个文件里面都有,那应该就是这里重复了吧.
回到上层目录,把/etc/yum.repos.d/目录打个包,然后把里面的fedora.repo和fedora-update.repo两个文件删除,再yum update,哇,太清爽了.
应该也有别的办法,比如删除sohu文件里面部分内容之类了,不试了,问题解决了很高兴.
- 解决 YUM Repository updates is listed more than once in the configuration 的问题
- updates is listed more than once in the configuration 的解决
- ios解决bug--“Pushing the same view controller instance more than once is not supported”
- Column specified more than once in the INSERT list.
- appears more than once in the keychain. The codesign tool requires there onl
- appears more than once in the keychain The codesign tool requires there only be one
- “Pushing the same view controller instance more than once is not supported” exception
- iOS--错误集锦--pushing the same view controller instance more than once is not supperted
- 【xcode】错误之Certificate identity 'iPhone Developer: XXX' appears more than once in the keychain
- 【Xcode】Certificate identity 'iPhone Developer: XXXXXXXX' appears more than once in the keychain
- CodeSign error: Certificate identity 'iPhone Developer:xxx appears more than once in the keychain.
- AcceptChanges and Updates once more
- 关于VS2003.NET的“The solution has more than 16384 VC files in it.”问题。
- 解决“certificateidentity 'iphone distribution' appears more than once”错误
- 解决“certificateidentity 'iphone distribution' appears more than once”错误
- CodeSign error: Certificate identity 'iPhone Developer:**** appears more than once in the keychain.
- (引)The item "obj/Debug/xxx.resources" was specified more than once the "Resources
- eclipse 配置scala问题-More than one scala library found in the build path
- malloc,free 实现原理和机制
- TLD(Tracking-Learning-Detection)学习与源码理解之(六)
- android APK反编译
- jquery基础
- javascript根据日期判断星期几
- 解决 YUM Repository updates is listed more than once in the configuration 的问题
- oracle动态性能视图分类
- 数学是一种思考方式
- 数据结构-06 栈Stack
- 运用四色建模法进行领域分析
- TLD(Tracking-Learning-Detection)学习与源码理解之(七)
- SQL Server 插入记录的自动编号ID及 返回下一个自动编号
- Oracle10g基于OEL5的安装中出现的各种问题
- python教程