Just to let people know. We worked this out offline because of the
large debuging e-mails.
In the end, John needed to pub an extra / after file: in sl.repo and
sl-errata.repo files. He also took off the [main] from those files as well.
So that it looked like
baseurl=file:///nfs/SL/40/$basearch/SL/RPMS/
Troy
Troy Dawson wrote:
> Hi John,
> Usually the only thing that breaks yum is a change of python from under
> it, or some type of corruption.
>
> Can you send the output of
> rpm -q yum
> rpm -V yum
> rpm -qa | grep python
> rpm -V python
> which python
>
> If nothing looks suspicious, then we'll try a
> yum -d4 update yum
>
> But since that has alot of output, we'll look at the shorter stuff first.
>
> Troy
>
> John Rowe wrote:
>
>> Yum is failing for me fairly spectacularly and I'm not sure if the
>> problem is yum or me. The error I get is:
>>
>> # yum update yum
>> Setting up Update Process
>> Setting up Repos
>> Traceback (most recent call last):
>> File "/usr/bin/yum", line 7, in ?
>> yummain.main(sys.argv[1:])
>> File "/usr/share/yum-cli/yummain.py", line 68, in main
>> result, resultmsgs = base.doCommands()
>> File "/usr/share/yum-cli/cli.py", line 413, in doCommands
>> return self.updatePkgs()
>> File "/usr/share/yum-cli/cli.py", line 932, in updatePkgs
>> self.doRepoSetup()
>> File "/usr/share/yum-cli/cli.py", line 81, in doRepoSetup
>> repo.getRepoXML(text=repo)
>> File "repos.py", line 589, in getRepoXML
>> File "repos.py", line 566, in get
>> File "mirror.py", line 414, in urlgrab
>> File "mirror.py", line 400, in _mirror_try
>> File "grabber.py", line 619, in urlgrab
>> File "grabber.py", line 548, in _retry
>> File "grabber.py", line 605, in retryfunc
>> File "grabber.py", line 728, in __init__
>> File "grabber.py", line 795, in _do_open
>> File "grabber.py", line 886, in _make_request
>> File "/usr/lib/python2.3/urllib2.py", line 326, in open
>> '_open', req)
>> File "/usr/lib/python2.3/urllib2.py", line 306, in _call_chain
>> result = func(*args)
>> File "/usr/lib/python2.3/urllib2.py", line 980, in file_open
>> return self.open_local_file(req)
>> File "/usr/lib/python2.3/urllib2.py", line 1004, in open_local_file
>> if not host or \
>> socket.gaierror: (-2, 'Name or service not known')
>>
>> My yum configuration is brand new since my old configuration suddenly
>> vanished on all four of my machines (I hadn't expected that!). The only
>> two files I have changed are:
>>
>> # cat sl.repo
>> [main]
>> [sl-base]
>> name=SL 4 base
>> baseurl=file://nfs/SL/40/$basearch/SL/RPMS/
>> enabled=1
>>
>> # cat sl-errata.repo
>> [main]
>> [sl-errata]
>> name=SL 4 base
>> baseurl=file://nfs/SL/40/$basearch/errata/SL/RPMS/
>> enabled=1
>>
>>
>> Any suggestions?
>>
>> Thanks
>>
>> John
>
>
>
--
__________________________________________________
Troy Dawson [log in to unmask] (630)840-6468
Fermilab ComputingDivision/CSS CSI Group
__________________________________________________
|