Search This Blog

Thursday, August 2, 2018

"File contains no section headers" error while installing package in RHEL 7.5

Hi,

Installing packages are part of the task for any migration and installation. Usually OS team will take care of such tasks. Few cases DBA will get root access to the server, Thus DBA can install any package in the server.

Read step by step R12 installation

I was middle of the installation of R12 and there are few packages were missing in the server. You can install package in the server by two ways either using "rpm -qa" command or using YUM. YUM method is very convenient as per my opinion.

Below error encountered while installing package :

[root@proddb Packages_RHEL_CD]# yum install **********************.rpm
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.

File contains no section headers.
file: file:///etc/yum.repos.d/local.repo, line: 2
'name=RHEL 7.5\n'

Below are the contents of the repository :

You can find the repositories in /etc/yum.repos.d

All files with *.repo will be the repositories.

[root@proddb yum.repos.d]# cat local.repo
name=RHEL 7.5
baseurl=file:///mnt/
enabled=1
gpgcheck=1
gpgkey=file:///mnt/RPM-GPG-KEY-redhat-release


Fix :

I added the header in the repository file.

[root@proddb yum.repos.d]# cat local.repo
[rhelrepo]
name=RHEL 7.5
baseurl=file:///mnt/
enabled=1
gpgcheck=1
gpgkey=file:///mnt/RPM-GPG-KEY-redhat-release

Now everything went well.

Thanks!
Sikky

No comments:

Post a Comment

You cannot complete this task because one of the following events caused a loss of page data: A system failure has occurred "Front end is locked after 12.2 upgrade"

  If you have upgraded to Oracle E-Business Suite 12.2.10 Release Update Pack from Oracle E-Business Suite 12.2.6 Release Update Pack (or ea...