LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: wq1977

关于yum太慢了的解决方案

[复制链接]
发表于 2007-2-6 11:31:18 | 显示全部楼层
楼主,求救~~

我用的你的那个urlgrab文件把以前那个覆盖了,然后我用的是proz下载~~

yum 的时候他说无法打开remond.xml.gz文件~~


  1. Got DL succesfully, now renaming file:??           
  2. Renaming file repomd.xml .....
  3. All Done.
  4. Error: Cannot open/read repomd.xml file for repository: fedora-cn
复制代码


我的urlgrab文件是


  1. #            filename = urllib.url2pathname(path)
  2.         
  3.         if not (os.path.splitext(filename)[1] in ('.hdr')):
  4.            # print "I want use wget or even axel to download,not you!"
  5.             if urlparse.urlparse(url)[0] == "ftp":
  6.                raise URLGrabError(2,
  7.                           _('Ftp can not, no proxy provide'))
  8. #            if os.system("wget %s -O %s" % (url,filename)) != 0:
  9. #            print "%s\n%s\n%s\n%s\n" % (path,parts,kk,filename)
  10. #            print '%s' % urllib.url2pathname(filename)
  11.             if os.system("proz -k 5 -r -t 4 --retry-delay=6 --no-getch --no-curses %s -P %s" % (url,os.path.dirname(filename))) != 0:
  12.                 raise URLGrabError(2,
  13.                           _('System function return fail'))
  14.             return filename
复制代码


现在不知道怎么办,我用wget来下载,也要出这个错误~~~
回复 支持 反对

使用道具 举报

发表于 2007-2-6 12:12:20 | 显示全部楼层
如果喜欢用图形yum的朋友,常常可以看到,有些yum插件无法加载~~~~

比如楼主写的axelget.py~~

你只需要一个小的改动,就可以正常加载了~~~~
先到/usr/lib/python2.4/site-packages/下,
如果你的用的yumex 你只需要改动yumex/yumexBase.py,找到下面部分加入红色部分

  1.   # Only use CORE Plugins
  2.             if not self.yumexconf.noplugins:
  3.                 self.progresslog( _( "Setup Yum : Plugins" ) )
  4.                 self.doConfigSetup( plugin_types=( yum.plugins.TYPE_CORE, [color="Red"]yum.plugins.TYPE_INTERACTIVE[/color] ), debuglevel=self.yumexconf.yumdebuglevel )
  5.             else:
  6.                 self.progresslog( _( "Setup Yum : Plugins are disabled" ) )
复制代码


如果是用pirut的朋友可以在,pirut/__init__.py里找到
相同的部分,加入红色部分即可~~

然后启动yumex或者pirut,看是不是多了你的插件了~~
回复 支持 反对

使用道具 举报

发表于 2007-2-6 17:38:13 | 显示全部楼层
说实话就是内地网速的问题。我在HK这边用起yum上国外镜像简直就是飞一般的速度。
回复 支持 反对

使用道具 举报

发表于 2007-2-6 17:53:48 | 显示全部楼层
恩  主要还是 国内网速慢的原因  ubuntu debian 国内的镜像速度都不错 fedora国内有镜像 但是更新不勤
  其实 用yumex挺好的   默认自动选择最快的镜像  而且软件包的管理也很方便 适合于 图形界面下用  不过如果 在终端上  貌似只有楼主的方法了
回复 支持 反对

使用道具 举报

发表于 2007-3-24 22:12:16 | 显示全部楼层
为什么我编译时提示系统有问题:The strip option is enabled. This should not be a problem usually, but on some
systems it breaks stuff.

Configuration done:
  Internationalization disabled.
  Debugging disabled.
  Binary stripping enabled.
回复 支持 反对

使用道具 举报

发表于 2007-4-22 22:06:19 | 显示全部楼层

linux第一次跟我生气了!!!

# yum -y update
Loading "fastestmirror" plugin
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
core                                                                 [1/4]
[color="Red"]I want use wget or even axel to download,not you!
I want use wget or even axel to download,not you!:comp
Initializing download: http://ftp.wsisiz.edu.pl/pub/lin ... repodata/repomd.xml
File size: 1140 bytes
No state file, cannot resume!
[color="Red"]I want use wget or even axel to download,not you!
Initializing download: http://distribuciones.telecable. ... repodata/repomd.xml
File size: 1140 bytes
No state file, cannot resume!
[color="Red"]I want use wget or even axel to download,not you!
Initializing download: http://fedora.ifc.unam.mx/fedora/5/i386/os/repodata/repomd.xml
File size: 1140 bytes

能告诉我怎么回事么?!!
回复 支持 反对

使用道具 举报

发表于 2007-4-23 08:58:09 | 显示全部楼层
最好是对yum进行重新设计。其实以前的apt-rpm挺好的,为什么fedora社区不用呢,唉。
回复 支持 反对

使用道具 举报

发表于 2007-4-23 12:41:52 | 显示全部楼层
我一直在使用fastestmirror插件
回复 支持 反对

使用道具 举报

发表于 2007-4-25 13:35:00 | 显示全部楼层
编译完axle后第一次用yum升级好快。。。后来再用就显示sh:axle 找不到了 。。
怎么回事 。。而且速度好慢。。
回复 支持 反对

使用道具 举报

发表于 2007-6-5 22:44:37 | 显示全部楼层
axelget.conf和axelget.py两个文件下不了,似乎网址错误,不知哪位能帮忙上传一下,谢谢!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表