PDA

View Full Version : Yum Problems



mjesus
28th November 2005, 04:36 PM
I had recently upgraded my Linux box from FC3 to FC4. I'd never used yum before. I used your recomendation, as it was in the FAQ page:

cd /etc
rm -f yum.conf
wget http://www.fedorafaq.org/samples/yum.conf
rpm -Uvh http://www.fedorafaq.org/yum

and the result was, upon the command "yum list available":

Setting up repositories
Traceback (most recent call last):
File "/usr/bin/yum", line 15, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 72, in main
result, resultmsgs = do()
File "/usr/share/yum-cli/cli.py", line 454, in doCommands
ypl = self.returnPkgLists()
File "/usr/share/yum-cli/cli.py", line 1083, in returnPkgLists
ypl = self.doPackageLists(pkgnarrow=pkgnarrow)
File "__init__.py", line 880, in doPackageLists
File "/usr/share/yum-cli/cli.py", line 72, in doRepoSetup
yum.YumBase.doRepoSetup(self, thisrepo=thisrepo)
File "__init__.py", line 216, in doRepoSetup
File "repos.py", line 628, in getRepoXML
File "repos.py", line 605, in get
File "/usr/lib/python2.4/site-packages/urlgrabber/mirror.py", line 414, in urlgrab
return self._mirror_try(func, url, kw)
File "/usr/lib/python2.4/site-packages/urlgrabber/mirror.py", line 400, in _mirror_try
return func_ref( *(fullurl,), **kwargs )
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 618, in urlgrab
return self._retry(opts, retryfunc, url, filename)
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 547, in _retry
return apply(func, (opts,) + args, {})
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 604, in retryfunc
fo = URLGrabberFileObject(url, filename, opts)
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 727, in __init__
self._do_open()
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 794, in _do_open
fo, hdr = self._make_request(req, opener)
File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 881, 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

Can anybody give me some help about this? Thanks

mjesus

nlkrio
28th November 2005, 05:21 PM
You use iso cds or dvds and you make afresh install of fc4?

mebrelith
28th November 2005, 05:25 PM
First of all, Yum rocks. Second, I hope you made a backup of your yum.conf before erasing. If so, get it back. Third, never ever replace yum.conf with another stuff from out there. Dont get me wrong Fedorafaq.org rules, but don't let it mess around with your yum.conf. Wanna add repos to your yum? Add them manually, get familiar with /etc/yum.repos.d/ and read the install instructions from the repos out there.

Bone
28th November 2005, 05:27 PM
reload yum from your ISO.

mjesus
30th November 2005, 01:17 PM
I made an upgrade usind CDs burned with the FC4 images downloaded from the Fedora site.

mjesus