LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-05-2009, 01:30 PM   #1
Bruce Jamieson
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
Question Fedora 10 error - yum repos file contains parsing errors... what to do?


Hey, everyone! New to Linux but I've been working with Macs for years. I'm running Fedora 10 on a Mac Pro. I'm having trouble doing a system update. When I try to run it, I get the following error:

Code:
Error Type: <class 'yum.Errors.ConfigError'>
Error Value: File contains parsing errors: file://///etc/yum.repos.d/atrpms.repo
Here's the data in that file:

Code:
[atrpms]
name=Fedora Core  -  - ATrmps
baseurl=http://dl.adrpms.net/f-/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
enabled = 0
EOF
From what I understand, the file in question points yum to the ATrpms software repository. Figuring that this file was somehow corrupted, I thought that I could just delete the file and re-establish the link to ATrpms later. Only, I can't delete the file from the GUI (since it's owned by root) and I simply can't seem to find the right info on how to do that through the terminal. And though I can open the "atrpms.repo" file, I can't save it with any changes for the same reason.

Am I on the right track here? I'm pretty lost. Let me know if more info is needed.
 
Old 02-05-2009, 01:46 PM   #2
Bruce Jamieson
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Also, I tried
Code:
yum clean
but I get a very similar error:

Code:
Loaded plugins: refresh-packagekit
Config Error: File contains parsing errors: file://///etc/yum.repos.d/atrpms.repo
	[line  7]: EOF
 
Old 02-05-2009, 02:14 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Well, remove the spurious, unrecognized, EOF from the last line of the file.

By the way, I thought atrpms had been merged into the rpm-fusion repositories, and that there was nothing in the atrpms site for Fedorda 10.
 
Old 02-05-2009, 02:21 PM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
You have to be root to edit the atrpms.repo file. Open a terminal and type
Code:
su -
enter the root's password when prompted, then just
Code:
cd /etc/yum.repos.d
if you know how to use vi, edit the file directly from the terminal, otherwise just launch a graphical editor, e.g.
Code:
gedit atrpms.repo
The problem is that your current file lacks some fields. How did you installed this repo file? Does it come from a RPM? Anyway, it should look like this:
Code:
name=Fedora Core $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/f$releasever-$basearch/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
 
  


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
YUM Repos [ftp] error rajeshux Red Hat 5 12-09-2008 01:02 AM
YUM - Fedora 5 - How do I get the REPOs to work LexMillian Fedora 4 11-12-2008 01:35 PM
yum config error parsing file failed - yum won't run emuub Linux - Software 9 11-04-2008 05:48 AM
Error: Bad repository file ///etc/yum.repos.d/dag.repo. Skipping dr_zayus69 Linux - Software 1 07-12-2005 11:56 PM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 02:28 AM

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

All times are GMT -5. The time now is 05:52 AM.

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