[Yum] localhost can't update itself

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, Sep 18, 2003 at 12:12:33PM -0500, Millard, Matt wrote:
> [root@ul055 os]# yum list       
> Gathering package information from servers
> Getting headers from: Red Hat Linux 7.3 updates
> Error getting file http://midrangeweb.principal.com/pub/updates/7.3/en/os/headers/header.info
> [Errno 4] IOError: [Errno socket error] nonnumeric port

Yikes.  This is repeatable? :)

That name does not resolve for me (which may not be surprising) so I
can't test that url.


This is on a local LAN, and is not available on the internet.  Here is the result of the urlgrabber.pyc:

[root@ul055 html]# python /usr/share/yum/urlgrabber.pyc http://midrangeweb.principal.com/pub/updates/7.3/en/os/headers/header.info header.info
throttle: 1.0,  throttle bandwidth: 32768 B/s
[Errno 4] IOError: [Errno socket error] nonnumeric port


Try this for me:

python /usr/lib/python1.5/site-packages/yum/urlgrabber.pyc http://midrangeweb.principal.com/pub/updates/7.3/en/os/headers/header.info header.info

(that should all be on one line)  I _may_ have the urlgrabber.pyc path
wrong, so correct it if I do.  Tell me what happens when you do that.
I expect that to fail if your problem is repeatable.  If it does fail,
do this:

python <<EOF
import urllib
fo = urllib.urlopen("http://midrangeweb.principal.com/pub/updates/7.3/en/os/headers/header.info";)
ofo = open('/tmp/header.info', 'w')
ofo.write(fo.read())
EOF

And tell me what happens with that.

[root@ul055 html]# python <<EOF
> import urllib
> fo = urllib.urlopen("http://midrangeweb.principal.com/pub/updates/7.3/en/os/headers/header.info";)
> ofo = open('/tmp/header.info', 'w')
> ofo.write(fo.read())
> EOF
Traceback (innermost last):
  File "<stdin>", line 2, in ?
  File "/usr/lib/python1.5/urllib.py", line 59, in urlopen
    return _urlopener.open(url)
  File "/usr/lib/python1.5/urllib.py", line 159, in open
    return getattr(self, name)(url)
  File "/usr/lib/python1.5/urllib.py", line 260, in open_http
    h = httplib.HTTP(host)
  File "/usr/lib/python1.5/httplib.py", line 53, in __init__
    if host: self.connect(host, port)
  File "/usr/lib/python1.5/httplib.py", line 77, in connect
    raise socket.error, "nonnumeric port"
IOError: [Errno socket error] nonnumeric port


Matt

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux