Yum update fails with Katello::Errors::PulpError: Invalid version flag: if error.
Issue
- Yum update fails with below error:
# yum update
Plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager, tracer_upload
ID-CD_CentOS_CentOS_Base | 2.1 kB 00:00:00
ID-CD_epel_redhat-7 | 2.6 kB 00:00:00
ID-CD_epel_redhat-8 | 2.4 kB 00:00:00
ID-CD_fedora_fedora-27 | 2.4 kB 00:00:00
ID-CD_gitlab-7_gitlab-7 | 1.8 kB 00:00:00
ID-CD_tsm-x64_tsm-x64 | 1.8 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
(1/21): ID-CD_CentOS_CentOS_Base/group | 895 kB 00:00:00
(2/21): ID-CD_CentOS_CentOS_Base/updateinfo | 92 B 00:00:00
(3/21): ID-CD_epel_redhat-7/group | 392 kB 00:00:00
(4/21): ID-CD_CentOS_CentOS_Base/primary | 3.9 MB 00:00:00
(5/21): ID-CD_epel_redhat-7/updateinfo | 892 kB 00:00:00
(6/21): ID-CD_epel_redhat-7/primary | 4.9 MB 00:00:00
(7/21): ID-CD_epel_redhat-8/group | 121 kB 00:00:00
(8/21): ID-CD_epel_redhat-8/updateinfo | 455 kB 00:00:00
(9/21): ID-CD_epel_redhat-8/primary | 2.6 MB 00:00:00
(10/21): ID-CD_fedora_fedora-27/updateinfo | 92 B 00:00:00
(11/21): ID-CD_fedora_fedora-27/group | 1.8 MB 00:00:00
(12/21): ID-CD_gitlab-7_gitlab-7/group | 124 B 00:00:00
(13/21): ID-CD_gitlab-7_gitlab-7/updateinfo | 92 B 00:00:00
(14/21): ID-CD_gitlab-7_gitlab-7/primary | 8.7 kB 00:00:00
(15/21): ID-CD_tsm-x64_tsm-x64/group | 124 B 00:00:00
(16/21): ID-CD_tsm-x64_tsm-x64/updateinfo | 92 B 00:00:00
(17/21): ID-CD_fedora_fedora-27/primary | 32 MB 00:00:01
(18/21): ID-CD_tsm-x64_tsm-x64/primary | 12 kB 00:00:00
(19/21): rhel-7-server-rpms/7Server/x86_64/group | 637 kB 00:00:00
(20/21): rhel-7-server-rpms/7Server/x86_64/updateinfo | 4.1 MB 00:00:00
(21/21): rhel-7-server-rpms/7Server/x86_64/primary | 51 MB 00:00:00
ID-CD_CentOS_CentOS_Base 10072/10072
ID-CD_epel_redhat-7 13592/13592
ID-CD_epel_redhat-8 7349/7349
ID-CD_fedora_fedora-27 98487/98487
ID-CD_gitlab-7_gitlab-7 92/92
ID-CD_tsm-x64_tsm-x64 41/41
rhel-7-server-rpms 31780/31780
.
Error: Invalid version flag: if
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager
Environment
- Red Hat Satellite 6.x.
- Red Hat Enterprise Linux 7.x.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.