Fedora .us YUM Repository Question

Paul Howarth paul at city-fan.org
Wed Nov 17 15:13:06 UTC 2004


Mark Sargent wrote:
> On Wed, 2004-11-17 at 22:28, Paul Howarth wrote:
> 
>>Mark Sargent wrote:
>>
>>>On Wed, 2004-11-17 at 02:24, Mark Sargent wrote:
>>>
>>>>YUM.conf code after editing:
>>>>
>>>>[fedora-us-2]
>>>> name=Fedora Core 2 -- Fedora US mirror
>>>> baseurl=http://mirrors.usc.edu/pub/linux/fedora/
>>>>fedora/2/i386/RPMS.os
>>>> [fedora-us-2-updates]
>>>> name=Fedora Core 2 updates -- Fedora US mirror
>>>> baseurl=http://mirrors.usc.edu/pub/linux/fedora/
>>>>fedora/2/i386/RPMS.updates
>>>> [fedora-us-2-stable]
>>>> name=Fedora Linux (stable) for Fedora Core 2 -- Fedora US mirror
>>>> baseurl=http://mirrors.usc.edu/pub/linux/fedora/
>>>>fedora/2/i386/RPMS.stable
>>>>
>>>>Am I on the ball..? Close..? Need shooting, perhaps..? lol..cheers.
>>>>
>>>>Mark Sargent.
>>>
>>>
>>>Hi All,
>>>
>>>an idiotic question, perhaps..? Really am stooped here. Can anyone put
>>>me outa me misery, as this code in the yum.conf produces errors..?
>>
>>What errors are you getting?
>>
>>Try un-indenting everything, and also checking out that the URLs you refer to 
>>actually exist:
>>
>>[fedora-us-2]
>>name=Fedora Core 2 -- Fedora US mirror
>>baseurl=http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/2/i386/RPMS.os
>>
>>[fedora-us-2-updates]
>>name=Fedora Core 2 updates -- Fedora US mirror
>>baseurl=http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/2/i386/RPMS.updates
>>
>>[fedora-us-2-stable]
>>name=Fedora Linux (stable) for Fedora Core 2 -- Fedora US mirror
>>baseurl=http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora/2/i386/RPMS.stable
>>
>>Paul.
> 
> 
> Error generated is below...cheers, Paul.
> 
> 
> Traceback (most recent call last):
>   File "/usr/bin/yum", line 30, in ?
>     yummain.main(sys.argv[1:])
>   File "/usr/share/yum/yummain.py", line 163, in main
>     (log, errorlog, filelog, conf, cmds) = parseCmdArgs(args)
>   File "/usr/share/yum/yummain.py", line 75, in parseCmdArgs
>     conf=yumconf(configfile=yumconffile)
>   File "/usr/share/yum/config.py", line 48, in __init__
>     self.cfg.read(configfile)
>   File "/usr/lib/python2.3/ConfigParser.py", line 263, in read
>     self._read(fp, filename)
>   File "/usr/lib/python2.3/ConfigParser.py", line 484, in _read
>     raise e
> ConfigParser.ParsingError: File contains parsing errors: /etc/yum.conf
>         [line 28]: '  name=Fedora Core 2 -- Fedora US mirror\n'
>         [line 29]: ' 
> baseurl=http://mirrors.usc.edu/pub/linux/fedora/2/i386/RPM S.os\n'
>         [line 30]: '  [fedora-us-2-updates]\n'
>         [line 31]: '  name=Fedora Core 2 updates -- Fedora US mirror\n'
>         [line 32]: ' 
> baseurl=http://mirrors.usc.edu/pub/linux/fedora/2/i386/RPM S.updates\n'
>         [line 33]: '  [fedora-us-2-stable]\n'
>         [line 34]: '  name=Fedora Linux (stable) for Fedora Core 2 --
> Fedora US mirror\n'
>         [line 35]: ' 
> baseurl=http://mirrors.usc.edu/pub/linux/fedora/2/i386/RPM S.stable\n'

Looks like cut and paste problems.

Remove all spaces from the start of lines, and all spaces in the lines 
starting "baseurl"

Paul.





More information about the users mailing list