關於centos更新外掛程式fastestmirror 導致更新慢的問題的解決。

來源:互聯網
上載者:User

使用 fastestmirror自動檢測更新源的速度,從而自動剔除掉速度慢的源是個很先進的方法,但是問題也來了:如果換了網路環境了,導致以前緩衝裡面的源速度都很慢該如何更換新的源 用來更新centos呢?

 

起因是因為最新動向非常慢,好像是連到了很遠的源,注意一看,好像是個叫fr2.rpmfind.net的源,哎,難怪速度如此,於是,更新了sohu的源和交大的源。發現還是使用這個fr2的源。很鬱悶。不知道為啥。突然看到

 

 [root@localhost yum]# yum install mplayer
Loaded plugins: fastestmirror, rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Loading mirror speeds from cached hostfile
 * rpmforge: fr2.rpmfind.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mplayer.i386 0:1.0-0.43.svn20090711.el5.rf set to be updated
--> Processing Dependency: libdirectfb-1.2.so.0 for package: mplayer
--> Processing Dependency: libdca.so.0 for package: mplayer
--> Processing Dependency: libmp3lame.so.0 for package: mplayer

想到了這個是從cache提取的源。於是到 /var/cache/yum/rpmforge/ 下面找到mirrorlist.txt 開啟。果然發現沒有在CenOS-Base.repo裡面設定的新的sohu的源。於是手動在裡面添加上

http://mirrors.sohu.com/centos/$releasever/os/$basearch/
http://ftp.sjtu.edu.cn/centos/5/os/$basearch/
http://apt.sw.be/redhat/el5/en/$ARCH/rpmforge
#outdated#http://archive.cs.uu.nl/mirror/dag.wieers/redhat/el5/en/$ARCH/rpmforge
#outdated#http://ftp2.lcpe.uni-sofia.bg/freshrpms/pub/dag/redhat/el5/en/$ARCH/rpmforge
#identical#http://ftp.heanet.ie/pub/freshrpms/pub/dag/redhat/el5/en/$ARCH/rpmforge
http://ftp-stud.fht-esslingen.de/dag/redhat/el5/en/$ARCH/rpmforge
#outdated#http://mirror.cpsc.ucalgary.ca/mirror/dag/redhat/el5/en/$ARCH/rpmforge
#outdated#http://mirrors.ircam.fr/pub/dag/redhat/el5/en/$ARCH/rpmforge
#outdated#http://rh-mirror.linux.iastate.edu/pub/dag/redhat/el5/en/$ARCH/rpmforge
http://fr2.rpmfind.net/linux/dag/redhat/el5/en/$ARCH/rpmforge
#outdated#http://wftp.tu-chemnitz.de/pub/linux/dag/redhat/el5/en/$ARCH/rpmforge
#outofsync#http://www.mirrorservice.org/sites/apt.sw.be/redhat/el5/en/$ARCH/rpmforge

最上面兩個就是新加入的源的地址。

 

好,問題解決!

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.