re yum troubles
Paul Howarth
paul at city-fan.org
Thu Nov 18 21:08:39 UTC 2004
On Thu, 2004-11-18 at 21:54 +0100, Peter Lesterhuis wrote:
> Hi list,
> Still having problems with yum.
> When doing $ yum update> the following lines show up:
>
> > $ yum update
> > 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 456, in _read
> > raise MissingSectionHeaderError(fpname, lineno, `line`)
> > ConfigParser.MissingSectionHeaderError: File contains no section headers.
> > file: /etc/yum.conf, line: 1
> > '\xef\xbb\xbf[main]\n'
>
> Then I am asked to "update the headers on my system".
>
> It suggests that there is something wrong with te first characters in
> line 1in yum.conf, which should be only [main]. But this is not the case
> as you can see.
> $ less /etc/yum.conf
>
> > [main]
Maybe less isn't showing the strange characters. What's the output of:
od -c /etc/yum.conf | head
Paul.
--
Paul Howarth <paul at city-fan.org>
More information about the fedora-list
mailing list