[Yum] localhost can't update itself

Millard, Matt Millard.Matt at principal.com
Fri Sep 19 18:47:09 UTC 2003


OK just figured it out...checking my root environment I had http_proxy set.  I unset this and it's working now.
It looks like I did this some time to test using a proxy to get to outside repos.  Sorry for the confusion, but the error wasn't helping me much.  Just for reference I'd set http_proxy like this:

export http_proxy=http://myuserid:mypassword@proxy01.principal.com:80

Also here is the run with your httplib.py (syntax problems?)
[root at ul055 root]# export PYTHONPATH=.
SyntaxError: invalid syntax
[root at ul055 root]# python /usr/share/yum/urlgrabber.pyc http://midrange.principal.com/pub/updates/7.3/en/os/headers/header.info header.info
Traceback (innermost last):
  File "urlgrabber.py", line 14, in ?
  File "./httplib.py", line 252
    opts, args = getopt.header in headers.headers: print string.strip(header)
                                                 ^
SyntaxError: invalid syntax

Matt

>
>Same error indeed, but I don't see the output of the print statement I
>inserted into the attached httplib.py.  Just to be sure, do
>export PYTHONPATH=.
>first.
>					-Michael



More information about the Yum mailing list