Repository ‘rhui-rhel-7-server-rhui-rh-common-rpms’: Error parsing config: Error parsing “gpgcheck = ‘i'”: invalid boolean value

##################################################################################

Error
———-
Loaded plugins: product-id, rhui-lb, search-disabled-repos, subscription-manager
Repository ‘rhui-rhel-7-server-rhui-rh-common-rpms’: Error parsing config: Error parsing “gpgcheck = ‘i'”: invalid boolean value
rhel-7-server-rpms | 3.5 kB 00:00:00
rhel-server-rhscl-7-rpms | 3.5 kB 00:00:00
https://cdc-inf-rhcds01.cdc-dc1-core.cscehub.com/pulp/repos///content/dist/rhel/rhui/server/7/7Server/x86_64/optional/os/repodata/repomd.xml: [Errno 14] HTTPS Error 401 – Unauthorized
Trying other mirror.
https://cdc-inf-rhcds02.cdc-dc1-core.cscehub.com/pulp/repos///content/dist/rhel/rhui/server/7/7Server/x86_64/optional/os/repodata/repomd.xml: [Errno 14] HTTPS Error 401 – Unauthorized
Trying other mirror.

=================================
Resolution below
—————————

1. subscription-manager list –consumed

2. go to cd /etc/yum.repos.d –> cat rh-cloud.repo

[root@carc-vjavas01 yum.repos.d]# cat rh-cloud.repo
[rhui-rhel-7-server-rhui-optional-rpms]
name=Red Hat Enterprise Linux 7 Server – Optional from RHUI (RPMs)
mirrorlist=https://cdc-inf-rhcds02.cdc-dc1-core.cscehub.com/pulp/mirror//content/dist/rhel/rhui/server/7/$releasever/$basearch/optional/os
enabled=0 <<=============================== altered this from 1 to 0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
sslverify=1
sslcacert=/etc/pki/rhui/ca.crt
sslclientcert=/etc/pki/rhui/product/content.crt
sslclientkey=/etc/pki/rhui/key.pem
skip_if_unavailable = 1
keepcache = 0

[rhui-rhel-7-server-rhui-rh-common-rpms]
name=Red Hat Enterprise Linux 7 Server – RH Common from RHUI (RPMs)
mirrorlist=https://cdc-inf-rhcds02.cdc-dc1-core.cscehub.com/pulp/mirror//content/dist/rhel/rhui/server/7/$releasever/$basearch/rh-common/os
enabled=0 <<=============================== altered this from 1 to 0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
sslverify=1
sslcacert=/etc/pki/rhui/ca.crt
sslclientcert=/etc/pki/rhui/product/content.crt
sslclientkey=/etc/pki/rhui/key.pem

[rhui-rhel-7-server-rhui-rpms]
name=Red Hat Enterprise Linux 7 Server from RHUI (RPMs)
mirrorlist=https://cdc-inf-rhcds02.cdc-dc1-core.cscehub.com/pulp/mirror//content/dist/rhel/rhui/server/7/$releasever/$basearch/os
enabled=0 <<=============================== altered this from 1 to 0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
sslverify=1
sslcacert=/etc/pki/rhui/ca.crt
sslclientcert=/etc/pki/rhui/product/content.crt
sslclientkey=/etc/pki/rhui/key.pem

[root@carc-vjavas01 yum.repos.d]#

3.[root@server pluginconf.d]# cat rhui-lb.conf
[main]

enabled=0 <<=============================== altered this from "1" to "0"
cds_list_file=/etc/yum.repos.d/rhui-load-balancers
[root@carc-vjavas01 pluginconf.d]#

4.[root@server ~]# cd /etc/yum/pluginconf.d/
[root@server pluginconf.d]#
[root@server pluginconf.d]# cat search-disabled-repos.conf
[main]
enabled=1

# With notify_only=1 this plugin does not modify yum's behaviour.
# Setting notify_only to 0 will enable yum to try to automatically resolve
# dependency errors by temporarily enabling disabled repos and searching
# for missing dependencies. If that helps resolve dependencies, yum will
# suggest to permanently enable the repositories that have helped find
# missing dependencies.
# IMPORTANT: running yum with –assumeyes (or assumeyes config option)
# will make yum automatically and without prompting the user temporarily
# enable all repositories, and if it helps resolve dependencies yum will
# permanently enable the repos that helped without prompting the user.
notify_only=0 <<=============================== altered this from " 1" to" 0 "

# Repositories matching the patterns listed in ignored_repos will not be enabled by the plugin
ignored_repos=*debug-rpms *source-rpms *beta-rpms
[root@carc-vjavas01 pluginconf.d]#

Once done with above steps
5.yum update -y
6.yum update -y –skip-broken

Files edited from the above
=============================
cd /etc/yum.repos.d/rh-cloud.repo
cd /etc/yum/pluginconf.d/rhui-lb.conf
cd /etc/yum/pluginconf.d/search-disabled-repos.conf

Advertisements

Author: mylinuxissues

All the Issues posted here production resolved issues.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s