yum出了问题,重装也不行(已解决)
#yum info
Loading "installonlyn" plugin
Setting up repositories
core [1/3]
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 97, in main
result, resultmsgs = do()
File "/usr/share/yum-cli/cli.py", line 516, in doCommands
ypl = self.returnPkgLists()
File "/usr/share/yum-cli/cli.py", line 1178, in returnPkgLists
ypl = self.doPackageLists(pkgnarrow=pkgnarrow)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 930, in doPackageLists
self.doRepoSetup()
File "/usr/share/yum-cli/cli.py", line 78, in doRepoSetup
yum.YumBase.doRepoSetup(self, thisrepo=thisrepo)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 248, in doRepoSetup
repo.baseurlSetup()
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 535, in baseurlSetup
mirrorurls = getMirrorList(self.mirrorlist)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 838, in getMirrorList
fo = urlresolver.urlopen(url)
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 583, in urlopen
return default_grabber.urlopen(url, **kwargs)
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 741, in urlopen
return self._retry(opts, retryfunc, url)
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 702, in _retry
r = apply(func, (opts,) + args, {})
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 740, in retryfunc
return URLGrabberFileObject(url, filename=None, opts=opts)
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 893, in __init__
self._do_open()
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 960, in _do_open
fo, hdr = self._make_request(req, opener)
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 1059, in _make_request
fo = opener.open(req)
File "/usr/lib/python2.4/urllib2.py", line 358, in open
response = self._open(req, data)
File "/usr/lib/python2.4/urllib2.py", line 376, in _open
'_open', req)
File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
File "/usr/lib/python2.4/urllib2.py", line 573, in <lambda>
lambda r, proxy=url, type=type, meth=self.proxy_open:
File "/usr/lib/python2.4/urllib2.py", line 580, in proxy_open
if '@' in host:
TypeError: iterable argument required
要重装python吗?
[ 本帖最后由 aitilang 于 2006-10-11 09:37 编辑 ]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
原来是设置了环境变量http_proxy
去掉就好了!!
重装一遍系统都比这要快。
我重装一遍用了半个小时
对,我以前是看到过一个叫pirut的包,当时把它卸载了。
不知道它原来还和yum有关系。可是我装yum的时候并没有提示说要装它呀。
先用yum clean all 试试
不行把yum删了重新安装。因为yum关联其它的东西,比如pirut 、yumex
kyum等,所以在rpm -e yum之前要先把这些关联的删掉。
哎,不带参数时也就是正常显示,一旦要装软件就不行。
以前装了个内核又卸了,yum要求把一个p什么r什么的包也卸了,于是就成了这个样子
如果是SERVER正更新的问题用不了多长时间的!
你修改什么文件了吗?为什么一下子就不好用了呢?
我也挺好奇的.你用的是FC4?
-------------------------------------------------
在终端键入yum,看看有什么显示。
[ 本帖最后由 dlflying 于 2006-9-29 23:09 编辑 ]
怎么今天也没有回复呢?
我今天看了,还是不行. 到底要等几天呀!
你以前遇到这种问题时等了多长时间?
与python无关吧,有时SERVER正更新时易出现这种问题,一般等一段时间就好了。
在线等