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

Re: my usr/bin/yum file is trashed anyone have a copy ?



Am Mo, den 09.02.2004 schrieb amazing powers of observation um 09:52:
> [root x1-6-00-0a-e6-c7-6f-d8 mitch]# 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 152, in main
>     (log, errorlog, filelog, conf, cmds) = parseCmdArgs(args)
>   File "/usr/share/yum/yummain.py", line 71, 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
> 'This is a yum.conf for Fedora Core.\n'

You could always get back a default configuration file which is part of
an RPM following:

1) find out to which package the file belongs with i.e.
rpm -qf /etc/yum.conf -> yum-2.0.5.-1
2) extract the desired file
rpm2cpio yum-2.0.5.-1.i386.rpm | cpio -ivd /etc/yum.conf
you may use "mc" too for extracting

This is valid not only for yum.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 1 (Yarrow) on Athlon CPU kernel 2.4.22-1.2149.nptl
Sirendipity 14:28:21 up 17:11, 7 users, 1.32, 1.22, 1.12 
                   [ Γνωθι σ'αυτον - gnothi seauton ]





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