Hatena::Grouplinux2

server_setting_memo

2007-05-02 (Wednesday)

[]yumエラー yumのエラー - server_setting_memo を含むブックマーク

[環境]

Fedora Core 6


次のようなエラーが出た

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 102, in main

result, resultmsgs = do()

File "/usr/share/yum-cli/cli.py", line 359, in doCommands

return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)

File "/usr/share/yum-cli/yumcommands.py", line 353, in doCommand

return base.updatePkgs(extcmds)

File "/usr/share/yum-cli/cli.py", line 628, in updatePkgs

self.doRepoSetup()

File "/usr/share/yum-cli/cli.py", line 102, in doRepoSetup

yum.YumBase.doRepoSetup(self, thisrepo=thisrepo)

File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 299, in doRepoSetup

repo.setup(self.conf.cache)

File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 518, in setup

self.baseurlSetup()

File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 359, in baseurlSetup

mirrorurls = getMirrorList(self.mirrorlist, self.proxy_dict)

File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 713, in getMirrorList

fo = urlresolver.urlopen(url, proxies=pdict)

File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 607, in urlopen

return default_grabber.urlopen(url, **kwargs)

File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 884, in urlopen

return self._retry(opts, retryfunc, url)

File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 845, in _retry

r = apply(func, (opts,) + args, {})

File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 883, in retryfunc

return URLGrabberFileObject(url, filename=None, opts=opts)

File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 1001, in __init__

self._do_open()

File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 1068, in _do_open

fo, hdr = self._make_request(req, opener)

File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 1168, 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


[解決方法]

環境変数HTTP_PROXYが今まで

xxx.yyy.zzz.www:ppp

になっていたが

http://xxx.yyy.zzz.www:ppp

にしたら直った。


[参考]

http://fedora.jp/pipermail/users/2003-November/004756.html


iterable argument requiredの文から、ずっとyum引数が違うのかな、と勘違いしてました