Re: re yum troubles

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

 



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@xxxxxxxxxxxx>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux