By: David Minter user 17 May 2018 at 2:47 a.m. CDT

6 Responses
David Minter gravatar
Guys, I receive the error "contains no sections headers" after running the 'yum clean all' command as part of the installation guide for CentOS Can you advise what I'm missing / doing wrong please ?

By Thomas Gasmyr Mougang staff 17 May 2018 at 2:59 a.m. CDT

Thomas Gasmyr Mougang gravatar
Hi David, Can you provide the full error message. Also note that as per the documentation, the commands are: ``` #wget https://repo.gluu.org/rhel/Gluu-rhel6.repo -O /etc/yum.repos.d/Gluu.repo #wget https://repo.gluu.org/centos/RPM-GPG-KEY-GLUU -O /etc/pki/rpm-gpg/RPM-GPG-KEY-GLUU #rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-GLUU #yum clean all #yum install gluu-server-3.1.3 ``` If the command `yum clean all` fail again, then note the error message and proceed with the next command Thanks, Gasmyr.

By David Minter user 17 May 2018 at 9:44 a.m. CDT

David Minter gravatar
Hi Gasmyr, I have followed the documentation and entered the commands as stated. The error received for the command yum clean all is : Loaded plugins: fastestmirror, refresh-packagekit, security Error: File contains no section headers. File: file:///etc/yum.repos.d/gluu.repo ,line 1 ‘—2018-05-16 170:03:23—https://repo.gluu.org/centos/gluu-centos6/rep\n’ I then receive a similar error when progressing to the install command Thanks and regards, David

By Thomas Gasmyr Mougang staff 17 May 2018 at 10:17 a.m. CDT

Thomas Gasmyr Mougang gravatar
Hi, Apply the following steps: 1. Send us the content of the file `/etc/yum.repos.d/gluu.repo`(it seems like there is a typo in that file) 1. Remove the file `/etc/yum.repos.d/gluu.repo` 1. Run the below commands again ``` #wget https://repo.gluu.org/rhel/Gluu-rhel6.repo -O /etc/yum.repos.d/Gluu.repo #wget https://repo.gluu.org/centos/RPM-GPG-KEY-GLUU -O /etc/pki/rpm-gpg/RPM-GPG-KEY-GLUU #rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-GLUU #yum clean all #yum install gluu-server-3.1.3 ``` Don't forget to send us the file content as requested.

By Thomas Gasmyr Mougang staff 17 May 2018 at 10:21 a.m. CDT

Thomas Gasmyr Mougang gravatar
Another way to get ride of this error is to replace the content of `etc/yum.repos.d/gluu.repo` with the below code: ``` [Gluu-rpm-rhel6-repo] name=Gluu RHEL6 repo baseurl=http://repo.gluu.org/rhel/6/ enabled=1 gpgcheck=1 gpgkey=http://repo.gluu.org/rhel/RPM-GPG-KEY-GLUU ```

By David Minter user 18 May 2018 at 1:40 a.m. CDT

David Minter gravatar
Hi Thomas, Deleting the file and downloading again has resolved the issue, I have successfully run the yum clean all command and I'm not installing the gluu server. For info, please see the original file below (obvious to see the problem if I'd have checked the file !!) Thanks for your help. [Gluu-rpm-Centos6-repo] name=Gluu Centos6 repo baseurl=http://repo.gluu.org/Centos/6/repo error 404 .... file not found

By Thomas Gasmyr Mougang staff 18 May 2018 at 2:30 a.m. CDT

Thomas Gasmyr Mougang gravatar
Hello David, Happy to hear that the issue has been fixed. I'm going to close this ticket now. Feel free to post on it if you need more assistance. Thanks, Gasmyr.