LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-14-2004, 03:12 PM   #1
thejokker
LQ Newbie
 
Registered: Jun 2004
Distribution: fedora core 2
Posts: 24

Rep: Reputation: 15
Yum Errors in parsing, whats wrong here (yum.conf pasted)


ok there are 100+ views and no posts of this thread anyone got any input for me

i just added livna's repositories to my yum and now i am getting the following error
[root@localhost jokker]# 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
' [main]\n'

now im not a wiz at linux or anything but i know its something i just did to yum, and no i wasnt smart enough to make a backup. but here is my yum file, and if anyone could just skim over it and see what in there is causing all the fuss id be more than grateful.

MY YUM FILE
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20

[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/

#[updates-testing]
#name=Fedora Core $releasever - $basearch - Unreleased Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearch/

#[development]
#name=Fedora Core $releasever - Development Tree
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/

[fedora-us-2]
name=Fedora Core 2 -- Fedora US mirror
baseurl=
ftp://ftp.ussg.iu.edu/pub/linux/fedo...2/i386/RPMS.os
http://mirrors.kernel.org/fedora.us/...2/i386/RPMS.os
ftp://mirrors.kernel.org/fedora.us/f...2/i386/RPMS.os
http://mirrors.usc.edu/pub/linux/fed...2/i386/RPMS.os
ftp://mirrors.usc.edu/pub/linux/fedo...2/i386/RPMS.os
failovermethod=priority

[fedora-us-2-updates]
name=Fedora Core 2 updates -- Fedora US mirror
baseurl=
ftp://ftp.ussg.iu.edu/pub/linux/fedo...6/RPMS.updates
http://mirrors.kernel.org/fedora.us/...6/RPMS.updates
ftp://mirrors.kernel.org/fedora.us/f...6/RPMS.updates
http://mirrors.usc.edu/pub/linux/fed...6/RPMS.updates
ftp://mirrors.usc.edu/pub/linux/fedo...6/RPMS.updates
failovermethod=priority

[fedora-us-2-stable]
name=Fedora Linux (stable) for Fedora Core 2 -- Fedora US mirror
baseurl=
ftp://ftp.ussg.iu.edu/pub/linux/fedo...86/RPMS.stable
http://mirrors.kernel.org/fedora.us/...86/RPMS.stable
ftp://mirrors.kernel.org/fedora.us/f...86/RPMS.stable
http://mirrors.usc.edu/pub/linux/fed...86/RPMS.stable
ftp://mirrors.usc.edu/pub/linux/fedo...86/RPMS.stable
failovermethod=priority

[livna-stable]
name=Livna.org Fedora Compatible Packages (stable)
baseurl= http://rpm.livna.org/fedora/$releasever/$basearch/yum/stable
gpgcheck=1

[livna-unstable]
name=Livna.org Fedora Compatible Packages (unstable)
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/unstable
gpgcheck=1

#[livna-testing]
#name=Livna.org Fedora Compatible Packages (testing)
#baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/testing
#gpgcheck=1

---------------
oh and no yum will not work if i just remove those 3 livna repositories at the bottom, that would be too easy, tried it anyway, but good idea. the error is the same as the above posted error either way.

Thanks for looking people.

Last edited by thejokker; 06-14-2004 at 04:37 PM.
 
Old 06-15-2004, 02:28 AM   #2
thejokker
LQ Newbie
 
Registered: Jun 2004
Distribution: fedora core 2
Posts: 24

Original Poster
Rep: Reputation: 15
http://www.roguedaemon.com/pub/FC2/yum.conf

this link was given to my in #feodra on irc its a great yum so im passing it along if anyone needs info. problem solved folks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
YUM using wrong NIC ocgltd Linux - Networking 3 09-27-2005 06:58 PM
Whats better Synaptic or Yum? Jmcatch742 Linux - General 1 01-02-2005 01:06 PM
FC2 yum updated to 2.1.11 need new yum.conf? peregrine2 Linux - Newbie 1 12-02-2004 07:14 AM
What's wrong with my yum.conf? bxb32001 Fedora 2 11-11-2003 09:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration