LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Yum Error: File contains no section headers. (https://www.linuxquestions.org/questions/linux-newbie-8/yum-error-file-contains-no-section-headers-4175497708/)

skoda 03-10-2014 02:24 PM

Yum Error: File contains no section headers.
 
Hello,

centos 6.5

i am suddenly getting this error when try to install anything.

Quote:

[root@localhost ~]# yum install vlc
Loaded plugins: fastestmirror, protectbase, refresh-packagekit, security
Error: File contains no section headers.


John VV 03-10-2014 02:38 PM

can you post the output of
Code:

su -
yum repolist all

vlc1 is in rpmforge
there is a new vlc2 but "protectbase" will lock that out

skoda 03-10-2014 03:07 PM

Quote:

Originally Posted by John VV (Post 5132175)
can you post the output of
Code:

su -
yum repolist all

vlc1 is in rpmforge
there is a new vlc2 but "protectbase" will lock that out

Hai john,

Quote:

[root@localhost ~]#yum repolist all


Loaded plugins: fastestmirror, protectbase, refresh-packagekit, security
Error: File contains no section headers.
file: file://///etc/yum.repos.d/fedora-cinnamon.repo, line: 1
'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n'


John VV 03-10-2014 04:22 PM

??? What the heck did you do ??????
Quote:

file://///etc/yum.repos.d/fedora-cinnamon.repo
that is a custom FEDORA20 repo

you can NOT use a fedora repo file on cent !!!!
REMOVE IT ASAP !

that is at least part of the problem

the other is you have ZERO software repos installed
besides the very incompatible thing
that looks like a html document you renamed to .repo

there should NEVER !!! be a php encoded HTML header
Code:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
in a repo file


just HOW ?????
did you manage to do this ?
as in what did you do ?

this is the current cent 6.x repo listing
http://mirrors.arsc.edu/centos/6/upd...1.2.x86_64.rpm
after you remove that think pretending to be a software repo text file
manually install this rpm using rpm

or
in the firefox download dialog there is a option to INSTALL it

install it !

skoda 03-13-2014 02:05 PM

Deleted

skoda 03-13-2014 03:26 PM

Thank you john VV,

Finally problem fixed!!! all i did is :

Quote:

sudo gedit /etc/yum.repos.d/fedorautils.repo
Deleted everything in the file and added the following :

Quote:

[fedorautils]
name=Fedora Utils
type=rpm-md
baseurl=http://download.opensuse.org/repositories/home:/satya164:/fedorautils/Fedora_$releasever/
gpgkey=http://download.opensuse.org/repositories/home:/satya164:/fedorautils/Fedora_$releasever/repodata/repomd.xml.key
gpgcheck=1
enabled=1
metadata_expire=1d
skip_if_unavailable=1


All times are GMT -5. The time now is 01:49 PM.