LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-21-2007, 06:24 AM   #1
me4linux
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 165

Rep: Reputation: 30
Unable To Retive software Information -- Package Manager Problem


Hi

I have installed Fedora core5 64Bit OS in my system
As usually since it is a bug in FC5 the add /remove software is not woking by default
I have read many threads regarding this problem
None of those thereads have solved my problem
i have changed the fedora-core.repo,*.repo files in /etc/yum.repos.d
Eventhen i get some new error as shown below
I have got fedora core older version probably 2 for 32 bit systems
Can I install FC2 in my 64 bit system??

I would be very happy if any one can mail me the edited repo file such that copying those files in to the specified directory will
solve the problem
my email id is siemens320@gmail.com





THANKS IN ADVANCE

Component: Software Manager
Summary: TB4426d5a1 ConfigParser.py:490:_read:ParsingError: File contains parsing errors: ///etc/yum.repos.d/fedora-legacy.repo
[line 5]: ' name=Fedora Core $releasever - $basearch\n'
[line 6]: ' baseurl=file:///media/disk\n'
[line 7]: ' enabled=1\n'
[line 8]: ' gpgcheck=1\n'
[line 9]: ' gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY\n'

Traceback (most recent call last):
File "/usr/sbin/pirut", line 363, in ?
main()
File "/usr/sbin/pirut", line 358, in main
pm = PackageManager()
File "/usr/sbin/pirut", line 56, in __init__
GraphicalYumBase.__init__(self, False)
File "/usr/lib/python2.4/site-packages/pirut/__init__.py", line 122, in __init__
self.doConfigSetup()
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 104, in doConfigSetup
self.getReposFromConfig()
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 135, in getReposFromConfig
parser.read(files)
File "/usr/lib/python2.4/site-packages/yum/parser.py", line 225, in read
IncludingConfigParser.read(self,filename)
File "/usr/lib/python2.4/site-packages/yum/parser.py", line 126, in read
ConfigParser.read(self,filename)
File "/usr/lib64/python2.4/ConfigParser.py", line 267, in read
self._read(fp, filename)
File "/usr/lib64/python2.4/ConfigParser.py", line 490, in _read
raise e

ParsingError: File contains parsing errors: ///etc/yum.repos.d/fedora-legacy.repo
[line 5]: ' name=Fedora Core $releasever - $basearch\n'
[line 6]: ' baseurl=file:///media/disk\n'
[line 7]: ' enabled=1\n'
[line 8]: ' gpgcheck=1\n'
[line 9]: ' gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY\n'

Local variables in innermost frame:
sectname: legacy-testing
cursect: {'name': 'Fedora Legacy $releasever - $basearch - Updates Testing', 'gpgkey': 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-legacy', 'enabled': '0', 'mirrorlist': 'http://fedora.redhat.com/download/mirrors/legacy-updates-testing-fc$releasever', 'gpgcheck': '1', '__name__': 'legacy-testing'}
e: File contains parsing errors: ///etc/yum.repos.d/fedora-legacy.repo
[line 5]: ' name=Fedora Core $releasever - $basearch\n'
[line 6]: ' baseurl=file:///media/disk\n'
[line 7]: ' enabled=1\n'
[line 8]: ' gpgcheck=1\n'
[line 9]: ' gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY\n'
fpname: ///etc/yum.repos.d/fedora-legacy.repo
vi: =
mo: <_sre.SRE_Match object at 0x2b41259e7100>
optname: gpgkey
fp: <open file '///etc/yum.repos.d/fedora-legacy.repo', mode 'r' at 0x2b41259e2a80>
lineno: 22
line:
self: <yum.parser.IncludedDirConfigParser instance at 0x2b41259dc710>
optval: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-legacy
 
Old 01-22-2007, 12:33 AM   #2
solnul
Member
 
Registered: Jan 2003
Distribution: Slackware
Posts: 82

Rep: Reputation: 15
It looks like you have spaces at the beginning of every line of the file.

Only the lines that continue something from a previous line (like the extra baseurls, if any) can have equals signs. Lines like name= can't.

Does that help?
 
Old 01-22-2007, 01:53 AM   #3
me4linux
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 165

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by solnul
It looks like you have spaces at the beginning of every line of the file.

Only the lines that continue something from a previous line (like the extra baseurls, if any) can have equals signs. Lines like name= can't.

Does that help?
CAN U TELL ME IN DETAIL WHAT TO DO??
I am new to linux
Recently i started learning linux, shell scrips....
What u said is absolutely corect abot leaving spaces in some line
I have left some spaces whae copying

i shall remove them
WHAT TO DO WITH THE LINES name=""

should i remove those lines??

IF U DON MIND CAN U EXPLAIN ME THE WHOLE PROCEDURE TO GET THE PACKAGE MANAGER ??

thanks for ur quick reply

WAITING FOR UR REPLY
 
Old 01-22-2007, 03:23 AM   #4
solnul
Member
 
Registered: Jan 2003
Distribution: Slackware
Posts: 82

Rep: Reputation: 15
You just have to remove all the spaces from the start of the lines. If you have something like

[legacy-updates]
<space><space>name=Fedora Legacy $releasever - $basearch - Updates
<space><space>mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=legacy-updates-$releasever&arch=$basearch
enabled=0
<space><space>gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-legacy

Edit it so the lines start right where the lines do, with no space in front of them (spaces within the text, like between "Fedora" and "Legacy" are OK, just no indentation).

Some lines can be indented, but I don't think the default configuration ships any files set up like that. Most can't.
 
Old 01-22-2007, 05:48 AM   #5
me4linux
Member
 
Registered: Aug 2006
Distribution: Fedora 7
Posts: 165

Original Poster
Rep: Reputation: 30
Hi Solnul

by just removing the spaces the package manager is working
Thanks for ur nice and quick reply
Can u suggest me some topics in linux to start with
I have started learning shell programming
i am going to run apache along with tomcat and mysql
Ur suggestions are allways welcome

HOW TO INSTALL AUTOMATICALLY FROM NET USING YUM

what changes do i need to make in the *.repo files in /etc/yum.repod.d

Bye
 
Old 01-22-2007, 07:04 AM   #6
solnul
Member
 
Registered: Jan 2003
Distribution: Slackware
Posts: 82

Rep: Reputation: 15
It depends on how automatic you want it.

You can read about yum's commands by typing "yum --help" or "man yum" in the terminal. Reading a lot of man pages is always a good idea. If you run "yum check-update" it will show you what updates are availible, "yum list" shows you all the packages, and "yum install [some package names here]" will automatically download and install those packages.

If you want Yum to download or install things without you asking first,
edit the file "/etc/yum/yum-updatesd.conf" and make sure yum-updatesd is running.

You can also run the puplet applet, which puts a graphical interface to all this in your panel.

As for suggestions, I agree that the shell is a good place to start because you can learn so many commands that will be useful for day-to-day administration.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to retrieve software information liknus Fedora 1 10-08-2006 12:24 PM
WINE fc5 64bit Unable to retrieve software information mike_morley Linux - Software 1 09-17-2006 07:09 PM
Unable to retrive software information fireball003 Fedora 1 07-26-2006 05:44 AM
fedora core 5 package manager unable to retreve software information zonemikel Linux - Software 7 05-10-2006 09:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:22 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