Hello,

Try the following, it should fix it for you.

# yum clean all

Then

# yum update

Cheers,

Steve

Stephen L. LaBelle
Metropolitan State College of Denver
Senior System Administrator
Red Hat Team
[email protected]
303-556-3644

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Tangren, Bill
Sent: Thursday, July 22, 2010 2:25 PM
To: [email protected]
Subject: [rhelv5-list] yum update problem

I have just installed RHEL 5.5 (32 bit) in a standard configuration,
except 
that I installed everything (not as easy as it used to be). The install
and 
registration went smoothly, but when I do a "yum update" from the
command 
line, I get a lot of errors that look like this:

Is this ok [y/N]: y
Downloading Packages:
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 309, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 261, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 398, in doTransaction
    problems = self.downloadPkgs(downloadpkgs, 
callback_total=self.download_callback_total_cb)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 1354, in

downloadPkgs
    cache=po.repo.http_caching != 'none',
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 849, in 
getPackage
    cache=cache
  File "/usr/lib/yum-plugins/rhnplugin.py", line 308, in _getFile
    start, end, copy_local, checkfunc, text, reget, cache)
  File "/usr/lib/yum-plugins/rhnplugin.py", line 401, in 
_noExceptionWrappingGet
    timeout=self.timeout
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
934, in 
urlgrab
    return self._retry(opts, retryfunc, url, filename)
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
852, in 
_retry
    r = apply(func, (opts,) + args, {})
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
920, in 
retryfunc
    fo = URLGrabberFileObject(url, filename, opts)
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
1008, in 
__init__
    self._do_open()
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
1091, in 
_do_open
    fo, hdr = self._make_request(req, opener)
  File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line
1200, in 
_make_request
    fo = opener.open(req)
  File "/usr/lib/python2.4/urllib2.py", line 364, in open
    response = meth(req, response)
  File "/usr/lib/python2.4/urllib2.py", line 471, in http_response
    response = self.parent.error(
  File "/usr/lib/python2.4/urllib2.py", line 396, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 554, in http_error_302
    return self.parent.open(new)
  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/site-packages/M2Crypto/m2urllib2.py", line
82, in 
https_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "/usr/lib/python2.4/httplib.py", line 813, in request
    if v[0] != 32 or not self.auto_open:
IndexError: tuple index out of range


If I try the GUI updater, I get the error: "Cannot find a suitable
mirror"

Does anyone know what gives? I have many other RH boxes, and have no
trouble 
updating. Oh, I did check DNS and network settings. I can get to the RH
update 
server using a web browser (even though it doesn't allow that sort of 
connection).

Google didn't turn up much useful. Any ideas?

-----
Bill Tangren


_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to