LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Unable To Retive software Information -- Package Manager Problem (https://www.linuxquestions.org/questions/linux-general-1/unable-to-retive-software-information-package-manager-problem-521380/)

me4linux 01-21-2007 06:24 AM

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

solnul 01-22-2007 12:33 AM

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?

me4linux 01-22-2007 01:53 AM

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

solnul 01-22-2007 03:23 AM

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.

me4linux 01-22-2007 05:48 AM

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

solnul 01-22-2007 07:04 AM

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.


All times are GMT -5. The time now is 10:40 PM.