Fedora Linux Support Community & Resources Center
  #1  
Old 19th March 2004, 07:27 PM
reddwarf2956 Offline
Registered User
 
Join Date: Mar 2004
Location: Arlington, TX
Age: 46
Posts: 64
YUM install

I just installed Yum and got this (I already placed yum.conf from " http://fedora.artoo.net/faq/ Q. 2" in the etc dir and edited it to add the info from "Software > How to update KDE" thread ):

# rpm -ivh yum-2.0.6-1.noarch.rpm

Preparing... ########################################### [100%]
1:yum warning: /etc/yum.conf created as /etc/yum.conf.rpmnew
########################################### [100%]
# 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.2/ConfigParser.py", line 233, in read
self.__read(fp, filename)
File "/usr/lib/python2.2/ConfigParser.py", line 444, in __read
raise MissingSectionHeaderError(fpname, lineno, `line`)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /etc/yum.conf, line: 1
'\xef\xbb\xbf# This is a yum.conf for Fedora Core.\n'
#

What is wrong?
Reply With Quote
  #2  
Old 19th March 2004, 09:21 PM
kai_t Offline
Registered User
 
Join Date: Nov 2003
Posts: 60
Using a text editor, make sure that the first line in /etc/yum.conf begins with a # (hash sign), not with any garbage characters. Otherwise, yum doesn't interpret it as a comment line.
Reply With Quote
  #3  
Old 19th March 2004, 10:30 PM
reddwarf2956 Offline
Registered User
 
Join Date: Mar 2004
Location: Arlington, TX
Age: 46
Posts: 64
The first 26 lines start with the # sign as to comment things too. So, that is not it.

Thanks kai_t.
Reply With Quote
  #4  
Old 19th March 2004, 10:55 PM
mhelios Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Queensland, AU
Posts: 736
See these posts for inspiration:
http://www.redhat.com/archives/fedor.../msg01810.html
http://www.redhat.com/archives/fedor.../msg01893.html

A couple points: If you're upgrading software, use the U switch with rpm, i.e. `rpm -Uvh`
Try using yum itself to upgrade yum. `yum update yum`
__________________
mhelios@fedoraforum.org
Registered Linux User # 348963
GnuPG KeyID: 0xCE9F8922
Reply With Quote
  #5  
Old 19th March 2004, 11:08 PM
kai_t Offline
Registered User
 
Join Date: Nov 2003
Posts: 60
Re: YUM install

Quote:
Originally posted by reddwarf2956
'\xef\xbb\xbf# This is a yum.conf for Fedora Core.\n'
I just learnt that the hexadecimal values EF, BB and BF (in that order) form the so-called "byte order mark" (BOM) for UTF-8-encoded files. I don't know how exactly it got there, but yum obviously gets confused by it.

Try removing the BOM: env LC_ALL=C PERL_UNICODE= perl -pi~ -0777 -e "s/^\xEF\xBB\xBF//s;" /etc/yum.conf
Reply With Quote
  #6  
Old 20th March 2004, 02:24 AM
reddwarf2956 Offline
Registered User
 
Join Date: Mar 2004
Location: Arlington, TX
Age: 46
Posts: 64
Re: YUM install

quote:I just learnt that the hexadecimal values EF, BB and BF (in that order) form the so-called "byte order mark" (BOM) for UTF-8-encoded files. I don't know how exactly it got there, but yum obviously gets confused by it.

Try removing the BOM: env LC_ALL=C PERL_UNICODE= perl -pi~ -0777 -e "s/^\xEF\xBB\xBF//s;" /etc/yum.conf

First of all thanks I now see what is was. I lost my text editors when I lost KDE, so I used oo-write and saved as a text file without the ".txt". I finally figured out how to get around the fact that "Add/Remove Packages" program does not work too. So, I put the CD that it gets hung on in the drive and looked for the package gedit for gnome. Installed it. I then edit /etc/yum.conf deleting the first char. # and replaced it with a new #. saved and run yum.

It works with a "yum check-update" command. Now this is the first time I ran that, when it is finished are the files updated? or was that just a test run? How to check for updated files?
Reply With Quote
  #7  
Old 20th March 2004, 03:36 AM
kai_t Offline
Registered User
 
Join Date: Nov 2003
Posts: 60
Quote:
Originally posted by reddwarf2956
It works with a "yum check-update" command. Now this is the first time I ran that, when it is finished are the files updated? or was that just a test run?
According to what man yum says, that command just lists available package updates and returns a corresponding exit code useful for scripts (e. g., automated updates).

To actually update all packages, run yum update.
Reply With Quote
  #8  
Old 20th March 2004, 04:00 AM
reddwarf2956 Offline
Registered User
 
Join Date: Mar 2004
Location: Arlington, TX
Age: 46
Posts: 64
Thumbs up

Thanks kai_t
http://www.fedoraforum.org/forum/new...&threadid=875#

This one can be closed.
Reply With Quote
Reply

Tags
install, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Install Experience needed to install Fedora 7 on HP tx1000 series laptop jiabo Hardware & Laptops 33 6th May 2010 12:23 PM
Fedora 10 default install fails with ATI 4850 graphics card (but text install works) Jeff72 Installation and Live Media 1 20th January 2009 05:27 PM
Is it possible to install GUI's, install browsers, install IP addresses? booter Installation and Live Media 1 13th June 2007 11:40 PM
FC4 DVD Install - Unable to get past Select Driver option for Local CDROM install flashgordon EOL (End Of Life) Versions 2 28th February 2006 05:54 AM
FC3 SCSI MegaRAID : No drive detected on install, RH9 install is flawless. sladetf EOL (End Of Life) Versions 2 4th March 2005 06:53 PM


Current GMT-time: 22:37 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat